sanddune008
New Member
Hi,
Setup:
Two PIC's are connected via UART's.
1. How to send a frame of 8 hex bytes over the UART eg: <startofframe :1byte>:<Data :6bytes><Endofframe:1byte>.
a: Do i have send all the 8 bytes as ascii.
eg: if 0x01 = startofframe then do i have send following byte as follows '0','x','0','1' . Then how to send 8 bytes continuously..
2. On the Rx side() how do i decode the 3rd byte of the 8 hex bytes to do a specific task.
There may be circumstance that the frame length may be 4 bytes how do i negotitate this.
As my uart will receive an interrupt on each char byte. how do i design the following.
Thank to all
Setup:
Two PIC's are connected via UART's.
1. How to send a frame of 8 hex bytes over the UART eg: <startofframe :1byte>:<Data :6bytes><Endofframe:1byte>.
a: Do i have send all the 8 bytes as ascii.
eg: if 0x01 = startofframe then do i have send following byte as follows '0','x','0','1' . Then how to send 8 bytes continuously..
2. On the Rx side() how do i decode the 3rd byte of the 8 hex bytes to do a specific task.
There may be circumstance that the frame length may be 4 bytes how do i negotitate this.
As my uart will receive an interrupt on each char byte. how do i design the following.
Thank to all