Using a PIC16F819 and below PBP program. My volt meter does not show a HIGH/LOW cycle occuring on the pin for the LED. (Pins 10 and 17). 31.25kHz is desired OSC speed and internal. All pins converted to digital.
MPASM Code:
@__Config_INTRC_OSC
@__Config_PWRT_OFF
@__Config_MCLR_OFF
@__Config_BOREN_OFF
@__Config_DEBUG_OFF
DEFINE OSC 3
OSCCON = %00000000
ADCON1=7
TRISA = %00000000
TRISB = %00000000
TRISB.4 = 0
TRISA.0 = 0
PORTB.4 = 0
PORTB.4 = 0
LOOP:
PULSOUT PORTB.4,20
PAUSE 20
PULSOUT PORTA.0,20
PAUSE 20
'Goto LOOP
Please help if you can. I have been using other posts to fix, but I have been unsucessful.
Bookmarks