I want to transmit ADC signal(Analog to digital data is 16 bit:0x0000~0x0FFF) to PC by RS232, but I can't complete the part of code writing.
I don't know how to modify the code from Lab9_4(Module_09_Serial Communication Interface, SCI – Receive & Transmit).
How to transmit and receive data which is variables ( unsigned int ), it is not constant( char ).
Please write an example.
It can transmit ADC value(16 bit) to PC by RS232, and it also can receive 16bit data from PC.
The enclosures are PFD of Lab9, PPT of Lab9, the practice project of Lab9 and the code of Lab9_4.