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.
Dear Sr. Can i access registers (reading and writing) SFR inserted at different addresses from the comercial 8051 ones? For example the following addresses registers are not accessible for writing: SFR LDO_CTRL = 0xC0; SFR CH1 sfr = 0xC5; sfr CH2 = 0xC6; SFR RX_F1 = 0xC9; SFR RX_F2 = 0xCA; SFR RX_P1 = 0xCB; SFR RX_P2 = 0xCC;
KEIL IDE displays the following message:
SFR_EXTRAS1.C(38): error C202: 'LDO_CTRL': undefined identifier SFR_EXTRAS1.C(43): error C202: 'CH1': undefined identifier SFR_EXTRAS1.C(44): error C202: 'CH2': undefined identifier SFR_EXTRAS1.C(45): error C202: 'RX_F1': undefined identifier SFR_EXTRAS1.C(46): error C202: 'RX_F2': undefined identifier SFR_EXTRAS1.C(47): error C202: 'RX_P1': undefined identifier SFR_EXTRAS1.C(48): error C202: 'RX_P2': undefined identifier
So, what are you saying?
Do not manually re-type code into your post - use copy-and-paste.
And pay attention to the instructions for posting source code:
www.danlhenry.com/.../keil_code.png
And pay attention to the 'Preview' to ensure that it's correct before you post it.
Andrew, thanks for the tips.
The errors presented in the messages have been corrected.
Thanks, Claudionor.
Excellent!