CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC12F508 gives different times
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Fri May 25, 2018 9:11 am     Reply with quote

OK, I switched to 12F683, and imagine my happy face when I got the same error. There is definitely something wrong with the programmer. I scoped the clock - ok, the data -ok, the VDD is stable during programming. Guess what? The MCLR pin barely reached 6V when programming. I supplied the MCLR/VPP from external source (12V) and TADAAA! WORKS :O.

First I thought that the USB doesn't supply the programmer well. I moved the usb from the PC port to a powered USB Hub. Same issue.

I am almost sure that the programmer has failed. Any ideas how to fix VPP on a PICKit3?

I know this is another topic and most probably not for this forum and I would understand no answers at all. Anyway at least you can't downvote it Smile
_________________
A person who never made a mistake never tried anything new.
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri May 25, 2018 9:37 am     Reply with quote

Hmm.. any chance you've got the LVP fuse set i your program ? I've had a PICkit3 for years and never had it not work. Do you have a 10K pullup on _mclr to Vdd ?

Jay
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Fri May 25, 2018 10:00 am     Reply with quote

No LVP. Nothing connected. The experimental board is like this <http://www.prodctodc.com/bmz_cache/3/38fe401e7cff9a868cb556fd077fa1a7.image.300x300.jpg>

Just the programmer wires and bare uC. The uC itself is powered by the programmer.
_________________
A person who never made a mistake never tried anything new.
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri May 25, 2018 10:04 am     Reply with quote

do you have a 10K pullup between VDD and mclr (pins 1 and 2 of the PK3) ?
Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 25, 2018 10:55 am     Reply with quote

rikotech8 wrote:
OK, I switched to 12F683, and imagine my happy face when I got the same error. There is definitely something wrong with the programmer. I scoped the clock - ok, the data -ok, the VDD is stable during programming. Guess what? The MCLR pin barely reached 6V when programming. I supplied the MCLR/VPP from external source (12V) and TADAAA! WORKS :O.


There are several threads on the 6v Vpp problem with Pickit 3 on
the Microchip forum. You should move your problem to Microchip.
Maybe open a support ticket.
https://www.microchip.com/forums/m895528.aspx
https://www.microchip.com/forums/m824325.aspx
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Fri May 25, 2018 11:33 am     Reply with quote

@temtronic:
Yes there is 10K between these two pins.

All:
It seems that the problem may be caused by bad PICKit3 firmware. The micro within controls the VPP boost circuits. I will upgrade the MPLAB or probably move to MPLAB X, though there are reported bugs with it too.
_________________
A person who never made a mistake never tried anything new.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group