This is basic example on how to send and receive data over dsPIC30F UART peripheral. It is easy to understand and if you have not worked with UART on microcontroller before, it is good starting point. In article UART - usage of registers we have explained details of register usage.
We will show how to send charachters, decimal values and strings and how to recive one charachter via UART. You can download whole project for MPLABX and try it at your own solution.
The Universal Asynchronous Receiver Transmitter (UART) module is one of the serial I/O modules available in the dsPIC30F device family. The UART is a full-duplex asynchronous system that can communicate with peripheral devices, such as personal computers, RS-232 and RS-485 interfaces.
The primary features of the UART module are: