User’s Manual 193.2.2 Serial CommunicationThe following sample programs are found in the SAMPLES\RCM4200\SERIAL folder.• FLOWCONTROL.C—This program demonstrates how to configure Serial Port D forCTS/RTS flow control with serial data coming from Serial Port C (TxC) at 115,200 bps.The serial data received are displayed in the STDIO window.To set up the Prototyping Board, you will need to tie TxD and RxDtogether on the RS-232 header at J4, and you will also tie TxC andRxC together using the jumpers supplied in the Development Kit asshown in the diagram.A repeating triangular pattern should print out in the STDIO window.The program will periodically switch flow control on or off to demonstrate the effect offlow control.If you have two Prototyping Boards with modules, run this sample program on thesending board, then disconnect the programming cable and reset the sending board sothat the module is operating in the Run mode. Connect TxC, TxD, and GND on thesending board to RxC, RxD, and GND on the other board, then, with the programmingcable attached to the other module, run the sample program.• PARITY.C—This program demonstrates the use of parity modes byrepeatedly sending byte values 0–127 from Serial Port C to Serial Port D.The program will switch between generating parity or not on SerialPort C. Serial Port D will always be checking parity, so parity errorsshould occur during every other sequence.To set up the Prototyping Board, you will need to tie TxC and RxD together on theRS-232 header at J4 using one of the jumpers supplied in the Development Kit asshown in the diagram.The Dynamic C STDIO window will display the error sequence.• SERDMA.C—This program demonstrates using DMA to transfer data from a circularbuffer to the serial port and vice versa. The Dynamic C STDIO window is used to view orclear the buffer.Before you compile and run the sample program, youwill need to connect the RS-232 header at J4 to your PCas shown in the diagram using the serial to DB9 cablesupplied in the Development Kit.Once you have compiled and run the sample program,start Tera Term or another terminal emulation programto connect to the selected PC serial port at a baud rate of115,200 bps. You can observe the output in the Dynamic CSTDIO window as you type in Tera Term, and you canalso use the Dynamic C STDIO window to clear thebuffer.The Tera Term utility can be downloaded fromhp.vector.co.jp/authors/VA002416/teraterm.html.&!: :::&!:: ::&!::::*-*0(9(98(