What is the difference? :
_PROTECTED_WRITE(PPP_RRR, XXXXX);
_PROTECTED_WRITE(PPP.RRR, XXXXX);
What is the difference? :
_PROTECTED_WRITE(PPP_RRR, XXXXX);
_PROTECTED_WRITE(PPP.RRR, XXXXX);
First uses the "assembler friendly name", the other uses the struct access
Just to point out that this has nothing in particular to do with PROTECTED_WRITE. As Morten says you have a choice when accessing SFRs. The possible advantage of the C/C++ struts is that because registers are grouped you can often pass around just the base address of a register block.