View previous topic :: View next topic |
Author |
Message |
lferrari
Joined: 02 Jun 2004 Posts: 7 Location: WM
|
18F8720, AT29C1024.C does it work?? |
Posted: Tue Mar 08, 2005 10:01 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Tue Mar 08, 2005 10:34 am |
|
|
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)
|
|
|
![](templates/subSilver/images/spacer.gif) |
lferrari
Joined: 02 Jun 2004 Posts: 7 Location: WM
|
|
Posted: Wed Mar 09, 2005 2:47 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|