8XC196MC, MD, MH USER’S MANUAL
13-12
13.6.2 Issuing the Reset (RST) Instruction
The RST instruction (opcode FFH) resets the device by pulling RES ET# l ow f or 16 state tim es.
It also clears the processor status word (PSW), sets the master program counter (PC) to 2080H,
and resets the special function registers (SFRs). See Table C-2 on page C-2 for the reset values
of the SFRs.
Putting pull-ups on the address/data bus causes unimplemented are as of memory to be read as
FFH. If unused internal OTPROM memory is set to FFH, then execution from any unused mem-
ory locations will reset the device.
13.6.3 Issuing an Illegal IDLPD Key Operand
The device resets itself if an illegal key operand is used wi th the idle/powerdown (IDLPD) com-
mand. The legal keys are “1” for idle mode and “2” for powerdown mode. If any other value is
used, the device executes a reset sequence. (See Appendix A for a description of the IDLPD com-
mand.)
13.6.4 Generating Wait States
The 8XC196Mx devices can interface with a vari ety of external memory devic es. With slower
external devices this requires insertin g wa it state s to lengthe n the bus c ycle. An exte rnal devi ce
can use the READY input to request wait states in addition to the wait states that are generated
internally by the 8XC196Mx device. The READY signal must be held valid until the TCLYX (for
the 8XC196MC, MD) or TLLYX (for the 8XC196MH) t iming specification is met. Do not exceed
the maximum TCLYX (for the 8XC196MC, MD) or TLLYX (for the 8XC196MH) specification or
additional (unwanted) wait states might be added (see Chapt er 15, “Wait States (Ready Control),”
for a detailed explanation).
13.6.5 Enabling the Watchdog Timer
The watchdog timer (WDT) is a 16-bit counter that resets the device when the counter overflows.
The WDE bit (bit 3) of CCR1 controls whether the watchdog is enabled immediately or is dis-
abled until the first time it is clea red. Clearing WDE activates the watchdog. Setting WDE makes
the watchdog timer inactive, but you can activate it by clearing the watchdog register. Once the
watchdog is activated, only a reset can disable it.
The 8XC196MC and 8XC196MD allow only one reset inter val, 64K state times. This require s
your software to interrupt itself every 65,535 state times to reset the wat chdog. The 8XC196MH
allows you to choose a longer interval.