Z86C8316PEC ZILOG [Zilog, Inc.], Z86C8316PEC Datasheet - Page 34

no-image

Z86C8316PEC

Manufacturer Part Number
Z86C8316PEC
Description
Z8 MCU MICROCONTROLLERS
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet
Z86C83/C84
Z8
In order to enter STOP (or HALT) mode, it is necessary to
first flush the instruction pipeline to avoid suspending
execution in mid-instruction. To do this, the user must
execute a NOP (opcode = FFH) immediately before the
appropriate sleep instruction, that is,
FF
6F
FF
7F
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
timeout 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.
34
SMR (FH) 0B
D7 D6 D5
Note: Not used in conjunction with SMR2
Source
* Default Setting After RESET
** Default setting after RESET and
Figure 34. STOP-Mode Recovery Register (Write-
®
Stop-Mode Recovery
MCU Microcontrollers
Only Except Bit D7, Which Is Read-Only)
STOP
HALT
NOP
NOP
D4 D3 D2 D1 D0
; enter STOP mode
; enter HALT mode
; clear the pipeline
; clear the pipeline
External Clock Divide-by-2
0 SCLK/TCLK = XTAL/2*
1 SCLK/TCLK = XTAL
Stop Delay
0 OFF
1 ON
Stop Recovery Level
0 Low *
1 High
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
100 P33
101 P27
110 P2 NOR 0-3
111 P2 NOR 0-7
Stop Flag (Read-Only)
0 POR
1 Stop Recovery
P32
*
*
or
SCLK/TCLK Divide-by-16 Select (D0). D0 of the SMR
controls a divide-by-16 prescaler of SCLK/TCLK. The
control 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
Recovery, WDT Timeout, 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 frequency divided by two. The
SCLK/TCLK is equal to the external clock frequency 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 4 MHz when SMR Bit D1 = 1 where
SCLK/TCLK = XTAL.
SMR2 (0F) DH
Note: Not used in conjunction with SMR Source
D7 D6 D5 D4 D3 D2 D1 D0
Figure 35. Stop-Mode Recovery Register 2
OSC
Figure 36. SCLK Circuit
16
([0F] DH: Write-Only)
2
SMR, D0
SMR, D1
Stop-Mode Recovery Source 2
00 POR only*
01 AND P20,P21,P22,P23
10 AND P20,P21,P22,P23,
Reserved (Must be 0)
P24,P25,P26,P27
SCLK
TCLK
DS96DZ80203

Related parts for Z86C8316PEC