Hello
The GPIO DAT, SET, CLEAR and TOGGLE registers are 32 bit size. But is it possible for me address them as two 16 bit registers. Say, I am trying to clear two bits in the high word and so my data would be 0x03000000. But only a 16 bit MOV instruction with immediate value is there and not a 32 bit.
If I code as below, is it ok (both in terms of accessing the register, getting the right work done and writing to the right location)
MOVW DP, #_GpioDataRegs
MOV @_GpioDataRegs.GPIOCLEAR.all +1, #0x0300
If there is any better suggestion, please pass on. I want to do only "immediate" to reduce the instruction count to just 1.
Thanks
Sayee