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 CCS Technical Support

PIC18LF452 programming woes - ICSP
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
Ttelmah
Guest







PostPosted: Fri Jul 07, 2006 2:39 pm     Reply with quote

Hum.
I had their older USB programmer (no ICSP), and it never worked properly. I could program just about a 18F452, but not the EEPROM. It also wouldn't do the fuses right. Three software updates latter, and it is sitting in my 'scrap' bin...
That having been said, try increasing the resistor on MCLR to 47K. Historically some USB programmers, have problems delivering much current to the programming pin, and if this was borderline, it might give unexpected problems.

Best Wishes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 07, 2006 2:39 pm     Reply with quote

I didn't say anything in the documentation where it says it will do ICSP
at 3.3 volts. Maybe it's in the help file. I didn't install the program.

Also, I wonder if it's programming the Config bits correctly.
If Brownout is enabled and it's set for 4.2v, the PIC will be held in
reset when you run it +3.3v.

I suggest that you borrow the ICD2.
barkerben



Joined: 19 Jan 2006
Posts: 22

View user's profile Send private message

PostPosted: Fri Jul 07, 2006 2:41 pm     Reply with quote

I'll try that and post here when I've done it. If it works, I'll have to splash out on a new programmer I guess :-(

Cheers,

Ben
Guest








PostPosted: Sat Jul 08, 2006 4:22 am     Reply with quote

Ok... it turns out I needed to shorten my ICSP lead - now working fine :-)

One thing however - I am toggling all the pins on port A as a test, and they all work except fr A4. I suspect this means I have somehow damaged the channel, but could it be anything else? Does that pin have any special significance?

Cheers,

Ben
Ttelmah
Guest







PostPosted: Sat Jul 08, 2006 7:06 am     Reply with quote

Yes.
A4, is an 'open collector' output. It can only drive 'down' to ground. You need to add a pull-up resistor to this line, if you want it to go up.
Glad you have it working. Hopefully their software now does program the EEPROM right (you might want to test this at some point).

Best Wishes
Guest








PostPosted: Sat Jul 08, 2006 12:25 pm     Reply with quote

Yes, everything seems fine. I bodged a sloution by connecting pin A4 to the nearby E0 with a smalll bit of wire...nobody can see it :-)

Only problem now is my max710 seems to be going a bit odd and having problems with load regulation. While it was giving a steady 3.33v, it is now giving around 3.15 even with minimal load. Inout voltage is 2.65, so it is trying to step up...

my 5v supply is doing its job fine though. Oh well, I'm probably sort ut out :-p

Cheers.

Ben
Guest








PostPosted: Sun Jul 09, 2006 6:14 pm     Reply with quote

Oooo.... I think I may heve don somthing stupid. When I realised the problem with A4, I used E0 instead. But the signal is still connected to A4, so when I drive E0 high I am also driving A4 high. I suspect this might explain my strange voltage levels...

Ben
StuartH



Joined: 19 Aug 2005
Posts: 14
Location: W. Midlands, UK

View user's profile Send private message

PostPosted: Tue Jul 11, 2006 4:08 pm     Reply with quote

Ben, just set A4 to float. (input). That should sort the problem without hardware modification.
Sorry I couldn't be more helpful on the DIY board.
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