The ground of both devices should also be made common. UART uses two data lines for sending (Tx) and receiving (Rx) data. As it is asynchronous it doesn't need to send clock signal along with the data signals. There are also two different modes namely the 8-bit and 9-bit mode, in this tutorial we will configure the USART module to work in Asynchronous mode with 8-bit communication system, since it is the most used type of communication. The USART can be configured in the following modes: USART is also a full-duplex communication, means you can send and receive data at the same time which can be used to communicate with peripheral devices, such as CRT terminals and personal computers. USART is a two wire communication system in which the data flow serially. Here we have used PIC16F877A MCU, it has a module called “Addressable Universal Synchronous Asynchronous Receiver and Transmitter” shortly known as USART. Check here our complete PIC Microcontroller Tutorials using MPLAB and XC8. Now, we will equip our self with a new communication tool called UART which widely used in most of the Microcontroller projects. So far, we have covered all basic modules like ADC, Timers, PWM and also have learnt how to interface LCDs and 7-Segment displays. In this tutorial we learn to Enable UART communication with PIC Microcontroller and how to transfer data to and from your Computer.
0 Comments
Leave a Reply. |