PDA

View Full Version : Target device does not match



krohtech
- 2nd February 2008, 03:29
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.

Jerson
- 2nd February 2008, 04:16
Guesses

1) My adaptor board has 2 connectors; 1 handles 8-18 pin PICs and the other handles 20-40pins. Perhaps the connector is connected to the wrong place.

2) Again, the orientation for programming 8-18 pins is one way on the zif and for 40 pinners is the other way. ie: pin1 for one matches ZIF 1 and pin 1 for the other type matches with pin 21.

3) Programmer is not turned on(very unlikely)

4) You've managed to blow the device.

Good luck

JF

krohtech
- 2nd February 2008, 04:20
Guesses

1) My adaptor board has 2 connectors; 1 handles 8-18 pin PICs and the other handles 20-40pins. Perhaps the connector is connected to the wrong place.


JF

Thank You Jerson,

It was the board turned around. I must have missed that in the manual.