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

Trying to program PIC18F4620 using own serial bus

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
nik84



Joined: 07 Mar 2011
Posts: 2

View user's profile Send private message

Trying to program PIC18F4620 using own serial bus
PostPosted: Mon Mar 07, 2011 1:44 am     Reply with quote

Hi,
I am trying to program the PIC18F4620 using my own programmer essentially. I am using the low-voltage programming method as stated in the Flash Micro-controller programming specification and toggling PGM, PGC and PGD accordingly in order to write to PIC memory.

I am writing to memory using table write commands which consist of the 1000 command followed by a 16-bit operand. I am just trying to load a simple program into code memory which will tri-state PORT C on power up.

I am running the PIC using a 25MHz crystal in HS mode. Hence, I think I will need to program this in the configuration space of memory as well. Does someone know the exactly programming sequence required to do this?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 07, 2011 1:05 pm     Reply with quote

Study the sample code for the 12F675 here:
http://www.ccsinfo.com/forum/viewtopic.php?t=26816

Download the Programming spec for the 12F675 and read it
while looking at the sample code in the thread above.
http://ww1.microchip.com/downloads/en/DeviceDoc/41191D.pdf

Download the Programming specification for the 18F4620.
Look at the differences between it and the 12F675. Decide how to
modify the sample code to make it work with the 18F4620.
http://ww1.microchip.com/downloads/en/DeviceDoc/39622L.pdf


Also, this Programmer/Debugger sub-forum is not the place to ask
questions like this. This sub-forum is about problems with the CCS
programmers/debuggers, such as ICD-U40, etc.

If you have questions on writing programs, post them in the General
Discussion forum:
http://www.ccsinfo.com/forum/viewforum.php?f=1
Don't post questions in the 12F675 thread given above. Nobody wants to
answer questions in the Code Library forum, unless it is about bugs in
the original post.
nik84



Joined: 07 Mar 2011
Posts: 2

View user's profile Send private message

PostPosted: Mon Mar 07, 2011 1:48 pm     Reply with quote

Thanks for the info. I will try it out.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go 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