z86e02sl1925 ZiLOG Semiconductor, z86e02sl1925 Datasheet - Page 45

no-image

z86e02sl1925

Manufacturer Part Number
z86e02sl1925
Description
General-purpose Otp Mcu With 14 I/o Lines
Manufacturer
ZiLOG Semiconductor
Datasheet
PS014802-0903
Software Work Around on the Z86CCP01ZEM Emulator
to Emulate the Software WDT Running in HALT Mode
Note:
Op Code WDT (5Fh)
The first time Op Code 5Fh is executed, the WDT is enabled; subsequent execu-
tion clears the WDT counter. This clearing of the counter must be performed at
least every T
erated reset is the same as a power-on reset of T
The software enabled WDT does not run in STOP mode.
On the CCP emulator, a software workaround must be used to emulate the soft-
ware WDT. This workaround follows.
Op Code WDH (4Fh)
When this instruction is executed it enables the WDT during HALT. If not, the WDT
stops when entering HALT. This instruction does not clear the counters – it just
makes it possible to operate the WDT during HALT mode. A WDH instruction exe-
cuted without executing WDT (5Fh) yields no effect.
Permanent WDT
Selecting the hardware-enabled Permanent WDT option bit automatically enables
the WDT upon exiting reset. The permanent WDT always runs in HALT mode and
STOP mode, and it cannot be disabled.
On the CCP emulator, a software workaround must be used to
enable the software in HALT Mode/STOP Mode or hardware-
enabled WDT. This workaround follows.
SWFIXSWDT:
SWFIXSWDT:
WDT
; otherwise, the WDT times out and generates a reset. The gen-
PUSH RP
LD RP, #0Fh
LD R15,#00000101B
POP RP
PUSH RP
LD RP, #0Fh
LD R15,#00000101B
POP RP
General-Purpose OTP MCU with 14 I/O Lines
PQR
, plus 18 crystal clock cycles.
Z86E02 SL 1925
39

Related parts for z86e02sl1925