EmbeddedRelated.com

EEPROM programming for 9S12A128

Started by Gianni in 68HC1221 years ago 5 replies

Hello, I would like to know if anyone has a "C" callable routine to program the EEPROM of a 9S12A128 device. I'm using ICC12...

Hello, I would like to know if anyone has a "C" callable routine to program the EEPROM of a 9S12A128 device. I'm using ICC12 compiler. Thank you very much.


EEPROM mapping in Codewarrior

Started by Daniel Lundin in 68HC1220 years ago 5 replies

Using: Codewarrior 3.0 on HCS12DG128 How do I map the EEPROM with Codewarrior? The only way I know of is to set the INITEE...

Using: Codewarrior 3.0 on HCS12DG128 How do I map the EEPROM with Codewarrior? The only way I know of is to set the INITEE register manually. If I do that, everything will be fine except that the memory will then be erased at startup, which I don't want. I have wr


how to read eeprom from hc912b32

Started by kang_yb in 68HC1221 years ago 1 reply

helle: how to read/write eeprom from 68hc912b32. can anyone send soft+adapter schematic to me ? thanks very much. ...

helle: how to read/write eeprom from 68hc912b32. can anyone send soft+adapter schematic to me ? thanks very much. begards kang


Programming EEPROM

Started by xjmikab in 68HC1221 years ago

We would like to know if anyone can help us with the c-code for programing the EEPROM of a 9S12DP256 device. I'm using IAR...

We would like to know if anyone can help us with the c-code for programing the EEPROM of a 9S12DP256 device. I'm using IAR ICC6812 compiler. The oscillator cristal frekvens is 16 MHz. Thanks in advance.. Peter and Martin Below is my function for programming that


EEPROM and RAM memory map

Started by Pascal in 68HC1219 years ago 4 replies

Hello, I would like to configure my 9s12dp256 to use register : 0-3FF, EEPROM 400-13FF, RAM 1400- 43FF Is it possible? If yes, i...

Hello, I would like to configure my 9s12dp256 to use register : 0-3FF, EEPROM 400-13FF, RAM 1400- 43FF Is it possible? If yes, i don't find the correct value of INITEE and INITRM An other question : if RAM is > at $4000 wich is a fixed flashed page, what append? All of these adress questions are not clear for me.... Thank you


Help with I2C hardware on the HC12

Started by thamiral in 68HC1220 years ago

