Hi.
I am using MPLAB and PICKIT3 for programming a 16F876A pic.
This is the program:
This is just my first test with breadboard and pickit3 for blinking
a led. I guess I have connected the device properly because when I make
the file and program it I get this message:
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.27.20
Firmware type......................Midrange
PICkit 3 Connected.Device ID Revision = 00000008
...
With no error message while programming and verify.
After programming I have red the flash memory with pickit3 software
and the program is in the pic. The breadboard has no power supply
which I provide directly with the kitpic3 (5 V).
The connection for pickit are just ok, as I have followed the instruction
on the manual. On breadboard I use a 10MHz xtal and two capacitors of 22pf
connected to Vss. A restistor of 5Kohm between Vdd and MCLR.
I tested the software also with ISIS Proteus and works. The led
blinks. But on the breadboad nothing happen and led is off.
What's wrong?
I am using MPLAB and PICKIT3 for programming a 16F876A pic.
This is the program:
Rich (BB code):
list p=16f876a
#include <p16f876a.inc>
cblock 0x20
CounterA
CounterB
CounterC
endc
org 0x0000
goto main
org 0x0004
retfie
main:
bsf STATUS, RP0
movlw 0x0
movwf PORTB
movwf PORTC
bcf STATUS, RP0
Loop
movlw 0xff
movwf PORTC
movwf PORTB
call Delay
movlw 0x00
movwf PORTC
movwf PORTB
call Delay
goto Loop
Delay
movlw D'168'
movwf CounterC
movlw D'168'
movwf CounterB
movlw D'168'
movwf CounterA
loop
decfsz CounterA,1
goto loop
decfsz CounterB,1
goto loop
decfsz CounterC,1
goto loop
retlw 0x00
END
a led. I guess I have connected the device properly because when I make
the file and program it I get this message:
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.27.20
Firmware type......................Midrange
PICkit 3 Connected.Device ID Revision = 00000008
...
With no error message while programming and verify.
After programming I have red the flash memory with pickit3 software
and the program is in the pic. The breadboard has no power supply
which I provide directly with the kitpic3 (5 V).
The connection for pickit are just ok, as I have followed the instruction
on the manual. On breadboard I use a 10MHz xtal and two capacitors of 22pf
connected to Vss. A restistor of 5Kohm between Vdd and MCLR.
I tested the software also with ISIS Proteus and works. The led
blinks. But on the breadboad nothing happen and led is off.
What's wrong?
Last edited by a moderator: