Z86C83/C84/E83
CMOS Z8
®
MCU Zilog
8-40 P R E L I M I N A R Y DS97DZ80700
In order to enter STOP (or HALT) Mode, it is necessary to
first flush the instruction pipeline to avoid suspending exe-
cution in mid-instruction. To do this, the user must execute
a NOP (Opcode = FFH) immediately before the appropri-
ate sleep instruction, that is,
Stop-Mode Recovery (SMR) Register. This register se-
lects the clock divide value and determines the mode of
Stop-Mode Recovery (Figure 34 and Figure 35). All bits
are Write-Only, except bit 7, which is Read-Only. Bit 7 is a
flag bit that is hardware set on the condition of STOP re-
covery and reset by a power-on cycle. Bit 6 controls wheth-
er a low level or a high level is required from the recovery
source. Bit 5 controls the reset delay after recovery. Bits 2,
3, and 4, or the SMR Register, specify the source of the
Stop-Mode Recovery signal. Bits 0 and 1 determine the
time-out period of the WDT. The SMR Register is located
in Bank F of the Expanded Register Group at address
0BH. When the Stop-Mode Recovery sources are selected
in this register, then SMR2 Register bits D0,D1 must be set
to 0.
SCLK/TCLK Divide-by-16 Select (D0). D0 of the SMR
controls a divide-by-16 prescaler of SCLK/TCLK. The con-
trol selectively reduces device power consumption during
normal processor execution (SCLK control) and/or HALT
mode (where TCLK sources counter/timers and interrupt
logic). This bit is reset to D0 = 0 after a Stop-Mode Recov-
ery, WDT Time-out, and POR.
External Clock Divide-by-Two (D1). This bit can elimi-
nate the oscillator divide-by-two circuitry. When this bit is
0, the System Clock (SCLK) and Timer Clock (TCLK) are
equal to the external clock HALT Mode frequency divided
by two. The SCLK/TCLK is equal to the external clock fre-
quency when this bit is set (D1=1). Using this bit together
with D7 of PCON further helps lower EMI (that is, D7
(PCON) = 0, D1 (SMR) = 1). The default setting is zero.
Maximum external clock frequency is 8 MHz when SMR
Bit D1 = 1 where SCLK/TCLK = XTAL.
FF NOP ; clear the pipeline
6F STOP ; enter STOP Mode
or
FF NOP ; clear the pipeline
7F HALT ; enter HALT Mode
Figure 34. Stop-Mode Recovery Register (Write-Only
Except Bit D7, Which Is Read-Only)
D7 D6 D5 D4 D3 D2 D1 D0
SMR (FH) 0B
SCLK/TCLK Divide-by-16
0 OFF* *
1 ON
Stop-Mode Recovery Source
000 POR Only and/or External Reset*
001 Reserved
010 P31
011 P32
100 P33
101 P27
110 P2 NOR 0-3
111 P2 NOR 0-7
Stop Delay
0 OFF
1 ON
Stop Recovery Level
0 Low *
1 High
Stop Flag (Read-Only)
0 POR
1 Stop Recovery
Note: Not used in conjunction with SMR2
Source
* Default Setting After RESET
** Default setting after RESET and
Stop-Mode Recovery
*
*
External Clock Divide-by-2
0 SCLK/TCLK = XTAL/2*
1 SCLK/TCLK = XTAL
Figure 35. Stop-Mode Recovery Register 2
([0F] DH: Write-Only)
Figure 36. SCLK Circuit
D7 D6 D5 D4 D3 D2 D1 D0
SMR2 (0F) DH
Note: Not used in conjunction with SMR Source
Stop-Mode Recovery Source 2
00 POR only*
01 AND P20,P21,P22,P23
10 AND P20,P21,P22,P23,
P24,P25,P26,P27
Reserved (Must be 0)
SMR, D0
÷ 2
÷16
OSC
SCLK
TCLK
SMR, D1
Z86C83/C84/E83
Zilog CMOS Z8
®
MCU
DS97DZ80700 P R E L I M I N A R Y 8-41
1
Stop-Mode Recovery Source (D2, D3, and D4). These
three bits of the SMR register specify the wake-up source
of the STOP recovery (Figure 37 and Table 13). When the
Stop-Mode Recovery Sources are selected in this register
then SMR2 register bits D0,D1 must be set to zero. P33-
P31 and Port 2 cannot wake up from STOP Mode if the in-
put lines are configured as analog inputs to the Analog
comparator or Analog-to-Digital Converter.
Note: If the Port 2 pin is configured as an output, this
output level will be read by the SMR circuitry.
Stop-Mode Recovery Delay Select (D5). This bit, if High,
enables the T
POR
/RESET delay after Stop-Mode Recov-
ery. The default configuration of this bit is "1". A POR or
WDT reset will override the selection and cause the reset
delay to occur.
Stop-Mode Recovery Edge Select (D6). A "1" in this bit
position indicates that a high level on the output to the ex-
clusive Or-Gate input from the selected recovery source
wakes the Z86C83/C84/E83 from STOP Mode. A "0" indi-
cates low-level recovery. The default is 0 on POR. This bit
is used for either SMR or SMR2.
Cold or Warm Start (D7). This bit is set by the device
upon entering STOP Mode. A 0 in this bit (cold) indicates
that the device resets by POR/WDT reset. A "1" in this bit
(warm) indicates that the device awakens by a Stop-Mode
Recovery source.
Note: A WDT reset out of STOP Mode will also set this bit
to a "1".
Stop-Mode Recovery Register 2 (SMR2). This register
contains additional Stop-Mode Recovery sources. When
the Stop-Mode Recovery sources are selected in this reg-
ister then SMR Register Bits D2, D3, and D4 must be 0.
Table 13. Stop-Mode Recovery Source
SMR:432 Operation
D4 D3 D2 Description of Action
0 0 0 POR and/or external reset recovery
0 0 1 Reserved
0 1 0 P31 transition (not in Analog Mode)
0 1 1 P32 transition (not in Analog Mode)
1 0 0 P33 transition (not in Analog Mode)
1 0 1 P27 transition
1 1 0 Logical NOR of P20 through P23
1 1 1 Logical NOR of P20 through P27
Table 14. Stop-Mode Recovery Source
SMR:10 Operation
D1 D0 Description of Action
0 0 POR and/or external reset recovery
0 1 Logical AND of P20 through P23
1 0 Logical AND of P20 through P27
Figure 37. Stop-Mode Recovery Source
P31
P32
P33 P27
Stop-Mode Recovery Edge
Select (SMR)
P33 From Pads
Digital/Analog Mode
Select (P3M)
To P33 Data
Latch and IRQ1
To POR
/RESET
0 1 0
0 1 1
MUX
D4 D3 D2
1 1 0
D4 D3 D2
1 1 1
P20
P23
P20
P27
SMR2 SMR2
P20
P23
P20
P27
VDD
SMR2
VDD
SMR D4 D3 D2
0 0
D1 D0
1
0
D1 D0
D1 D0
1
0
0 0
SMR
SMR
D4 D3 D2
1 0 1
SMR
D4 D3 D2
D4 D3 D2
SMR
1 0 0
0
SMR
Z86C83/C84/E83
CMOS Z8
®
MCU Zilog
8-42 P R E L I M I N A R Y DS97DZ80700
Watch-Dog Timer Mode Register (WDTMR). The WDT
is a retriggerable one-shot timer that resets the Z8 if it
reaches its terminal count. The WDT is initially enabled by
executing the WDT instruction and refreshed on subse-
quent executions of the WDT instruction. The WDT circuit
is driven by an on-board RC oscillator or external oscillator
from the XTAL1 pin. The POR clock source is selected
with bit 4 of the WDT register (Figure 38).
WDT instruction affects the Z (Zero), S (Sign), and V
(Overflow) flags. The WDTMR must be written to within 64
internal system clocks. After that, the WDTMR is write pro-
tected.
Note: WDT time-out while in Stop-Mode will not reset
SMR, PCON, WDTMR, P2M, P3M, Ports 2 and 3 Data
Registers, but will cause the reset delay to occur.
The Power-On Reset (POR) clock source is selected with
bit 4 of the WDTMR. Bits 0 and 1 control a tap circuit that
determines the time-out period. Bit 2 determines whether
the WDT is active during HALT and bit 3 determines WDT
activity during STOP. If bits 3 and 4 of this register are both
set to "1," the WDT is only driven by the external clock dur-
ing STOP Mode. This feature makes it possible to wake up
from STOP Mode from an internal source. Bits 5 through 7
of the WDTMR are reserved (Figure 39). This register is
accessible only during the first 60 processor cycles (60
SCLKs) from the execution of the first instruction after
Power-On-Reset, Watch-Dog Reset or a Stop-Mode Re-
covery. After this point, the register cannot be modified by
any means, intentional or otherwise. The WDTMR cannot
be read and is located in Bank F of the Expanded Register
group at address location 0FH.
Figure 38. Resets and WDT
CLK
18 Clock RESET
Generator
RESET
/Clear
WDT TAP SELECT
On Board
RC OSC.
CK /CLR
128 SCLK
POR
256
SCLK
512
SCLK
1024
SCLK
4096
SCLK
3.0V Operating
Voltage Det.
Internal
/RESET
WDT Select
(WDTMR)
CK Source
Select
(WDTMR)
XTAL
VCC
VLV
From Stop
Mode
Recovery
Source
/WDT
Stop Delay
Select (SMR D5)
12 ns Glitch Filter
+
-
WDT/POR Counter Chain
M
U
X
/RESET

Z86E8316SEC

Mfr. #:
Manufacturer:
ZiLOG
Description:
8-bit Microcontrollers - MCU 4K OTP 16MHz W/ADC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union