Mapping EEPROM to RAM

Started by vvibin2003 in 68HC1214 years ago 8 replies

Hi, I want to implement a shadow RAM ,for holding my data in the EEPROM. So my requirement is to have some portion of the RAM...

Hi, I want to implement a shadow RAM ,for holding my data in the EEPROM. So my requirement is to have some portion of the RAM mapped to EEPROM locations so that ,it will always have the contents of EEPROM .So this allows me to avoid the frequent reading of EEPROM and to writ


how to unsecure eeprom?

Started by Sim IPS in 68HC129 years ago 2 replies

Hi, while reading the eeprom memory location 0x0FFD& eeprom register EPROT giving a value 0x20.i.e.,eeprom in secure mode .How to unsecure it?...

Hi, while reading the eeprom memory location 0x0FFD& eeprom register EPROT giving a value 0x20.i.e.,eeprom in secure mode .How to unsecure it? ( I am using eeprom memory is from 0x0000 to 0x0fff in mc9s12dj256b ) thanks in advance Simi _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Scanning of this message and addition of this footer is performed by E-ma...


EEPROM erased

Started by p_anglum in 68HC1214 years ago

I have posted questions about the protection scheme of the EEPROM on the MC9S12DP256B and have been enlightened about it. ...

I have posted questions about the protection scheme of the EEPROM on the MC9S12DP256B and have been enlightened about it. Unfortunately we need to leave the EEPROM unprotected because the end user will be doing some calibration updates which is written to the EEPROM.


Placing Data Objects in EEPROM

Started by bernd71093 in 68HC1212 years ago 3 replies

Hi experts, I want to access data in the EEPROM space 0xC00. The target is the S12XDP512. The compiler I use is called Cosmic v4.6. ...

Hi experts, I want to access data in the EEPROM space 0xC00. The target is the S12XDP512. The compiler I use is called Cosmic v4.6. The EEPROM space definition in the linkfile looks like: ========================================================= +seg .eeprom -b 0xC00 -o 0x13FC00 -m 1024 var_eeprom.o //my file with the eeprom data //(-b: logic


S12X EEPROM emulated?

Started by joshcurtz in 68HC1212 years ago 7 replies

So I've been using the S12XDP512 for quite some time and someone told me that the Freescale folks said the EEPROM is not "real" EEPROM but ...

So I've been using the S12XDP512 for quite some time and someone told me that the Freescale folks said the EEPROM is not "real" EEPROM but is actually an "emulated" EEPROM. He says this is the case because the S12X's EEPROM is not byte eraseable and is based on "flash technology". Does one really call this "emulated EEPROM"? I'm


unsecure the eeprom

Started by Simi in 68HC1210 years ago

friends, i am working in mc9s12dj256b .i am trying to write eeprom via bdm .for that i am using codewarrior s/w.but it shows an secure problem....

friends, i am working in mc9s12dj256b .i am trying to write eeprom via bdm .for that i am using codewarrior s/w.but it shows an secure problem. ie, eeprom is secure.if anyone know the unsecuring procedure/code of eeprom ,please share with me juna _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Scanning of this message and addition of this footer is performed b...


Moving eeprom

Started by Graham Tricker in 68HC1214 years ago 1 reply

I am using the MC9S12DP256B MPV with a Cosmic compiler. I am trying to move the eeprom to the second 4k block of memory 0x1000 so I...

I am using the MC9S12DP256B MPV with a Cosmic compiler. I am trying to move the eeprom to the second 4k block of memory 0x1000 so I can use all off the 4k eeprom. I have placed the following code in my eeprom initialisation routine. INITEE = 0x21; _asm("NOP&q


How to access internal EEPROM from external flash memory(68HC812A4)

Started by Mansukh Sheliya in 68HC1215 years ago 2 replies

Hi All, In my application, I am using 68HV812A4 in Normal Expanded mode. I want to store some variables inside the 4KB EEPROM. I...

Hi All, In my application, I am using 68HV812A4 in Normal Expanded mode. I want to store some variables inside the 4KB EEPROM. I don't know- How to assign the perticular EEPROM address to my variable which I want to store inside the internal EEPROM? Can anybody help to solve my problem? EEPROM


standalone EEPROM write on MC9S12A256B / 1k79x ?

Started by christian_theiss_2003 in 68HC1214 years ago 6 replies

Hi all, I have come across of some strange unexplained behaviour if I try to write to the 4k EEPROM of my HCS12 derivative: ...

Hi all, I have come across of some strange unexplained behaviour if I try to write to the 4k EEPROM of my HCS12 derivative: a) writing to the EEPROM with BDM attached works walking through my application code which successfully writes to the EEPROM b) wri


Cosmic: @eeprom doesn't work

Started by Klaus Kaiser in 68HC1214 years ago 2 replies

Hello, I use the IdeaCPU12 V2.10f from Cosmic. To store a character in the EEPROM of a MC9S12DG256B, I defined a variable like...

Hello, I use the IdeaCPU12 V2.10f from Cosmic. To store a character in the EEPROM of a MC9S12DG256B, I defined a variable like this: @eeprom char foo; Accordinc to Cosmic docs, this should be enough to make the compiler insert a call to a EEPROM writing function i


