Hi, have done a simple flowcode program just to flash a led on 1 pin
It converts to C and HEX fine. When I come to download the program into the 12F683 MCU,Mikroprog programmer says it sees a 12F508 MCU instead of 12F683 as selected?
I've attached the flow chart and the error message.Any help will be appreciated. Thanks guys...........John
Mikroprog suite for pic-Wrong PIC Recogonised?
Moderator: Benj
Mikroprog suite for pic-Wrong PIC Recogonised?
- Attachments
-
- 12F683 Test 2.fcf
- (6 KiB) Downloaded 360 times
-
- 12F683 error.jpg (144.92 KiB) Viewed 10980 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Mikroprog suite for pic-Wrong PIC Recogonised?
Hi John,
12F508 is the default device if communications fail.
I have a 12F683 connected and will deliberately set target deceive for the wrong device e.f 12F1840.
Select Read will all connections correct: Now will remove wire from programmer PGC to target device and click on Read: .
So best to double check connections.
From the blue end of ribbon cable which is pin1:
Re Flowchart:
C code withshould be before the main loop and not inside.
osc needs to be internal and not external.
Watchdog timer needs to be off not on.
If you have got an external pull-up resistor between MCLR and VCC then master clear enable is ok on external.
If no pull-up resistor then master clear enable needs to be changed to internal.
12F508 is the default device if communications fail.
I have a 12F683 connected and will deliberately set target deceive for the wrong device e.f 12F1840.
Select Read will all connections correct: Now will remove wire from programmer PGC to target device and click on Read: .
So best to double check connections.
From the blue end of ribbon cable which is pin1:
Code: Select all
Programmer Chip
1 - VCC(pin1)
2 - PGC(pin6)
3 - PGD(Pin7)
4 - MCLR(Pin4)
5 - GND(pin8)
C code with
Code: Select all
osccon=0x70;
osc needs to be internal and not external.
Watchdog timer needs to be off not on.
If you have got an external pull-up resistor between MCLR and VCC then master clear enable is ok on external.
If no pull-up resistor then master clear enable needs to be changed to internal.
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Mikroprog suite for pic-Wrong PIC Recogonised?
You're welcome John.
I guess it would have been less misleading if error pops up with 'Error - Unable to establish communication's'
Rather than 'Device Detected - 12F508'
But it is what it is.
I guess it would have been less misleading if error pops up with 'Error - Unable to establish communication's'
Rather than 'Device Detected - 12F508'
But it is what it is.
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Mikroprog suite for pic-Wrong PIC Recogonised?
Hi John,
Glad it's all working.
What was the issue?
It helps anyone else who has the same problem.
Glad it's all working.
What was the issue?
It helps anyone else who has the same problem.
Martin
Re: Mikroprog suite for pic-Wrong PIC Recogonised?
I was using a bread board with jumper leads.
Turns out one of the jumper leads was faulty. Could have kicked myself!!!Anyway, thanks for your time.
Take care.....John
Turns out one of the jumper leads was faulty. Could have kicked myself!!!Anyway, thanks for your time.
Take care.....John