Enabling the UART

Problem:
The transmit and the receive functions of the UART must be enabled separately. The section on Voltages, at the bottom of page 50, gives the impression that there is only one enable bit.

Solution:
Change the first paragraph on Voltages, on page 50, to read:

Voltages
The PIC’s COM function, which is also known as a Universal Synchronous/Asynchronous Receiver/Transmitter (USART), uses bit 6 and 7 of port C. These bits must both be set as input bits on the port even though bit 6 is used to transmit data. In addition, the USART receiver must be enabled by setting bit 7 of register 0x18 (in register bank 0) and the transmitter must be enabled by setting bit 7 of register 0x18 (in register bank 1).
Note that the same numbered register is used but that these are in different register banks.

Further information:
I hope that this page helps you with your projects but if you have found any other problems or if you have any further questions please contact me though the email address of gares-AT-g4aym-DOT-org-DOT-uk.

Sorry about the email address but it seems to be the only way to avoid the spammers



Click here to return to the PIC Basics Main Page

Click here for the Index of Errors and Ommissions