bulk erasing eeprom

Started by Anish in 68HC1214 years ago 6 replies

Hi I am trying to bulk erase the 768 Byte EEPROM in 6812b32. I have written an assembly code for erasing it. I can see thru the...

Hi I am trying to bulk erase the 768 Byte EEPROM in 6812b32. I have written an assembly code for erasing it. I can see thru the debugger that when my code executes the eeprom is erased and all contents are FF but when I reset my processor then eeprom contains my previous data.


initialisation steps of mc9s12dj256b

Started by Simi in 68HC129 years ago

i want to know the initialisation steps of mc9s12dj256b when use it for eeprom writing i am using the following code, // Mode Selected is ...

i want to know the initialisation steps of mc9s12dj256b when use it for eeprom writing i am using the following code, // Mode Selected is Normal Expanded Wide Mode MODE = 0xE0; // set the PEAR for overlaying EEPROM as RAM PEAR = 0x8C; //enable the Flash EEPROM or ROM memory in the memory map. MISC = 0x03;//$$03 to 01 for EEProm testing and eeprom registers initialisation....


Force eeprom variable to eeprom address

Started by acer...@yahoo.com in 68HC129 years ago

I have eeprom configured for address 0x4000 to 0x4fff. Variables are initialized as "@eeprom char variable1 = 0;". The compiler, Cosmic Zap...

I have eeprom configured for address 0x4000 to 0x4fff. Variables are initialized as "@eeprom char variable1 = 0;". The compiler, Cosmic Zap debugger, automatically assigns the variables to the locations within the address range. Is it possible to manually assign it to a specific location in the address range? ------------------------------------


EEPROM not readable on reset? (MC68HC912B32)

Started by drranu in 68HC1212 years ago 13 replies

Hey. Is there an initialization sequence necessary to be able to read EEPROM (byte-erasable) on reset? Here's my situation: MC68HC912B32...

Hey. Is there an initialization sequence necessary to be able to read EEPROM (byte-erasable) on reset? Here's my situation: MC68HC912B32 microcontroller. 1. The first line of my program clears COPCTL. 2. The next several lines copy bytes from EEPROM (starting at $0D00) into RAM (starting at $0800). 3. The program is located in flash EEPROM at


Storing variables when running in FLASH EEPROM

Started by supaben34 in 68HC1212 years ago 1 reply

Hello all, I am trying to run a program in my FLASH EEPROM in my HC12B32 board. My program works fine in RAM but doesn't seem to work when...

Hello all, I am trying to run a program in my FLASH EEPROM in my HC12B32 board. My program works fine in RAM but doesn't seem to work when in FLASH EEPROM. Iam setting my EEPROM address to $8000... I am also using variables and I was wondering where I should set them. When looking at the programmer's manual, it seems like $1000 cannot be "seen" wh


EEPROM protection register

Started by p_anglum in 68HC1214 years ago 6 replies

We're using the MC9S12DP256B and I have a question regarding eeprom protection. Not counting the area from $_E00 to $_FFF, can we...

We're using the MC9S12DP256B and I have a question regarding eeprom protection. Not counting the area from $_E00 to $_FFF, can we use the EPOPEN bit in the EPROT register to protect our eeprom data but still modify the eeprom data if we first change the EPOPEN bit? Or is the EPRO


Writing to EEPROM: Basics needed

Started by Roth Markus in 68HC1213 years ago 6 replies

Gents For a certain application it would be nice if I could write to the EEPROM at run time. I have never been writing to the...

Gents For a certain application it would be nice if I could write to the EEPROM at run time. I have never been writing to the EEPROM, so my knowledge for this special feature is zero. What I am looking for is a short briefing on what I need to do that. E.g. are th


Problems programming the EEPROM

Started by Doug Brainard in 68HC1214 years ago 3 replies

Hi All, I'm new at trying to program the EEPROM and was hoping you guys could shed some light on the problem I'm having. First...

Hi All, I'm new at trying to program the EEPROM and was hoping you guys could shed some light on the problem I'm having. First off, I am using the MC9S12DG128B with a 40MHz external clock (20MHz bus). According to Metroworks, I have the EEPROM located at 0x2000-0x27FF as de


Cosmic C eeprom programmer.

Started by Andrew Lohmann in 68HC1213 years ago 5 replies

Hi, I am trying to get the EEPROM programmer in Cosmic C to work. The example below returns 255, 255 incorrectly. ...

Hi, I am trying to get the EEPROM programmer in Cosmic C to work. The example below returns 255, 255 incorrectly. #pragma space [] @EEPROM @EEPROM UCHAR Eeprom_[10]; #pragma space case 'w': case 'W': { printf ("\n


programming EEPROM during interrupts

Started by Wade A Smith in 68HC1213 years ago

I'm working with the 912D60A. We have a communicatioin process running all the time. But every few hours we need to backup...

I'm working with the 912D60A. We have a communicatioin process running all the time. But every few hours we need to backup some data to EEPROM. On the HC11E20 we do the following set up the erase for the byte in EEPROM set up Timer4 to fire off in 10milliSec