AAEON AEC-6930 User Manual

Page 52

Advertising
background image

E m b e d d e d C o n t r o l l e r

A E C - 6 9 3 0

Appendix A Programming the Watchdog Timer A-5

A.4 F75111 Watchdog Timer Initial Program

. .MODEL SMALL

.CODE

Main:

push cx

mov

al,

20h

;Enable WDT(Value to write)

mov cl, 01h

;F75111 register index

mov ch, 6eh ;(Serial Bus address 0x6E)

call

Ct_I2CWriteByte

mov

al,

01h

;Indicate WDTOUT10 is occurred

mov cl, 34h

;F75111 register index

mov ch, 6eh ;6eh (Serial Bus address 0x6E)

call

Ct_I2CWriteByte

mov

al,

83h

;Enable WDTOUT10 Output Timer:3 seconds

mov cl, 35h ;F75111 register index

mov ch, 6eh ;6eh (Serial Bus address 0x6E)

call

Ct_I2CWriteByte

pop

cx

ret

Ct_I2CWriteByte Proc

Near

Advertising