> I'm looking for routines that enables my lpc2129 to safely read a > .hex data file through the serial port into temporary RAM. Any > ideas or code examples? > Although the LPCs operate at high frequencies, I'm a bit > concerened about just sending hex data just like an ordinary > ASCII string because of possible problems which can cause data > loss...for example, reading 1 ASCII value into memory too slowly > between uart (RDA) interrupts. What are you going to do with the HEX data? If you are going to turn it back into binary, just reduce to binary before sending. If you send it with (say) 128-byte Xmodem, overrun can be prevented by using a 131 byte serial buffer and enabling the FIFOs to reduce interrupt overhead. We run our USB Stamps this way and have no problems - I *never* see the retry counter go up. We process the incoming data before sending the block acknowledgement, so flow control is automatic. This is done on an LPC2106 at 60MHz with MAM fully enabled. The 2129 should be the same. Stephen -- Stephen Pelc, stephen@... MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 23 80 631441, fax: +44 23 80 339691 web: http://www.mpeltd.demon.co.uk - free VFX Forth downloads
Message
Re: loading hex-es
2004-06-23 by Stephen Pelc
Attachments
- No local attachments were found for this message.