-
Pic16f877a 20mhz
I'm try to make led blinking using PIC16F877A 20MHZ with PICBASIC Pro 2.45,LED not blinking. LED Still ON. I dont know why...I write code like this...
define OSC 20
MAIN:
HIGH PORTB.0
PAUSE 1000
LOW PORTB.0
PAUSE 1000
GOTO MAIN
any problem with my code????
-
try this
Code:
define OSC 20
TRISB = 0
MAIN:
HIGH PORTB.0
PAUSE 1000
LOW PORTB.0
PAUSE 1000
GOTO MAIN
-
Continue....
When i'm use that code for PIC16F819 and PIC16F84A , It work !
-
I had a similar problem with a 20MHz program and it turned out I was using the wrong fuse setting for the clock when burning the chip. I was setting it as XT but when I set it as HS all was good.
Just something else to try :)
Paul