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

PIC18C801 question

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








PIC18C801 question
PostPosted: Fri Jun 15, 2007 12:12 pm     Reply with quote

I am exploring the possibility of using a PIC18C801 for a somewhat more involved project and was curious as to how CCS would write/read a value from an SRAM connected to the external memory bus. I've seen others doing this but never any CCS code. I also plan on using this bus for I/O registers and would like to access those registers the same way. I am just a little confused since I realize that the PIC micros are not von Neumann architecture. I've read the datasheet about the table read/writes but I just don't know how all this would work under CCS. Does anyone have any sample code showing this?

Thank you.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 17, 2007 5:44 pm     Reply with quote

I haven't used that PIC, but here are some suggestions:

1. Read about the setup_external_memory() function in the CCS manual.

2. Look at these two driver files which call that function.
c:\program files\picc\drivers\at29c1024.c
c:\program files\picc\drivers\m68af031.c

3. Use the forum's search engine to search for:
Quote:
setup_external_memory

Then read the relevant posts.
http://www.ccsinfo.com/forum/search.php
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