PIC Projects

Using the UART module

In this project we test the PIC's built-in hardware for serial communication. I borrowed the most of the schematic and the code from Hein Ragas's page. The PIC can be accessed from a PC by using the Hyper Terminal program, for example. Right upon the power is ON i(and also after every pushing the reset button) the PIC sends the message "16F628 is alive". After this you can type characters by using the Hyper Terminal console. These characters will be send to the PIC, which flashes the LED with the corresponding Morse code of the character sent. The Morse code is send back to PC and displayed in the Hyper Terminal window.

My contribution to this project is a power supply. I use MAX756 DC/DC converter that transforms 1.5V from a AA battery into 5V needed for a normal operation of the PIC and the RS232 (serial port) interface IC MAX232.

SchematicLayoutDevice in action

The code is available here: 628uart.asm and 628uart.hex


Last modified:Mon, Jan 23, 2023.

04670