PDA

View Full Version : PIC16F877A to PC connection



mike20200
- 15th August 2007, 16:59
i was using Hyperterminal and wanted to obtain echo from the PIC16F877A. The crystal im using is 20Mhz. BUt there was no echo at all can anyone pls help me

DEFINE OSC 20
DEFINE Ser2_BBITS 8
TRISC = %10111111

PinIn VAR PORTC.7
PinOut VAR PORTC.6
B1 VAR Byte
SerIn2 PinIn, T2400,[B1]
SerOut2 PinOut, T2400, [B1]

END.

can anyone pls help me. Im a beginner...

Shiptronic
- 18th August 2007, 19:32
shortciruit the wire's at the chipt in en out, then it shout work, other wise you have a wirering problem, cross-cable or something

mackrackit
- 18th August 2007, 19:42
Do you have


INCLUDE "modedefs.bas"

at the top of you program?