Hi
i want to know the command to access data in RAM of pic16f877a. as i use MOVC A,@+DPTR for 8051, how can i use it in pic.
i am using CCS compilar.
thanks
Ttelmah Guest
Posted: Tue Aug 05, 2008 3:12 am
Stop thinking in assembler. You are using C now. All your variables are in RAM. If you want to access a particular location, either use the #byte directive, or #locate, to put a C variable at the required location.
However much better to just let C handle the memory for you.
If you want to work relative to a 'pointer', then use the C pointer access, or array access.
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