I have an application which gathers multiple-byte sized pieces of data and stores them in external RAM sequentially.
I am trying to develop a little piece of code that will essentially stream all the gathered data from external memory to a PC serial port, so that the data can be processed by a PC.
The problem I am having is that I can't find a way to get the PC to discern between the pieces of data with no real delimiters between them, so I may need to code a way to convert my 'external memory data' to data that a PC can interpret and separate the values.
Here is what I'm working with for the data dump.
TRANSMIT_XMEM: ;TRANSMIT XRAM LDI COUNTER_HIGH,0xDD ;Load count 0x200 to clear LDI COUNTER_LOW,0xFF ;memory from 0x00 to 0x1FF CLR A ;clear temp LDI ZH,0x22 ;Load starting address of LDI ZL,0x00 ;RAM 0x2200 in Z pointer SENDRAM: LD A,Z+ ;Store 0 in current Z location RCALL TRANSMIT SBIW COUNTER_HIGH:COUNTER_LOW,1 ;Decrement the counter BRNE SENDRAM ;end if zero RET
I was thinking that I may need to convert each byte to it's two-byte ascii representation, so that I can use the ascii 'comma' for a delimiter.
Thanks in advance.