What is the difference? :
The truth is more important than the facts.
First uses the "assembler friendly name", the other uses the struct access
(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)
The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.
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.
© 2022 Microchip Technology Inc.