Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/13/08 07:39
Read: times


 
#152208 - Memory addressing of EZ-USB FX2LP(CY7C68013a)
I have written the simple program as follows..



BYTE xdata u_buf1[1] _at_ 0x4001;
BYTE xdata u_buf[1] _at_ 0x4000;

void main(){

int val;
OEB=0xFF; //making port B output

u_buf[3]="a,b";
u_buf1[3]="c,d";

while(1){

IOB=u_buf1[1];

}
}

I keil debugger memory window it is showing that both of variabls u_buf[1] and u_buf1[1] is storing at location X:0x0000.
Whether i assigned them different location(0x4000).
and junk value is displaying at X:0x0000 location.
Actually here i am trying to store a array in external memory location 0x4000.

i am able to store a byte
As declaring it is XBYTE[4000]="A",
it is storing a byte in location 0x4000.
i am not able to storing a array at location 0x4000.
Please suggest me the right procedure..

List of 3 messages in thread
TopicAuthorDate
Memory addressing of EZ-USB FX2LP(CY7C68013a)            01/01/70 00:00      
   Basically flawed?            01/01/70 00:00      
   How to post source code            01/01/70 00:00      

Back to Subject List