Hello all, I am trying to interface my HC12 with an I2C EEPROM and I am having trouble performing a write to the EEPROM (Model...

Hello all, I am trying to interface my HC12 with an I2C EEPROM and I am having trouble performing a write to the EEPROM (Model No. M24C02) The worst part is that the in circuit debugger that I am using (ICD12Z from P&E) seems to be doing something really weird whe


Re: Codewarrior programming EEPROM in S12DG128

Started by Jonathan Masters in 68HC1219 years ago 17 replies

Gilles, Cheers for your service. I had been critical overnight of the Metrowerks service pages, but as usual this forum has proved worth...

Gilles, Cheers for your service. I had been critical overnight of the Metrowerks service pages, but as usual this forum has proved worth its weight. The algorithm plugged in a ran nicely. My alternate solution from last post last night didn't work and I had resorted to copying the table with a runtime function into EEPROM when it detected the


EEPROM Shadow Byte

Started by in 68HC1222 years ago 1 reply

I'm working with the MC912D60A microcontroller. I just realized the access for EEPROM earasing and programming. So far everything...

I'm working with the MC912D60A microcontroller. I just realized the access for EEPROM earasing and programming. So far everything works fine. It's just that I don't understand the idea of the SHADOW byte. Form the specs I read it is located at adress 0x0FC0- 0x0FC1. Actually these ar


how i can read internal EEPROM in HC912?

Started by Piotr G in 68HC1221 years ago 5 replies

Hi ! How i can read and wrire internal EEPROM in MC68HC912DG128 mcu ? i need schematic of connection mcu to PC and software. ...

Hi ! How i can read and wrire internal EEPROM in MC68HC912DG128 mcu ? i need schematic of connection mcu to PC and software. Please help me THX Peter


Problems with EEPROM Writes on HC9S12XD256

Started by "Tennies, Joseph C." in 68HC1214 years ago 3 replies

I have been trying to write to the EEPROM on the HC9S12XD256 processor and have been having problems getting it to write. The OSC is 12 MHz,...

I have been trying to write to the EEPROM on the HC9S12XD256 processor and have been having problems getting it to write. The OSC is 12 MHz, but we run the PLL to bring it up to 48 MHz. Our EDIV is set to 60 (with no PRDIV8). The following code is on FreeScale CodeWarrior 4.7. Is there something blatently obvious that I'm doing wrong? (I know I need timeouts instead of infinite whil...


Reset and wrong value in eeprom

Started by Pascal in 68HC1217 years ago 7 replies

Hello, I write some values in the eeprom of 9s12dt128. Before doing a hard reset (power off) if i read the content at 0x800 it is...

Hello, I write some values in the eeprom of 9s12dt128. Before doing a hard reset (power off) if i read the content at 0x800 it is correct. I do the hard reset and i follow this code with the debugger : for(;;) { /* forever: initialize the program; call the root-procedure */ if (!(_startupData.flags&STARTUP_FLAGS_NOT_INIT_SP)) { /* initialize the stack pointer */ ...


EEPROM via BDM command bug!?

Started by Oliver Betz in 68HC1220 years ago 2 replies

Hello All, iSYSTEM tells me that there is a bug at least in the 9S12D64 and 9S12DT128 (not in the DP256) so that it's not...

Hello All, iSYSTEM tells me that there is a bug at least in the 9S12D64 and 9S12DT128 (not in the DP256) so that it's not possbile to write EEPROM directly (without "monitor" code) via the BDM interface in special mode. The problem arises when accessi


HC912 EEPROM Write/Erase vs Interrupts

Started by Killingsworth, Steve in 68HC1221 years ago 2 replies

I have been using a set of routines for over a year to read and write to the internal EEPROM memory of a 68HC912DG128A processor....

I have been using a set of routines for over a year to read and write to the internal EEPROM memory of a 68HC912DG128A processor. The routines have worked without incident. During the development phase of these routines I thought it necessary to disable interrupts before accessing t


hc12 A4 in expanded wide mode

Started by Heath in 68HC1220 years ago 2 replies

Hello, I am having trouble getting the Hc12 A4 chip to work in expanded wide mode. Specifically I am having problems reading...

Hello, I am having trouble getting the Hc12 A4 chip to work in expanded wide mode. Specifically I am having problems reading and or writing to an eeprom, which has been checked manually and is working correctly. When trying to read from the EEPROM only the even addresses are b


how to avoid erasing eeprom with Codewarrior 3

Started by ra in 68HC1220 years ago 2 replies

Hello Has anyone figured out how to avoid having Codewarrior 3 erase the eeprom every time one flashes the code with the ICD-12...

Hello Has anyone figured out how to avoid having Codewarrior 3 erase the eeprom every time one flashes the code with the ICD-12 target module? With version 2, one could achieve this by editing "P&E_ICD_erase_unsecure_hcs12.cmd", but with version 3 there is a new mech


EEPROM setup/erase/program for HC912D60

Started by Wade A Smith in 68HC1220 years ago 4 replies

I'm having a real challenge trying to sort out the code for EEPROM setup and programming for the HC912D60. I know how the...

I'm having a real challenge trying to sort out the code for EEPROM setup and programming for the HC912D60. I know how the HC11E20 is set up, but I see conflicting methods for the HC912D60 and no example code. In some examples (B32, A4) they set it up like the HC11


Difference between D-Flash and Emulated EEPROM

Started by yadunandan kasu in 68HC1216 years ago

Dear Everyone, I am working with the MC9S12XS128 MCU. This MCU doesnt have the EEPROM but it has D-Flash. And I studied the data sheet...

Dear Everyone, I am working with the MC9S12XS128 MCU. This MCU doesnt have the EEPROM but it has D-Flash. And I studied the data sheet for MC9S12XEP100 refference manual and the application note AN3490.pdf. Which says MC9S12XEP100 has the optional Emulated EERPOM which can be done by carefully partioning the availabe D-Flash. And the document says it has many advantages like .. ...


Program INITRM INITRG INITEE on 9s12a64

Started by Pascal in 68HC1220 years ago 5 replies

Hello, I don't undersant very well wich values should i put in these registers. My eeprom is at 0x400 to 0x7FF My RAM 0x800...

Hello, I don't undersant very well wich values should i put in these registers. My eeprom is at 0x400 to 0x7FF My RAM 0x800 to 0xFFF I have INITRM=9 INITEE=1 and INITRG=0 But i think that there is a pb between adress RAM and adress EEPROM Thank


Problem writing a sample program to HCS12DP256 eeprom

Started by Cilo in 68HC1220 years ago 2 replies

Hi, I'm using a HCS12DP256 with ICC12 v6.xx compiler and I want to program EEPROM (at address 0x0400) with the S19 file...

Hi, I'm using a HCS12DP256 with ICC12 v6.xx compiler and I want to program EEPROM (at address 0x0400) with the S19 file attached... The problem is that I keep getting the following error from DBug12 v4.x.x after I execute BULK and LOAD! >bulk >load


EEPROM Variable Storage On MC9S12C128

Started by jmey...@emittechnologies.com in 68HC1215 years ago 6 replies

Hello, I need to store four strings into non-volatile storage. One string will be 15 chars in length and the other three will be 10 chars in...

Hello, I need to store four strings into non-volatile storage. One string will be 15 chars in length and the other three will be 10 chars in length. The strings may be written less that 10 times in the device's lifetime, but will be read possibly thousands of times. It is very important that the strings remain in memory if the power is lost! Is EEPROM the right place for this? I am working w...