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
Posted: Sun Jun 17, 2007 5:44 pm
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
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