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

18F8720, AT29C1024.C does it work??

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



Joined: 02 Jun 2004
Posts: 7
Location: WM

View user's profile Send private message

18F8720, AT29C1024.C does it work??
PostPosted: Tue Mar 08, 2005 10:01 am     Reply with quote

Hi,

I have the 18F8720 and I am trying to debug the application using the device library at29c1024.c but the debugger doesn't seem to move any bits of the bus.
I did set the tris D,E,H,J as output, then I used

setup_external_memory(EXTMEM_WORD_WRITE);
then I use..
write_external_memory(START_ADDRESS+((int32)2*address),&value,2);

and when I try it on MPLAB it doesn't do much.

Has anyone tried it before?
Do the *_external_memory() functions work properly?
What should I see when I debug it?

Many Thanks

Leo
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Mar 08, 2005 10:34 am     Reply with quote

Did you look at the driver file??

Code:

// This should be called any other function is accessed
init_ext_flash_memory()

//this function reads the value(word) from the memory location address on the external memory chip
read_ext_flash_memory(long address)

//This function writes a word value to the memory location address on the external memory chip,
//all other words in this sector would be erased to 0xffff
write_ext_flash_memory(long address,long value)
lferrari



Joined: 02 Jun 2004
Posts: 7
Location: WM

View user's profile Send private message

PostPosted: Wed Mar 09, 2005 2:47 am     Reply with quote

Yes, I'm using it but I'm not sure about debbuging it(address bus does not appear to change) and also the pic external bus has got 20bit (addressing) ok no prob., and what about the 16bits that used to send data out.

Thanks

Leo
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