Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/06/01 12:39
Read: times


 
#9025 - RE: serial downloading a program into a RAM
Hi Michael.

Create a circular buffer in RAM somewhere to hold at least 1.1 data lines (max length of data line + a few extra bytes). Enable serial input (Interrupt driven), and wait until a CR (Carriage return 0x0D) is received. Then parse the input from this RAM buffer. Convert the received data to bytes and store them at the destination address. After that you decrement the CR counter and advance the input buffer read pointer to the end of the line you just parsed. Then wait for the next CR and repeat everything.
At the same time detect the end of the file. If you find the end of the file you can jump to the start address of your program.

I'm working on a description of different file formats at the moment on my homepage. Look at:

www.bigfoot.com/~sanmail and then click on knowledge base.

Good luck

List of 7 messages in thread
TopicAuthorDate
serial downloading a program into a RAM            01/01/70 00:00      
RE: serial downloading a program into a RAM            01/01/70 00:00      
RE: File Formats            01/01/70 00:00      
RE: serial downloading a program            01/01/70 00:00      
RE: serial downloading a program into a RAM            01/01/70 00:00      
RE: serial downloading a program into a RAM            01/01/70 00:00      
serial downloading a program            01/01/70 00:00      

Back to Subject List