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

manual programming

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

manual programming
PostPosted: Fri May 01, 2009 1:41 pm     Reply with quote

Hello, I'm trying to understand how all of those programmers out there (WinPic, icprog etc) communicate with PIC...

My goal is just to read device id from PIC, I've winpic800 and I can read which pic I'm using by reading the value 0x0768 (16f88).

I assume this sends something to the PIC which "responds" this value...
Does anyone has an idea how I can do this? using hyperterminal for example?

I assume this does not need any kind of drivers, just the right value to be sent at hyperterminal....

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 01, 2009 1:48 pm     Reply with quote

The 16F88 Programming Specification explains how to put the PIC into
program mode, and how to send commands and data to the PIC
through 2 special pins to program it. It's not done through the serial
port pins. This document explains it all:
http://ww1.microchip.com/downloads/en/DeviceDoc/39607b.pdf
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Fri May 01, 2009 4:53 pm     Reply with quote

i was looking for that all over the place..
thank you


are there any practical examples of that? just some simple things on how to start?

Can you tell me if we can use hyperterminal just to see "how it works"?
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Sat May 02, 2009 4:47 am     Reply with quote

Ok we cant simply do it with hyperterminal since we need clocks and so....still i cant find a simple working source code example :/
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat May 02, 2009 8:06 am     Reply with quote

Search for: ICSP Programming Algorithm
Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=26816
Remember that different PICs have different algorithms. That one is
for the 12F675 and 12F629.
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Sat May 02, 2009 9:30 am     Reply with quote

once again thanks, the code is huge :P but ill have a look at it...


Also do you think I can use 12V from PC power supply to achieve programming mode?

Also is there any possibility to get those 13V with 5V? maybe using a MAX232? :P
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat May 02, 2009 2:37 pm     Reply with quote

Just curious, but are you going to develop your own programmer?
Many good and cheap programmers already exist, so why would you want to spend your time on this?
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Sat May 02, 2009 3:46 pm     Reply with quote

nah i have a programmer

I've a project on my mind I would like to develop. :P Also I always like to know how things work down to the 0 and 1, for example I would like to do an usb interface with a pic without using ftdi's....but thats another subject....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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