Why $55,$AA are used to reset watchdog?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why $55,$AA are used to reset watchdog?

849件の閲覧回数
citron
Contributor I

Hello, I am using MC9S12, and realizing watchdog in COP of this chip. In this datasheet of this chip, they must need to put '$55' and '$AA' to some specific register.
I wonder the meaning of '$55' and '$AA'. In ohter words, I wonder why these characters($55,$AA) are used, and what machanism does the watchdog timer reset (by that charaters).

ラベル(1)
タグ(3)
0 件の賞賛
1 返信

631件の閲覧回数
RadekS
NXP Employee
NXP Employee

Hi Haneul,

It is because 0x55 and 0xAA are very nice numbers in binary format.

0b01010101 = 0x55

0b10101010 = 0xAA

So, every write into ARMCOP register should negate every individual bit.

 

The access to ARMCOP register is watched by special logic and any write different from 0x55 or 0xAA will cause immediately COP reset (only when COP is enabled). Write 0x55/0xAA will reset COP counter.

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------