|
Hi List, Yet an other memory question: I have a Kevin Ross botboard+ with a 811E2 and a MicroChip 25LC640 serial EEPROM that came with the kit . Using a small assembly sub-routine, I can transfer data in or out of the serial EEPROM to the MCU easily, but I can only write 32 bytes at a time (though I can read as much as I want at a time). Can anyone suggest to me a way to load the serial EEPROM with the content of a s19 file containing say about 4 Kbytes. Is there some kind of program that can do that ? Any hints would be greatly appreciated. With kind regards. Jean St-Pierre |
|
|
|
----- Original Message ----- From: "Jean St-Pierre" <> To: <> Sent: Thursday, May 09, 2002 5:00 PM Subject: [m68HC11] Serail EEPROM programming. > Hi List, > Yet an other memory question: > I have a Kevin Ross botboard+ with a 811E2 and a MicroChip 25LC640 > serial EEPROM that came with the kit . > Using a small assembly sub-routine, I can transfer data in or out of the > serial EEPROM to the MCU easily, but I can only write 32 bytes at a time > (though I can read as much as I want at a time). > Can anyone suggest to me a way to load the serial EEPROM with the > content of a s19 file containing say about 4 Kbytes. Is there some kind of > program that can do that ? The serial EEPROM uses a paged mechanism for doing the writes. What you have to do is to raise the CS line, wait for 10ms, then lower the CS line. Then you can continue writing the part. I wrote an article about this: http://www.seattlerobotics.org/encoder/aug99/serialeeprom.html Kevin |
|
|
|
Dear Kevin, Thank for your reply. I will modify my serail EEPROM write routine (WriteSEE ) as you suggested. Thank you for your suggestion. This will take care of my 32 bytes boundary problem. Now as to the serial EEPROM data uploading, the only thing I can think of is: 1) Copy the target serial EEPROM data into the HC811E2 EEPROM including the "WriteSEE" write routine. 2) Run WriteSEE to transfer the data to the serial EEPROM. This way I can transfer about 1.7 K bytes of data at a time. To upload 4 Kbytes, I simply repeat the 1.7 Kbytes write, until I am finished. All the best ! Regards Jean St-Pierre > The serial EEPROM uses a paged mechanism for doing the writes. What you have > to do is to raise the CS line, wait for 10ms, then lower the CS line. Then > you can continue writing the part. > > I wrote an article about this: > > http://www.seattlerobotics.org/encoder/aug99/serialeeprom.html > > Kevin |