AOpen DE896-FL Assembly Manual page 20

Table of Contents

Advertisement

CODE FLOW-CHART
Sta t r
Initial
Watchdog Pin
Stop T
imer
and
Clear Status
1. Initial Watchdog Pin
(1)set -> Logical Device: Global
CR: 0x2D
Bit: 0 = 0 WDTO.
(2)set -> Logical Device: 0x09
CR: 0X30
Bit:3 = 1 activate GPIO5
CR: 0xE0, 0xE1, 0xE2
Bit: 6, Bit: 7, Bit: 6
= 0 GPIO port is programmed as an output port.
1. Stop timer
(1)set -> Logical Device: 0x08
CR:
0xF6
Bit: 7~0 = 0x0 0 Stop timer
(2)Set -> Logical Device 0x08
CR
0x30
Bit:0 = 1, activate
2. Clear Status
(1)set -> Logical Device: 0x0
CR: 0xF7
Bit: 4 = 0 Timer counting
18
WDTO
8

Advertisement

Table of Contents
loading

Table of Contents