AAEON AEC-6930 User Manual

Page 53

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-6

push

ax

push

cx

mov

dx,SMBus_Port

+04h ;SMBus_Port(500h)

mov

al,ch

;ID

cmd(Write)

out

dx,al

call

Delay5ms

call

Delay5ms

pop

ax

mov

dl,03h

out

dx,al

;Index

call

Delay5ms

call

Delay5ms

pop

ax

mov

dl,05

out

dx,al

;Data0

call

Delay5ms

call

Delay5ms

mov

dl,02h

mov

al,48h

out

dx,al

;write

data

call

Delay5ms

Advertising