hello
i ve a problem writing program in C. Previously i used assembly program now i'm switching to C .
In assembly we are assigning an inbuilt eeprom memory by writing
FOR EX.
position DATA 0008h
where position is any variable
we are assigning eeprom memory address 00008h to any user defined variable ,here taken as 'position'
thereafter we are accessing value from this memory address by using the
movx instruction and dptr .
but in C how we can define this eeprom address as well as how we can access value stored in this memory address ???
plz help me in this regard
thank u
i ve a problem writing program in C. Previously i used assembly program now i'm switching to C .
In assembly we are assigning an inbuilt eeprom memory by writing
FOR EX.
position DATA 0008h
where position is any variable
we are assigning eeprom memory address 00008h to any user defined variable ,here taken as 'position'
thereafter we are accessing value from this memory address by using the
movx instruction and dptr .
but in C how we can define this eeprom address as well as how we can access value stored in this memory address ???
plz help me in this regard
thank u