MC9RS08KA2 Flash Programming Procedure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9RS08KA2 Flash Programming Procedure

1,768 Views
Henrique
Contributor I
I'm not completely certain of the flash programming and mass erase procedures for the MC9RS08KA2  MCU.
 
As far as I searched, a program should first be stored in RAM, through the BKGD pin, and then be executed with the GO command. This program would then execute the 'Flash Programming Procedure' or the 'Flash Mass Erase Operation', that are described on section 4.6.2 and 4.6.3 of the 'MC9RS08KA2 Datasheet', respectively.
 
If this is right, there is not enough RAM for programming an entire 64 byte array at a time on this MCU, since the RAM would need to contain some instructions to follow the procedure and the 64 bytes of a row to be actually programmed into the Flash EPROM. And the RS08KA2 has only 63bytes of RAM.
 
I'm wondering if I must use the RAM as a buffer, continuously storing new bytes that come trough the BKGD pin, while they are programed without stopping (because there is a maximum byte program time = 40us) by a code that resides in the RAM too. That would be a race against the time, since the BKGD interface is quite slow (for that). All this seems so complicated, that it suggests that there is another way of doing it.
 
Does anybody know about any documentation describing these procedures in detail or by example?
 
Thank you
Labels (1)
0 Kudos
2 Replies

475 Views
Ake
Contributor II
Hello,
The 9RS08KA has a simpler Flash EPROM than the 9S08 MCUs.
It has only got two commands available. They are program a byte and erase the whole Flash EPROM.
In additon what is needed is an external high voltage supply.
 
This means that if you want to program something, first you have to copy the routine into RAM, select the address of the byte to be changed, and the address and call the routine.
As the RAM memory is quite small, you cannot enter a whole row at a time, but will have to call the rout
ine several times to get more than one byte programmed.
 
To be honest, I have not written any Flash EPROM driver for the 9RS08 MCUs, so I might have got something wrong.
 
It seems like you intend to write your own BKGD interface.
Is that your intention?
There are several BKGD interfaces that available right now.
 
 
Regards,
Ake
 
0 Kudos

475 Views
Henrique
Contributor I
I once won 2 free samples of this 9RS08KA2. It seemed very usefull for future projects and I just wanted to program it without having to buy the BKGD interface. I'm taking this task as a challenge. I have no comercial intension of producing this interface.
0 Kudos