Download BASIC1 - esco

Transcript
Annex
BASIC1 - User manual
12.7.2 Watchdog Function (Major function ID 05)
This API category provides functions for the watchdog timer.
Watchdog Timer On (Minor function ID 00)
• Input: AX
• Output:
= 0500h
BX
CX: Bit 6
CX: Bit 5
CX: Bit 4-0
BX !
= 55AH: Program watchdog by register CX
= 1, Enable reset pin
= 1, enable IOCHK pin
= Top 5 bit for count (0.5 -19 s)
= 55AH, disable pins and set count to a maximum of 8.75 s
CF
CF
= 0 Function not provided, Watchdog enabled
= 1 (Function not provided!)
Watchdog Timer Off (Minor function ID 01)
• Input: AX
• Output:
= 0501h
CF
CF
= 0 Function not provided, Watchdog disabled
= 1 (Function not provided!)
Watchdog Timer Reset (Minor function ID 02)
• Input: AX
• Output:
Page 98 of 100
= 0502h
CF
CF
= 0 Function not provided!, Watchdog timer reset
= 1 (Function not provided!)
Rev. 2.00 of 28.5.2002