vilfred
Member level 1
Hi.. The hardware such as PIC16F877A, MAX232, USB to UART cable(i.e. one end compatible with usb port in PC, and other end is DB9 connector), 8MHz crystal oscillator, 33Pf (2 no.), 10uF(4 no.), are used in my UART project. I'm connecting these in bread board. I used pickit3 to program my IC.
1). PIC16F877A
- 13th and 14th are connected by oscillator and osc is grounded by two 33pF capacitors.
- 11th pin is connected to supply(+5V), 12th pin is grounded.
- RC6(TX) pin is connected to MAX232 10th pin(Tx), likewise RC7(RX) pin is connected to MAX232 9th pin(Rx).
2).MAX232
- 16th pin is connected to supply(+5V), and 15th pin is grounded.
- 10uF is connected across 16th pin and 2nd pin.
- 1st and 3rd pins are connected by 10uF similarly 4th and 5th pins, and 6th pin is grounded.
- DB9 connector Rx(2nd pin) is connected to 7th pin, and Tx (3rd pin) is connected to 8th pin.
- 5th pin of DB9 connector is grounded.
This is my setup and i'm trying to send a single character with LED indication, the code is attached below. My IC is programmed well using pickit3. I also checked the code in Proteus, it generated A in virtual terminal.
In real time i received nothing in terminal window, i've checked the baudrate, parity, stop bits, etc... also i downloaded several codes like this and dump the hex code and checked, but i didn't get any output. Software - MPLAB X IDE.
Please give me a solution i'm doing this project for a long time. Whether my hardware setup is correct?
1). PIC16F877A
- 13th and 14th are connected by oscillator and osc is grounded by two 33pF capacitors.
- 11th pin is connected to supply(+5V), 12th pin is grounded.
- RC6(TX) pin is connected to MAX232 10th pin(Tx), likewise RC7(RX) pin is connected to MAX232 9th pin(Rx).
2).MAX232
- 16th pin is connected to supply(+5V), and 15th pin is grounded.
- 10uF is connected across 16th pin and 2nd pin.
- 1st and 3rd pins are connected by 10uF similarly 4th and 5th pins, and 6th pin is grounded.
- DB9 connector Rx(2nd pin) is connected to 7th pin, and Tx (3rd pin) is connected to 8th pin.
- 5th pin of DB9 connector is grounded.
This is my setup and i'm trying to send a single character with LED indication, the code is attached below. My IC is programmed well using pickit3. I also checked the code in Proteus, it generated A in virtual terminal.
In real time i received nothing in terminal window, i've checked the baudrate, parity, stop bits, etc... also i downloaded several codes like this and dump the hex code and checked, but i didn't get any output. Software - MPLAB X IDE.
Please give me a solution i'm doing this project for a long time. Whether my hardware setup is correct?