
Originally Posted by
Darrel Taylor
I've never seen a serial EEPROM with a 256 byte page buffer. Which one are you using?
> Even with the page feature I would need a ~10ms pause every 256 bytes to have the time to write the 256 bytes array into serial eeprom using the page write. That's why I have to keep the 10ms interval between character from hyperterminal. Any idea? Did I miss something?
Well, first off ... the Page Write Buffer is just that, A Buffer. Buffering the whole page in the PIC before writing it to the Page Write Buffer, isn't very efficient. The purpose of the buffer on the PIC should only be to collect incoming data during the time when it can't send it to the EEPROM's buffer because it's in a write cycle. How big that buffer needs to be, depends on the baud rate of the incoming data (also unknown at this point) and how long the EEPROM takes to write. But for sure it's less than 256 bytes.
> I'm chosing 452 or 242 because Norm made an application based on this microcontroler ...
The 2520/4520 will do everything the 252/452 can. And more.
> About USART, do I need to poll a bit? The program executes the next instruction once the HSERIN is done, no??
If you want the program to stop dead in it's tracks every time, sure, go for it.
Personally, I'd rather let the program continue on doing other things like buffer maintenance and figuring out how many bytes to write to the Page buffer at a time.
<br>
Bookmarks