For the first time I use the bootloader with the 16F877.
Loading with the PicStart Plus and running the next simple program is no problem.
Loading the bootloader isn't a problem.
Loading the program by the bootloader insn't a problem too.
Running behaves strange.
Portb.3 stays an input.
The other B ports go high for 2 seconds, then low and then they become inputs.
Nothing else happends.
Did I do something wrong or forget something?
DEFINE LOADER_USED 1 ' Bootloader 19200
@ DEVICE PIC16F877,XT_OSC
@ DEVICE PIC16F877,BOD_OFF
@ DEVICE PIC16F877,LVP_OFF
@ DEVICE PIC16F877,CPD_OFF
@ DEVICE PIC16F877,PROTECT_OFF
DEFINE OSC 4
ADCON1 = %10000010
TRISB = %00000000
Pause 200
Clear
STARTEN:
PORTB=255
Pause 2000
PORTB=0
Pause 1000
GoTo starten
End
Bookmarks