I am using PIC16f877A for the first time. I tried a simple program to light two led in portb which is working for PIC16f84A (with 4 MHz crystal), but it doesn't work for 16f877A (with 20 MHz) ………what's wrong ?
This is the program
'40 MHz OSC
TRISB=0
START:
PORTB.0=1
PAUSE 1000
PORTB.0=0
PAUSE 1000
PORTB.1=1
PAUSE 1000
PORTB.1=0
PAUSE 1000
GOTO START
Bookmarks