We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm trying to access SFR memory using the hexa address of the SFR and using only "C" instructions. Since SFR memory is accessed by direct addressing mode, like the first 128 bytes of internal RAM, I tried to use the following instruction :
* ((unsigned char data *) 0xA8) = 0x1;
MOV R0,#0A8H MOV @R0,#01H
* ((unsigned char idata *) 0xA8) = 0x1;
How did what I said contradict what you said? No contradiction! Just adding some detail (which, as you say, was not essential to main 'C' discussion). "Reply" doesn't necessarily imply "Disagree" - sorry if it sounded that way.
"Reply" doesn't necessarily imply "Disagree" - sorry if it sounded that way. My fault. I was being overly sensitive. Please ignore me. Regards. - Mark