AnsweredAssumed Answered

[S12XHY128]write register 0x01 but came out 0x80?

Question asked by Kim Chan on Jul 6, 2017
Latest reply on Jul 11, 2017 by Kim Chan

for example, i write code like this:

REFDV = 0x01;

so i expected that REFDIV0 = 1

but when i run this code(using Trace32)



the REFFRQ1 became 1, seems like reversed when writing.

And it have the same problem in reading. If i want to read bit3( REGISTER_BIT3), have to use the bit4( REGISTER_BIT4)....

(though the REFDV.Byte=1 in the watch)

 And i'm very confuse about this.

So if anyone have ideas?

If it is problem with bit order or something else?