![]() |
Home |
|
Program SerDemoSerDemo shows how to use RTTarget-32's serial port I/O support. It initializes the target's COM2 for 9600 baud, 8 data bits, 1 stop bit, no parity, and RTS/CTS hardware handshake. All data received is displayed on the screen and echoed to the same port. If transmission errors are detected, corresponding error messages are displayed on the screen. Each time a carriage return character is received, a complete line of text is echoed to the sender. The program can be terminated by entering any character on the target's keyboard. Please refer to the RTTarget-32 Reference Manual, section Serial Port I/O for more information about RTTarget-32's serial I/O support. RTKernel-32 should not use module RTTCom for serial I/O; instead, use module RTCom as demonstrated in demo program COMDemo.
|