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

[ Control ]External Memory Interface Bus in Pic18F

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



Joined: 25 Aug 2009
Posts: 175

View user's profile Send private message Yahoo Messenger

[ Control ]External Memory Interface Bus in Pic18F
PostPosted: Thu Jun 27, 2013 10:19 pm     Reply with quote

Dear all
I've a project interface between PIC18F97J60 and External SRAM HM628128A.
I want to using external memory bus to interface with SRAM.
I read a help in CCS C (ver 4.140) and found some functions to work with it:
- setup_external_memory( )
- write_external_memory( )
- read_external_memory( )

But i don't know clearly how to map pin and port from PIC18F97J60 to SRAM.
Pls give me way to solve it, or give me some tuturial about it.
Thnnks and regards.
_________________
Begin Begin Begin !!!
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Fri Jun 28, 2013 1:24 am     Reply with quote

The external memory bus uses _fixed_ pinouts. These are in the data sheet.
The only 'configurations', are delays, and the write 'mode' (16bit 8bit etc.), which are setup by 'setup_external_memory'.
Look at register 8-1 in the data sheet, then at the #defines in 18F97J60.h
The 'wait' defines, define the wait bits in this register, and the byte_write, select, and word_write values define the WM bits in this register.

Best Wishes
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