Test 14. Dual RS232 software interface for PC and PIC microcontroller In many PICMicros a built in serial interface, known as USART for “Universal \Synchronous/Asynchronous Receiver/Transmitter” is available. This hardware al- lows data to be received and sent without any software involvement. To send data, the USART simply shifts the data out (low byte first) to the TX I/O pin. To receive data, the USART works by polling (sampling) the serial data input line at sixteen times the data rate. When a “low” is detected, the hardware waits 8 poll- ing cycles to check to see if the line is still low half a bit period later. If it is, then a bit is read every sixteen polling clocks until the whole byte has been read in. At the end of the byte, the Stop bit is checked to be high. If the byte is received with- out any problems, a byte received flag is set. The software presented in our test provides similar serial interface functions while using not USART module, but general purpose I...