Target device does not match
I have PBP 2.50A with a MElabs U2 Programmer and an 8 to 40 Pin ZIF Adapter version 06221 JMS. I am trying to compile a very simple blinky and program it to a PIC18F2410. I have installed and configured MPASM as my assembler. When I try to program or erase the 28 pin Dip PIC18F2410 I get the error “Target device does not match selected device”. I can successfully read the pic and check that it is blank. My code assembles without problem and I have verified that I have put the PIC in the correct way.
------------------Code----------------------------
CH1 VAR PORTB.7 ' Define CH1 pin
CH2 VAR PORTB.6 ' Define CH2 pin
CH3 VAR PORTB.5 ' Define CH3 pin
CH4 VAR PORTB.4 ' Define CH4 pin
CH5 VAR PORTB.3 ' Define CH5 pin
CH6 VAR PORTB.2 ' Define CH6 pin
CH7 VAR PORTB.1 ' Define CH7 pin
CH8 VAR PORTB.0 ' Define CH8 pin
BLINK:
HIGH CH1
PAUSE 500
LOW CH1
PAUSE 500
GOTO BLINK
End
------------------End Code----------------------------
This is my first 18F device so I am a bit iffy as to whether I have got something wrong. I ordered 4 PIC18F2410s and have tried this with several chips with the same result.
Any help you can offer would be great.
Best Regards,
Kurt A. Kroh
KrohTech
“Goodbye and thanks for all the fish”
Bookmarks