On-Chip PN Modulator for Spread Spectrum
Communications
■
ROM-Programmable PN Codes, up to 256 Bits ("Chips")
■
Fast Instruction Pointer - 1.0 µ s @ 12 MHz
■
Two Standby Modes - STOP and HALT
12 Input/Output Lines (One with Comparator Input)
■
(Kbytes)
RAM*
(Bytes)
Package
Information
Z87100
PN M
W
■
■
■
■
■
■
■
■
■
ODULATOR
IRELESS
Two Programmable 8-Bit Counter/Timers
6-Bit Programmable Prescaler
Six Vectored, Priority Interrupts (Two External, One
Software Generated)
Maximum Clock Speed of 12 MHz
Watch-Dog/Power-On Reset Timer
Analog Comparator with Programmable Interrupt
Polarity
On-Chip Oscillator that Accepts a RC, or External Clock
Drive
Low EMI Noise Mode
to +70 ° C Ultra-Low Power Operation at 10 kHz
T
RANSMITTER
3
GENERAL DESCRIPTION
The Z87100 Wireless Controller is a member of the Z8
single-chip microcontroller family and is manufactured in
CMOS technology. Zilog’s CMOS Z87100 microcontroller
offers fast execution, efficient use of memory, sophisticated interrupts, input/output bit manipulation capabilities,
and easy hardware/software system expansion along with
low cost and low power consumption.
The Z87100 architecture is based on Zilog’s 8-bit microcontroller core with the addition of an Expanded Register
File which allows access to register mapped peripheral
and I/O circuits. The Z87100 offers a flexible I/O scheme
and a number of ancillary features that are useful in many
consumer, industrial, automotive, and advanced scientific
applications.
The Z87100 is designed with specific features for wireless
spread spectrum applications using direct sequence pseudo-noise (PN) modulation. With up to 256 bits (“chips”) of
DS96WRL0700
P R E L I M I N A R Y
®
specially designated “PN ROM”, one or more PN code sequences may be stored and used to PN-modulate data
generated by the Z87100. PN modulation is synchronous
with the data, using an integer number of PN chips per data
bit.
The Z87100 features an Internal Time Base Counter which
provides a real time clock for Stop-Mode Recovery or interrupt at programmable intervals of 0.25 seconds, one second, one minute and one hour. This requires an external
clock oscillator signal at 32.768 kHz.
Special PN modulator control registers allow the user to
select the desired PN modulator outputs, to choose the PN
clock source and PN sequence start address in PN ROM,
to stop/start and enable/disable the PN modulator, and to
determine whether a complete PN code sequence is modulated against a single bit or an integer fraction or multiple
of a single bit. The PN-modulated data may then be used
3-1
Z87100
Wireless TransmitterZilog
GENERAL DESCRIPTION (Continued)
with an external modulator and RF section to form a complete wireless spread spectrum transmitter.
The device's many applications demand powerful I/O capabilities. The Wireless Controller fulfills this with 12 pins
dedicated to input and output. These lines are grouped into
two ports, and are configurable under software control to
provide timing, status signals, or parallel I/O.
Three basic address spaces are available to support this
wide range of configurations; Program Memory, Register
InputOutput
Port 3
VCCGND
File, and Expanded Register File. The Register File is
composed of 124 bytes of General-Purpose Registers, two
I/O Port registers and fifteen Control and Status registers.
The Expanded Register File consists of two port registers,
four control registers and six PN modulator registers.
With powerful peripheral features such as on-board comparators, counter/timers, Watch-Dog Timer, and PN modulator, the Z87100 meets the needs for most sophisticated
wireless and low-power controller applications (Figure 1).
TMBASE
RC
Machine Timing &
Instruction Control
Time Base
Generator
Counter/
Timers (2)
Interrupt
Control
Analog
Comparator
PN
Modulator
Port 2
I/O
(Bit Programmable)
ALU
FLAG
Register
Pointer
Register File
144 x 8-Bit
WDT, POR
Prg. Memory
1024 x 8-Bit
Program
Counter
3-2
Figure 1. Functional Block Diagram
P R E L I M I N A R Y
DS96WRL0700
3
ZilogWireless Transmitter
Z87100
PIN DESCRIPTION
Table 1. 18-Pin DIP/SOIC Pin Identification
NoSymbolFunctionDirection
1-4P24-27Port 2, Pins 4, 5, 6, 7In/Output
5V
6RC2RC Oscillator ClockOutput
7RC1RC Oscillator ClockInput
8-9P31, P33Port 3, Pins 1, 3Fixed Input
10TMBASETime Base ClockInput
11GNDGroundInput
12-13P35-36Port 3, Pins 5, 6Fixed Output
14GNDGround Input
15-18P20-23Port 2, Pins 0, 1, 2, 3In/Output
P24
P25
P26
P27
1
2
3
4
CC
18
17
16
15
Power SupplyInput
P23
P22
P21
P20
Z87100
VCC
RC2
RC1
P31
P33
Figure 2. 18-Pin DIP/SOIC Pin Configuration
5
6
7
8
9
14
13
12
11
10
GND
P36
P35
GND
TMBASE
DS96WRL0700
P R E L I M I N A R Y
3-3
Z87100
Wireless TransmitterZilog
ABSOLUTE MAXIMUM RATING
SymDescriptionMinMaxUnits
V
T
T
Supply V oltage*–0.3+7.0V
CC
Storage Temp–65+150C
STG
Oper Ambient
A
†C
Temp
Notes:
1. *Voltage on all pins with respect to GND.
2. † See Ordering Information
STANDARD TEST CONDITIONS
The characteristics listed below apply for standard test
conditions as noted. All voltages are referenced to ground.
Positive current flows into the referenced pin (Figure 3).
Stresses greater than those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; operation of the device at
any condition above those indicated in the operational sections of these specifications is not implied. Exposure to absolute maximum rating conditions for extended period may
affect device reliability.
IoL
Threshold
Voltage
Output
Under
Test
50pF
IoH
Figure 3. Test Load Configuration
3-4
P R E L I M I N A R Y
DS96WRL0700
3
≤
≤
Z87100
ZilogWireless Transmitter
DC ELECTRICAL CHARACTERISTICS
T
SymParameter
Max Input
Voltage
V
CH
Clock Input
High V oltage
V
CL
Clock Input
Low V oltage
V
IH
Input High
Voltage
V
IL
Input Low
Voltage
V
OH
Output High
Voltage
V
OL1
Output Low
Voltage
V
OL2
Output Low
Voltage
V
OFFSET
Comparator
Input Offset
Voltage
I
IL
Input Leakage
(Input bias
current of
comparator)
V
CC
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
3.0V
5.5V
= 0 ° C to +70 ° C
A
MinMax@ 25 ° CUnitsConditionsNotes
12
12
0.9 V
0.9 V
V
SS
V
SS
0.7 V
0.7 V
V
SS
V
SS
V
CC
V
CC
CC
CC
–0.3
–0.3
CC
CC
–0.3
–0.3
–0.4
–0.4
V
CC
V
CC
0.2 V
0.2 V
V
CC
V
CC
0.2 V
0.2 V
+0.3
+0.3
CC
CC
+0.3
+0.3
CC
CC
0.8
0.4
1.0
1.0
25
25
–1.0
–1.0
1.0
1.0
Typical
2.4
3.9
1.6
2.7
1.8
2.8
1.0
1.5
3.1
4.8
0.2
0.1
0.4
0.5
10
10
VVI
IN
I
IN
250 µ A
250 µ A
VVDriven by External Clock
Generator
VVDriven by External Clock
Generator
V
V
V
V
VVI
VVI
VVI
= –2.0 mA
OH
I
= –2.0 mA
OH
=+4.0 mA
OL
I
=+4.0 mA
OL
= 6 mA, 3 Pin Max
OL
I
= +12 mA, 3 Pin Max
O
mV
mV
µAµAVIN = OV, V
VIN = OV, V
CC
CC
DS96WRL0700
P R E L I M I N A R Y
3-5
Z87100
Wireless TransmitterZilog
DC ELECTRICAL CHARACTERISTICS (Continued)
TA= 0°C to +70°C
SymParameter
I
OL
Output
Leakage
I
CC
Supply Current 3.0V
V
CC
3.0V
5.5V
MinMax@ 25°CUnitsConditionsNotes
–1.0
–1.0
5.5V
4.5V
I
CC1
Standby
Current
3.0V
5.5V
(HALT mode)
3.0V
5.5V
I
CC2
Standby
Current
3.0V
5.5V
(STOP mode)
3.0V
5.5V
5.5V125µASTOP mode;
T
V
POR
LV
Power-On
Reset
VCC Low
3.0V
5.5V
7
3
1.502.652.1V2 MHz max Ext. CLK
Voltage
Notes:
1. V
increases as the temperature decreases.
LV
2. All outputs unloaded, I/O pins floating,
inputs at either rail, TMBASE clock input grounded.
3. CL1 = CL2 = 100 pF
= 5.5V.
CC
CC
.
4. Same as note 2 except inputs at V
5. Low EMI oscillator selected; SCLK = RC1/2;
10 kHz external oscillator with the comparator not enabled 10 µA.
10 kHz external oscillator with the comparator enabled 310 µA
RC selected for WDT; 10 kHz RC oscillator
(corresponding to R = 1.2MΩ C~ 68 pF), comparator is off.
6. Z8 in STOP moderate off; Z8 in STOP mode; WDT off.
TMBASE selected; as Z8 system clock source
Time base counter enabled; V
7. Analog Comparator disabled
1.0
1.0
8.0
15
15
4.5
7.0
2.0
4.5
10
10
TBD
TBD
24
13
Typical
4.5
9.0
10
2.0
4.0
1.0
2.5
1.0
3.0
160
200
13
7
µAµAVIN = OV, V
VIN = OV, V
mA
@ 12 MHz
mA
@ 12 MHz
µA
10 kHz; external RC
CC
CC
mAmAHALT mode VIN=0V, VCC
@12 MHz
HALT mode V
V
@ 12 MHz
CC
IN
=0V,
mAmAClock Divide-by-16
@12 MHz
Clock Divide-by-16
@ 12 MHz
µAµASTOP mode VIN = OV,
V
WDT is not Running
CC
STOP mode V
V
WDT is not Running
CC
µAµASTOP mode V
V
WDT is Running
CC
STOP mode V
V
WDT is Running
CC
= OV,
IN
= OV,
IN
= OV,
IN
TMBASE=32.768 kHz;
WDT is not Running
ms
ms
Freq.
2,3
2,3
2,3
2,3
2,3
2,3
2,3
4,7
4,7
4,7
4,7
6,7
1
3-6P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
AC ELECTRICAL CHARACTERISTICS
Clock
TIN
IRQN
Clock
Setup
Stop-Mode
Recovery
Source
77
8
1
223
4
5
6
9
10
3
11
Figure 4. Additional Timing
DS96WRL0700P R E L I M I N A R Y3-7
Z87100
Wireless TransmitterZilog
AC ELECTRICAL CHARACTERISTICS
TA=0°C to +70°C
12 MHz
NoSymParameter
1TpCInput Clock Period3.3V
2TrC,TfCClock Input Rise
and Fall Times
3TwCInput Clock Width3.3V
4TwTinLTimer Input
Low Width
5TwTinHTimer Input
High Width
6TpTiTimer Input Period3.3V
7TrTin,
TtTin
Timer Input Rise
and Fall Timer
8TwILInt. Request
Low Time
9TwIHInt. Request High
Time
10TwsmStop-Mode
Recovery
Width Spec
11TostRC Oscillator
Start-up Time
TwdtWatch-Dog Timer
Refresh Time
Notes:
1. Timing Reference uses 0.9 V
2. Interrupt request through Port 3 (P33-P31)
3. 5.0V ±0.5V, 3.3V ±0.3V
4. SMR-D5 = 0
5. WDT Oscillator only.
for a logic 1 and 0.1 VCC for a logic 0.
CC
V
CC
5.0V
3.3V
5.0V
5.0V
3.3V
5.0V
3.3V
5.0V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
3.3V
5.0V
MinMaxUnitsNotes
83
83
26
26
100
70
3TpC
3TpC
8TpC
8TpC
100
70
3TpC
3TpC
12
12
15
5
30
16
60
25
250
120
100,000
100,000
15
15
100
100
5TpC
5TpC
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ms
ms
ms
ms
ms
ms
ms
ms
ms
ms
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1,2
1,2
1,2
1,2
Reg.4
D0=0 5
D1=05
D0=15
D1=05
D0=05
D1=15
D0=15
D1=15
3-8P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
PIN FUNCTIONS
RC1 (RC Oscillator input). This pin connects an external
RC network or an external single-phase clock to the onchip RC oscillator.
RC2 (RC Oscillator output). This pin connects an external RC network to the on-chip RC oscillator.
P27
P26
P25
P24
Z87100
P23
P22
TMBASE (Time Base Counter Clock Input). This pin
connects an external 32 kHz clock signal to the input of an
on-chip Time Base Counter.
As a mask option, the Z87100 can be configured to initialize ("cold start") using either RC or TMBASE. Consequently, the Z87100 can be operated with either or both RC and
TMBASE clock sources.
Port 2 (I/O)
Open-Drain
P21-P26 OE
P21-P26 OUT
P21-P26 IN
P21
P20
Port 2
P21-P26
PAD
1.5 2.3 Hysteresis
Figure 5. Port 2 Configuration (P21-P26)
DS96WRL0700P R E L I M I N A R Y3-9
Z87100
Wireless TransmitterZilog
PIN FUNCTIONS (Continued)
Port 2 (P27-P20). Port 2 is an 8-bit, bidirectional, CMOS
compatible I/O port. These 8 I/O lines can be configured
under software control to be an input or output, independently. Input buffers are Schmitt-triggered. Pins programmed as outputs may be globally programmed as either push-pull or open-drain (Figure 6). In addition, when
P20 IN
Open-Drain
PN _ ENABLE (PNCON1 D0)
PNDOUT _ ENABLE (PNCON D4)
PNDOUT
P20 OUT
P20 OE
MUX
the PN modulator is enabled, and the appropriate pins are
programmed as outputs, P20 may be programmed as the
unspread data-out from the PN modulator. To provide a
monitor of this unspread data signal, P27 may similarly be
programmed as the data clock output.
P20
PAD
P27 IN
Open-Drain
PN _ ENABLE (PNCON1 D0)
PNDCLKOUT _ ENABLE (PNCON1 D5)
PNDCLKOUT
P27 OUT
P27 OE
MUX
Figure 6. Port 2 Configuration (P20-P27)
P27
PAD
3-10P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
Port 3 (P36-P31). Port 3 is a 4-bit, CMOS-compatible port.
These four lines consist of two fixed inputs (P31, P33) and
two fixed outputs (P36-P35). P31 and P33 are standard
CMOS inputs (no auto latch) and P35 and P36 are pushpull outputs. An on-board comparator can process analog
signals on P31 with reference to the voltage on P33, where
this analog function is enabled by programming Port 3
Mode Register (bit 1). P31 is programmable as falling, ris-
P36
P35
Z87100
P33
P31
Port 3
ing, or both edge triggered interrupts (IRQ register bits 6
and 7). Access to Counter/Timer 1 is made through P31
(TIN) and P36 (T
OUT
).
When the PN modulator is enabled, P35 is automatically
configured as the output for the PN spread data, and, if desired, P36 may be programmed as the PN clock output
(Figures 7 and 8).
ZilogWireless Transmitter
PORT Configuration Register (PCON). The PORT Con-
figuration Register (PCON) configures the ports to support
comparator output on Port 3, low EMI noise on Ports 2 and
3, and low EMI noise oscillator. The PCON Register is located in the Expanded Register File at bank F, location 00
(Figure 7). Bit 0 controls the comparator use in Port 3. A 1
in this location brings the comparator output to P35 (Figure
9), and a 0 releases the port to its standard I/O configuration. Bits 5 and 6 of this register configure ports 2 and 3,
respectively, for low EMI operation. A 1 in these locations
configures the corresponding port for standard operation,
and a 0 configures the port for low EMI operation. Finally,
bit 7 of the PCON Register controls the low EMI noise oscillator. A 1 in this location configures the oscillator with
standard drive, while a 0 configures the oscillator with low
noise drive.
Low EMI Option. The Z87100 can be programmed to operate in a low EMI emission mode by the PCON register.
The RC oscillator and all I/O ports can be programmed as
low EMI emission mode independently. Use of this feature
results in:
■Less than 1 mA current consumption during the HALT
mode.
Comparator Inputs. Port 3, P31 has a comparator front
end where the comparator reference voltage is provided
by P33. In analog mode, the P33 input functions as a reference voltage to the comparators. The internal P33 register and its corresponding IRQ1 are connected to the StopMode Recovery source selected by the SMR. In this mode,
any of the Stop-Mode Recovery sources are used to toggle
the P33 bit or generate IRQ1. In digital mode, P33 can be
used as a P33 register input or IRQ1 source (Figure 9).
When P3M is programmed for analog inputs on port 3 (Bit
D1=1) that power to the comparator is on and the current
used is 300 µA if V
is VCC, and , 50 µA if V
REF
REF
is VDD.
When comparator is digital (Bit D1=0) the comparator is
off.
■Low EMI output drivers have resistance of 200 ohms
(typical).
■Internal SLCK/TCLK operation limited to a maximum of
4 MHz (250 ns cycle time).
With bit 7 of the PCON register, the gain of the RC oscillator may be selected: standard gain is intended for high performance, high speed circuits, while the low gain option is
intended for low speed, low EMI, and low current consumption applications.
Figure 9. PORT Configuration Register (PCON)
DS96WRL0700P R E L I M I N A R Y3-13
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION
The Z8® Wireless Controller incorporates special functions to enhance the Z8’s application in consumer, automotive, industrial, scientific research, and advanced technology applications.
RESET. The device can be reset through one of the following mechanisms:
■Power-On Reset
■Watch-Dog Timer
■Stop-Mode Recovery Source
The device does not re-initialize the WDTMR, SMR, P2M,
or P3M registers to their reset values on a Stop-Mode Recovery operation.
Program Memory. The Z87100 can address up to 1
Kbytes of internal program memory (Figure 10). The first
12 bytes of program memory are reserved for the interrupt
vectors. These locations contain six 16-bit vectors that correspond to the six available interrupts. Byte 13 to byte
1023 consists of on-chip, mask-programmed ROM.
ROM Protect. The 1 Kbytes of Program Memory are mask
programmable. A ROM protect feature will prevent “dumping” of the ROM contents by inhibiting execution of the
LDC and LDCI instructions to program memory in all
modes.
Expanded Register File. The register file has been expanded to allow for additional system control registers and
for mapping of additional peripheral devices and input/output ports into the register address area. The Z8 register
address space R0 through R15 is implemented as 16
groups of 16 registers per group. These register groups
are known as the ERF (Expanded Register File). Bits 3-0
of the Register Pointer (RP) select the active ERF group.
Bits 7-4 of register RP select the working register group
(Figure 11). Three system configuration registers reside in
the Expanded Register File address space in Bank F,
while six PN modulator registers reside in Bank C. The rest
of the Expanded Register addressing space is not physically implemented and is open for future expansion. To
write to the ERF, the upper nibble of the RP must be zero.
To write to the rest of the register file, the lower nibble must
be zero.
Antiheroine using Zilog's cross assembler Version 2.1 or
earlier, use theLD RP, #0X instruction rather than the SRP
#0X instruction to access the ERF.
support of the PN modulator. The instructions can access
R253 RP
D7 D6 D5 D4 D3 D2 D1 D0
Expanded Register File Pointer
Working Register Pointer
Figure 12. Register Pointer
Register File. The Register File consists of two I/O port
registers, 124 general-purpose registers, 15 control and
status registers, and ten system configuration registers in
the Expanded Register Group, including six registers in
registers directly or indirectly through an 8-bit address
field, allowing use of a short 4-bit register address with the
Register Pointer. In the 4-bit mode, the Register File is divided into 16 working register groups, each occupying 16
continuous locations. The Register Pointer addresses the
starting location of the active working-register group.
Caution: D4 of Control Register P01M (R248) must be
0. If the Z87100 is emulated by Z86C90, D4 of P01M
has to change to 0 before submission to ROM code.
GPR. The Z87100 has one extra general-purpose register
located at %FE(R254).
r7 r6 r5 r4R253 (%FD)
The upper nibble of the register file address
provided by the register pointer specifies
the active working-register group.
7F
70
•
•
•
•
•
•
•
•
•
•
•
2F
20
1F
10
0F
Register Group F
Specified Working
Register Group
Register Group 1
Register Group 0
r3 r2 r1 r0
•
•
•
(Register Pointer)
R127 to R111
The lower nibble
of the register
file address
provided by the
instruction points
to the specified
register.
R31 to R16
R15 to R4
00
I/O Ports
R3 to R0
Figure 13. Register Pointer
3-16P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
Stack. The Z87100 has an 8-bit Stack Pointer (R255) used
for the internal stack that resides within the 124 generalpurpose registers.
OSC
÷2
0
÷16
1
(SMR) D0
(SMR) D1
1
0
Internal
Clock
(SCLK)
WriteWriteRead
Initial Value
Register
÷4
Counter/Timers. There are two 8-bit programmable
counter/timers (T0-T1), each driven by its own 6-bit programmable prescaler. The T1 prescaler can be driven by
internal or external clock sources, however, the T0 prescaler is driven by the internal clock only (Figure 14).
Internal Data Bus
PRE0
6-Bit
Down
Counter
T0
Initial Value
Register
8-Bit
Down
Counter
T0
Current Value
Register
IRQ4
Clock
Logic
TIN
P31
External Clock
÷4
Internal Clock
Gated Clock
Triggered Clock
6-Bit
Down
Counter
PRE1
Initial Value
Register
WriteWriteRead
8-Bit
Down
Counter
T1
Initial Value
Register
Internal Data Bus
Figure 14. Counter/Timer Block Diagram
÷2
Current Value
Register
TOUT
P36
IRQ5
T1
DS96WRL0700P R E L I M I N A R Y3-17
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION (Continued)
The 6-bit Prescaler divide the input frequency of the clock
source by any integer number from 1 to 64. Each prescaler
drives its counter, which decrements the value (1 to 256)
that has been loaded into the counter. When the counter
reaches the end of count, a timer interrupt request, IRQ4
(T0) or IRQ5 (T1), is generated.
The counters are programmed to start, stop, restart to continue, or restart from the initial value. The counters can
also be programmed to stop upon reaching zero (singlepass mode) or to automatically reload the initial value and
continue counting (modulo-n continuous mode).
The counters, but not the Prescaler, may be read at any
time without disturbing their value or count mode. The
clock source for T1 is user-definable and can be either the
internal microprocessor clock divided by four, or an exter-
nal signal input through Port 3. The Timer Mode register
configures the external timer input (P31) as an external
clock, a trigger input that can be retriggerable or non-retriggerable, or as a gate input for the internal clock. Port 3, line
P36 serves as a timer output (T
) through which T0, T1
OUT
or the internal clock can be output. The counter/timers can
be cascaded by connecting the T0 output to the input of
T1.
Interrupts. The Z87100 has six different interrupts from
six different sources. The interrupts are maskable and prioritized (Figure 15). The six sources are divided as follows;
two sources are claimed by Port 3 lines P31 and P33, two
sources in the counter/timers, one source for the PN modulator and one source for the time base generator. The Interrupt Mask Register globally or singularly enables or disables the six interrupt requests (Table 2).
IRQ0 IRQ2
IRQ1, 3, 4, 5
Interrupt
Edge
Select
IRQ (D6, D7)
Interrupt
Request
Global
Interrupt
Enable
PRIORITY
Vector Select
Figure 15. Interrupt Block Diagram
IRQ
IMR
6
IPR
LOGIC
3-18P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
Table 2. Interrupt Types, Sources, and Vectors
Vector
NameSource
IRQ0Time Base0, 1Internal,
IRQ1IRQ12, 3External (P33),
IRQ2IRQ2, TIN4, 5External (P31),
IRQ3Software/PN
Modulator
IRQ4T08, 9Internal
IRQ5TI10, 11Internal
Notes:
*When the PN Modulator is enabled, IRQ3 is an internal
interrupt.
When more than one interrupt is pending, priorities are resolved by a programmable priority encoder that is controlled by the Interrupt Priority register. An interrupt machine cycle is activated when an interrupt request is
granted. This disables all subsequent interrupts, saves the
Program Counter and Status Flags, and then branches to
the program memory vector location reserved for that interrupt. All Z87100 interrupts are vectored through locations in the program memory. This memory location and
the next byte contain the 16-bit starting address of the interrupt service routine for that particular interrupt request.
LocationComments
Rising/Falling Edge
Triggered
Falling Edge
Triggered
Rising/Falling Edge
Triggered
6, 7Software
Generated/Internal*
An interrupt resulting from AN1 (P31) is mapped into IRQ2,
and an interrupt from the time base generator is mapped
into IRQ0. Interrupts IRQ2 and IRQ0 may be rising, falling,
or both-edge triggered, and are programmable by the user. The software can poll to identify the state of the pin. For
IRQ0 and the time base generator, selection of the trigger
edge is not critical but should not be changed once selected.
The programming bits for the INTERRUPT EDGE SELECT are located in the IRQ register (R250), bits D7 and
D6. The configuration is shown in Table 3.
Table 3. IRQ0 and IRQ2 Interrupt Edge
Programming
Interrupt
IRQ
Register D7
00FF
01FR
10RF
11R/FR/F
Notes:
F = Falling Edge
R = Rising Edge
Clock. The Z87100 derives its timing from an on-board RC
oscillator referenced as RC or an external clock source applied to the time base counter input referenced as TMBASE. The RC clock source is made of an internal oscillator and an external resistor and an optional external
capacitor (See Figure 14).
IRQ
Register D6P31
Edge Time
Base
To accommodate polled interrupt systems, interrupt inputs
are masked and the interrupt request register is polled to
determine which of the interrupt requests needs services.
When the PN modulator is disabled, IRQ3 has no hardware source but can be invoked by software by setting bit
D3 of the IRQ register to 1. When the PN modulator is enabled, an interrupt will be mapped to IRQ3 after the contents of the PN modulator's data hold register have been
loaded into the modulator's data shift register.
The 2 terminals that are part of the RC oscillator are referenced as RC1 and RC2. The frequency of the clock signal
generated by the RC oscillator cannot exceed 6 MHz. RC1
can also be driven by an external clock source, while RC2
remains unconnected. In this configuration the Z87100
can be clocked up to 12 MHz, when not in Low EMI mode.
(4 MHz in Low EMI mode).
Both clock sources, RC and TMBASE, can be selected to
drive the internal Z8 system clock, depending on the setting of a mask-programmed option bit.
The TMBASE clock input requires a 32.768 kHz clock signal when the TMBASE is enabled or when the TMBASE is
selected to be the default oscillator. As a special feature of
the Z87100, ICC current consumption is significantly reduced at a clock frequency of 10 kHz in low EMI noise
mode.
DS96WRL0700P R E L I M I N A R Y3-19
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION (Continued)
R
Standard Mode
SCLK=RC1/2
Ext Clock12 MHz
(SCLK=6 MHz)
RC6 MHz
(SCLK = 3 MHz)
RC1
RC1
C
R
RC2
RC2
RC Oscillator
Figure 16. RC Oscillator Configuration
Table 4. Maximum Clock Value in Different Modes
Standard Mode
SCLK=RC1
6 MHz
(SCLK = 6 MHz)
3 MHz
(SCLK = 3 MHz)
Low EMI
SCLK= RC1/2
4 MHz
(SCLK = 2 MHz)
1 MHz
(SCLK = 500 kHz)
RC1
RC2
External Clock
Low EMI
SCLK=RC1
2 MHz
(SCLK = 2 MHz)
500 kHz
(SCLK = 500 kHz)
Recovery Timer Circuit. A timer circuit clocked by a dedicated on-board WDT oscillator or by the RC oscillator or
TMBASE clock oscillator is used as a recovery timer. The
timer allows VCC and the oscillator circuit to stabilize before instruction execution begins. The recovery timer circuit is a one-shot timer triggered by one of the three conditions:
■Power Fail to Power OK status
■Stop-Mode Recovery (If D5 of SMR=1)
■WDT Time-Out
The recovery time is a nominal 5 ms using the internal
WDT oscillator or, if used with the WDT, 256 clock cycles
of the selected externally referenced oscillator. Bit 5 of the
Stop Mode Register determines whether the recovery timer is bypassed after Stop-Mode Recovery.
HALT. The HALT instruction turns off the internal CPU
clock but not the selected RC oscillator or TMBASE clock.
The counter/timers and external interrupts IRQ0 and IRQ2
remain active. The device is recovered by interrupts, either
externally or internally generated. After the interrupt, execution proceeds to the next instruction following the HALT
instruction.
STOP. This instruction turns off the internal clock and the
RC oscillation and reduces the standby current to 10 µA or
less. The STOP mode is terminated by either WDT timeout, POR, or SMR recovery. Either of these events causes
the processor to restart the application program at address
000C (HEX). Note that the selected clock source, RC oscillator or TMBASE clock, remains active if bits 3 and 4 of
the WDTMR are set. In this mode, only the watch-dog timer runs and the time base generator always remain on.
3-20P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
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 executes a
NOP (opcode=FFH) immediately before the appropriate
sleep instruction; i.e.,
FFNOP; clear the pipeline
6FSTOP; enter STOP mode
or
FFNOP; clear the pipeline
7FHALT; enter HALT mode
PN Modulator. The Z87100 incorporates a PN modulator
to allow generation of a direct sequence spread spectrum
data stream. Coupled with the appropriate transmitter circuitry, the Z87100 can support wireless and power line
spread spectrum transmission.
The PN modulator of the Z87100 is shown in Figure 15.
Major elements of the PN modulator include the PN ROM,
the PN modulator control logic, the data hold and data
shift registers, and the clock select multiplexor and PN and
data clock generator.
As part of the PN modulator, a specially designated area
of ROM (PN ROM) provides space for 256 bits (“chips”) of
one or more pseudorandom noise sequences. The PN
modulator control logic accesses the PN ROM as a circular
buffer and synchronously exclusive-or’s (XORs) each chip
of the sequence with the data bits loaded in the PN modulator's data shift register, thereby PN modulating the data.
The PN code is accessed from the PN ROM beginning at
a specified relative address (PNADDR, register %02 in
bank C of the Expanded Register Group) until the chip corresponding to the PN code length (PNLEN, register %03 in
bank C of the Expanded Register Group) is reached, at
which point access continues again from the specified relative address.
The limits of the PN ROM address space are automatically
resolved by the control logic so that the PN ROM is effectively a large circular buffer from which smaller circular
buffers defined by PNLEN and PNADDR can be accessed. Operation and control of the circular buffer is transparent to the user. As long as the sum of code lengths is less
than or equal to 256 chips, more than one PN sequence
may be ROM programmed, with the choice of code or even
a concatenation of codes to be used for transmission controlled by Z8 software and the values of PNADDR and PNLEN.
Contents of PN ROM are shifted out and XOR’ed with the
contents of the data shift register. The rates at which the
two streams are shifted are controlled by the PN and data
clocks so that one or more PN chips are XOR’ed against a
single data bit, where the number of PN chips is determined by the value of PNLEN. The reference clock for the
PN modulator may be selected from the internal system
clock (SCLK) or either of the two counter/timers (T0 and
T1).
In nominal operation, the PN clock is defined by the selected reference clock, and the data clock is then generated as
an integer fraction of the PN clock, where the integer is
specified by PNLEN. In this way, each data bit can be synchronously modulated by a full PN code sequence as defined by PNLEN, PNADDR, and the contents of PN ROM.
As a practical matter, this type of symbol-synchronous PN
modulation allows the corresponding spread spectrum receiver to be designed with improved acquisition performance — since the PN and data modulation are synchronously related at the transmitter, PN acquisition at the
receiver can simultaneously establish bit synchronization.
DS96WRL0700P R E L I M I N A R Y3-21
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION (Continued)
While nominal operation assumes that a single PN sequence of PNLEN chips corresponds to a single data bit as
described above, the PN modulator additionally supports
modes which allow 2 or 4 bits per PN sequence or 2 or 4
PN sequences per bit or an arbitrary relationship between
the PN and data clocks. The specific relationship between
the selected reference clock, the PN clock, and the data
clock then depends upon the values of the PNLEN and
DCLK registers.
The Z8 loads the data shift register of the PN modulator by
writing to the PN modulator’s 16-bit data hold register, TxBUFL and TxBUFH. As the last bit of the data shift register
is shifted to be XOR’ed, the PN modulator’s control logic
loads the contents of the data hold register into the data
shift register and triggers interrupt IRQ3. Loading of the
next byte of data to TxBUFL and TxBUFH can thus be controlled by Z8 software through interrupts or through polling
by using IRQ3.
Initiation of PN modulation is controlled by three control
bits in the PNCON and TMBASE control registers:
PN_ENABLE,PN_MODULATE,and
MODULATE_SELECT.
PN _ENABLE (PNCON D0) enables the PN modulator by
providing its circuitry with clock signals and configures
IRQ3 and P35 of Port 3.
PN_MODULATE (PNCON D6) initializes the PN ROM address counter to the start of the PN sequence, loads the
data shift register with the contents of the data hold register, TxBUFH and TxBUFL, and, depending on the value of
MODULATE_SELECT, either begins PN modulation of the
data or begins transmission of the unmodulated PN sequence.
MODULATE_SELECT (TMBASE D4) controls whether
the contents of the data hold register are clocked out to be
PN modulated. If MODULATE_SELECT is set to 0, the
contents of PN ROM and the data hold register will then be
clocked out to be XOR'ed together; otherwise, if
MODULATE_SELECT is set to 1, only the contents of PN
ROM will be clocked out.
Typically, one would enable the PN modulator with
PN_ENABLE, select the desired PN code sequence from
PN ROM using PNLEN and PNADDR, configure the desired PN and data clocks using REF_CLOCK_SELECT,
DATA_CLOCK_MODE and DCLK, and select the desired
outputs using PNCLKOUT_ENABLE, PNDOUT_ENABLE
and PNDCLKOUT_ENABLE. With the first data to be
transmitted loaded in the data hold register TxBUFL and
TXBUFH, transmission of PN modulated data or just the
PN code sequence can then begin under control of
PN_MODULATE and MODULATE_SELECT.
PN Modulator I/O. The Z87100 PN modulator outputs and
inputs are multiplexed with the pins of Ports 2 and 3 according to Table 4. By enabling the PN modulator with
PN_ENABLE (D0 of PN Modulator Control Register 1,
PNCON1), the PN-modulated data output, PNMODOUT,
is automatically multiplexed to P35. Selection of the other
PN modulator outputs, however, requires explicit enabling
of the associated control bits in PNCON as well as
PN_ENABLE. In that way, as few as one or as many as
four I/O pins may be used in operation of the PN modulator, depending upon the application’s requirements.
The PN modulator is supported by six read/write registers
located in bank (C) of the Expanded Register Group: the
PN modulator control register (PNCON) at %(C)00; the PN
relative address register (PNADDR) at %(C)01; the PN
code length register (PNLEN) at %(C)02; the PN modulator low-byte data hold register (TxBUFL) at %(C)03; the
high-byte data hold register (TxBUFH) at %(C)04; and the
data clock control register (DCLK) at %(C)05. Internally,
the PN modulator also contains the data shift register for
the chips and data bits to be XOR’ed.
PNCON
The PN control register, PNCON, shown in Figure 18 and
located at %(C)00, controls the operation and configuration of the Z87100’s PN modulator. PNCON provides the
following control functions:
PN_ENABLE (PNCON D0) disables or enables the PN
modulator. When disabled (PN_ENABLE=0), clock signals
to the PN modulator circuitry are discontinued, reducing
the overall Z87100 power requirements. When enabled
(PN_ENABLE=1), the PN-spread output PNMODOUT is
automatically directed to P35 of Port 3 and the pins indicated in Table 4 may, under program control, be selected as
indicated.
Enabling the PN modulator further configures interrupt
IRQ3 to monitor the status of the PN modulator's data shift
register. IRQ3 will initially be cleared (set to 0) but will be
set to 1 after the last bit of the data shift register's contents
has been PN-modulated and the current contents of TxBUFL and TxBUFH have been automatically transferred to
the data shift register. The user then has at most 16 data
bit intervals in which to update TxBUFL and TxBUFH.
IRQ3 may be used to control data input to the PN modulator either as an interrupt or as a polled flag, depending on
whether the EI instruction has been invoked. As an interrupt, IRQ3 will be automatically cleared as the interrupt is
serviced; as a polled flag, IRQ3 must be cleared each time
by manually setting bit 3 of the register to 0.
REF_CLOCK_SELECT (PNCON D1:D2) selects which of
three sources (SCLK, T0, or T1) is used as the PN clock.
PNCLKOUT_ENABLE (PNCON D3) when enabled
(D3=1), selects P36 of Port 3 as the output pin for the PN
modulator’s PN clock. PN_ENABLE must be set.
D7 D6 D5 D4 D3 D2 D1 D0
PN_ENABLE
0 Disable
1 Enable
REF_CLOCK_SELECT
00 SCLK
01 T0
1X T1
PNCLKOUT_ENABLE
0 P36 I/O
1 P36 PNCLKOUT
PNDOUT_ENABLE
0 P20 I/O
1 P20 DCLKOUT
PNDCLKOUT_ENABLE
0 P27 I/O
1 P27 PNDCLKOUT
PN_MODULATE
0 STOP
1 START
DATA_CLOCK MODE
0 PNLEN-Dependent Data Clock
1 Independent Data Clock
Figure 18. PN Modulator Control Register (PNCON)
PNDOUT_ENABLE (PNCON D4), when enabled (D5=1),
selects P20 of Port 2 as the output pin for the unspread
data stream. PN_ENABLE must be set, and P20 must be
configured as an output pin using P20OE of the P2M Port
2 Mode Register.
PNDCLKOUT_ENABLE (PNCON D5), when enabled
(D6=1), selects P27 of Port 2 as the output pin for the unspread data’s clock. PN_ENABLE must be set, and P27
must be configured as an output pin using P27OE of the
P2M Port 2 Mode Register.
PN_MODULATE (PNCON D6) turns the PN modulation
function on and off, starting and stopping its operation
once enabled by PN_ENABLE. Setting PN_MODULATE
to 1 from 0 loads the data shift register with the current
contents of the data hold register, TxBUFL and TxBUFH,
and initializes the PN ROM address counter to the start of
the PN sequence according to the value set in PNADDR.
If MODULATE_SELECT is set to 0, the contents of PN
ROM and the data hold register will then be clocked out to
be XOR'ed together; otherwise, if MODULATE_SELECT
is set to 1, only the contents of PN ROM will be clocked
out.
3-24P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
Resetting PN_MODULATE to 0 from 1 stops PN modulation after the current data byte is completely modulated;
i.e., after either the high or low byte of the current contents
of the 16-bit data shift register is completely modulated.
The timing of the command to reset PN_MODULATE must
be monitored by the user, based on the number of cycles
after IRQ3 was last raised, in order to insure that the desired byte is the last byte transmitted.
When instructed to stop, the contents of TxBUFL and TxBUFH will not be transferred to the data shift register. Setting PN_MODULATE to 1 will then completely reinitiate PN
modulation beginning with the PN sequence starting at
PNADDR (i.e., the PN sequence will be reset) and with the
data word to be modulated as currently stored in the PN
modulator's data hold register, TxBUFL and TxBUFH. In
effect, the data shift register contents are flushed when PN
modulation is stopped.
DATA_CLOCK_MODE (PNCON D7) controls whether the
data and PN clocks are integrally related. When
DATA_CLOCK_MODE equals 0, the data and PN clocks
are integrally related as determined by bits D0, D1, and D2
of register DCLK and the value of PNLEN. When
DATA_CLOCK_MODE equals 1, the PN clock is determined by the selected reference clock and PNLEN while
the data clock is independently determined by the reference clock and DCLK.
PNADDR
The PN relative address register, PNADDR at %(C)01, indicates the starting address within PN ROM to access the
PN sequence to be used in modulation. Addressing is relative, with PNADDR=00H corresponding to the first PN
chip contained in PN ROM, PNADDR=FFH corresponding
to the last. The value of PNADDR must be set prior to starting operation of the PN modulator; writing to PNADDR
while PN modulation is in process will give indeterminate
results.
PNLEN
The PN code length register, PNLEN at %(C)02, indicates
the number of PN chips to be accessed from PN ROM and
modulated against each data bit. If the value of PNLEN
plus PNADDR exceeds FFH, the PN modulator’s control
logic will automatically cycle through PN ROM so that a total of PNLEN chips are utilized. In some modes, the value
of PNLEN also determines the data rate, where the PN
modulator’s data shift register is clocked by an integer multiple or fraction of the selected reference clock divided by
PNLEN. The value of PNLEN must be set prior to starting
operation of the PN modulator; writing to PNLEN while PN
modulation is in process will give indeterminate results.
TxBUFL and TxBUFH
The PN modulator’s data hold register, TxBUFL at %(C)03
and TxBUFH at %(C)04, supports the loading of data bytes
by the Z8 core for PN modulation. Data loading may be
controlled either through software polling or interrupt using
IRQ3. The time available to load data depends upon the
transmit data rate, itself a function of the speed of the selected reference clock and the value of PNLEN, and, of
course, upon the Z87100 clock.
Note that the data shift register is clocked by the dataclk.
Data is shifted for PN modulation D15 first, D0 last in terms
of the data loaded into TxBUFL and TxBUFH. The data
shift register, as opposed to TxBUFL and TxBUFH, is not
accessible by the CPU.
DCLK
The data clock control register, DCLK at %(C)05, determines the relationship within the PN modulator among the
PN clock controlling the PN shift register (pnclk), the data
clock controlling the data shift register (dataclk), and the
selected reference clock (SCLK, or one of the two Z8
counter/timers). A conceptual drawing of the PN modulator’s timing generator is shown in Figure 17, while Table 5
summarizes the following discussion of the various data
clock modes.
When DATA_CLOCK_MODE (PNCON D7) is set to 0, the
first three bits of DCLK (D2, D1, D0) establish an integral
relationship between the data clock and the PN code sequence.
DS96WRL0700P R E L I M I N A R Y3-25
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION (Continued)
Nominal operation corresponds to DCLK D2=0, D1=0, and
D0=0: the PN clock (pnclk) is then equal to the reference
clock (refclk), and the data clock is equal to refclk divided
by the value of PNLEN. In this way, a complete PN code
sequence as defined by PNLEN corresponds to a single
data bit. The PN modulator output is thus the PN sequence
with its polarity determined by the value of the data bit.
With D2=0, non-zero values of D1 and D0 determine if refclk/PNLEN is further divided by 2D1 D0 to form the data
clock. In other words,
pnclk = refclk,
dataclk = pnclk/(PNLEN x 2D1 D0),
As can be seen, a single data bit may correspond to 2, 4,or
8 PN sequences in this mode.
With D2=1, the PN clock is formed by dividing refclk by 4.
The values of D1 and D0 then determine the relationship
DCLK D2
PNCON D7
÷ 4
SCLK
T0
T1
Clock
Select
(DATA_CLOCK_MODE)
refclk
of dataclk to refclk and can allow a single PN sequence to
correspond to 2 or 4 data bits:
pnclk = refclk/4,
dataclk = refclk/(PNLEN x 2D1 D0)
or, equivalently,
dataclk = (4/2D1 D0) x pnclk/PNLEN.
When DATA_CLOCK_MODE (PNCON D7) is set to 1, the
number of complete PN code sequences per data bit or
number of data bits per single PN code sequence is not
necessarily an integer. The PN clock is defined by refclk,
while the data clock is determined as refclk/DCLK, using
all 8 bits of DCLK. Although not likely to be used, DCLK =
00H corresponds to a value of 256. The transition edges of
a single chip are still aligned with that of a bit transition, but
the PN code cycle is not necessarily synchronous with
data transitions.
0
pnclk
(to PN ROM)
1
DCLK
D1 D0
0
1
PNCON
D7
DATA_CLOCK_MODE
dataclk
(to DATA SHIFT
REGISTER)
0 dataclk
integrally related
to pnclk
1 independent
dataclk
÷ PNLEN
÷ DCLK
÷2
D1 D0
Figure 19. Conceptual Block Diagram of PN Modulator Timing Generator
Time Base Generator. The time base generator can be
used while the Z8 is in stop mode to initiate a stop-mode
recovery or while the Z8 is operating to generate IRQ0 interrupts as a time-keeping pulse. If used while the Z8 is in
stop mode, time-out will trigger a stop-mode recovery
("warm start") and reset the processor to address 000C
(hex). Otherwise, time-out of the time base generator will
set IRQ0 to 1. This mode can be used while the Z8 continues operation and a regular time base is desired, where
IRQ0 can either be polled as a flag and manually cleared
by the user or enabled as an interrupt and automatically
cleared. The time base generator is programmable and
can provide clock signals every .25 seconds, one second,
one minute, or one hour, with control of the time base generator provided through the TMBASE register at %(C)06.
TMBASE
The time base generator control register, located at
%(C)06 and depicted in Figure 18, allows the time base to
be selected and its actions controlled.
TIMEOUT_SELECT. (TMBASE D0-D1) determines the
time base. A value of D1=0, D0=0 selects .25 seconds; 01
selects one second; 10 selects one minute; and 11 selects
one hour.
TIMEOUT_ENABLE. (TMBASE D2) enables and disables
the time base generator. When set to 0,
TIMEOUT_ENABLE stops current operation of the time
base generator. When set to 1, TIMEOUT_ENABLE resets and starts the time base generator. Reading
TIMEOUT_ENABLE provides an indication of the time
base generator's status: if set to 0, the time base generator
is off; if set to 1, the generator is currently operating.
CLOCK_SELECT. (TMBASE D3) selects either RC or
TMBASE as the clock for the Z8. If set to 0, RC will be the
clock for the Z87100; if set to 1, TMBASE will be the clock.
Determination of which clock is used upon Power-On Reset ("cold start") is mask-programmable, to be selected by
the customer at the time ROM code is submitted. Upon a
Stop-Mode Recovery warm start, however, the value of
this bit (as is true for all the values of this register) is not
reset. As a result, a customer could, for example, maskprogram the Z87100 to power-up using RC and then, under software control, switch. Depending on the application,
operation during the wake cycle could then be conducted
using either RC or TMBASE.
If the external time base clock input is not connected to an
external clock source, pin 10 should be connected to
ground.
DS96WRL0700P R E L I M I N A R Y3-27
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION (Continued)
The time base generator, if mask-optioned, are always on,
but RC is off when not selected. When switching from TMBASE to RC, internal circuitry waits for 128 valid clock cycles of TMBASE (4 msec @ 32 kHz) before effecting the
switch from TMBASE to RC to insure that RC has stabilized. Internal circuitry also insures that the switch from RC
to TMBASE or TMBASE to RC is glitch-free. It is recommended that any command to switch oscillators be followed by a loop that tests the value of CLOCK_SELECT:
the value of CLOCK_SELECT will only change when the
transition has fully taken place.
MODULATE_SELECT. (TMBASE D4) controls the clocking out of data from the PN modulator's data shift register.
If MODULATE_SELECT is set to 0, the contents of PN
ROM and the data hold register will be clocked out to be
XOR'ed together; otherwise, if MODULATE_SELECT is
set to 1, only the contents of PN ROM will be clocked out.
Timing of this operation depends on whether the data and
PN clocks are integrally related, as determined by
DATA_CLOCK_MODE, and whether PN modulation has
Table 7. PN Modulation Stop/Start Control
begun, as determined by PN_MODULATE, as shown in
Table 7.
D7 D6 D5 D4 D3 D2 D1 D0
TIMEOUT_SELECT
0 0 0.25 Second
0 1 1.0 Second
1 0 1 Minute
1 1 1 Hour
TIMEOUT_ENABLE
0 Disabled (stop)
1 Enabled (reset and start)
CLOCK_SELECT
0 RC
1 TMBASE
MODULATE_SELECT
0 PN-modulated data
1 PN sequence only
Reserved
Figure 20. Time Base Generator Control Register
PN_MODULATE
0→ 1
MODULATE_SELECT=0
(PN-Modulated Data)
MODULATE_SELECT=1
(PN Sequence Only)
PN_MODULATE=1
MODULATE_SELECT 1→0
(PN Only → PN + Data)
MODULATE_SELECT 0 →1
(PN + Data → PN Only)
First data bit and first PN chip of the PN code sequence will be clocked out
together at the next edge of the data clock (dclk).
First PN chip of the PN chip sequence will be clocked out at the next edge
of the data clock (dclk).
If DATA_CLOCK_MODE=0 (integer number of PN code sequences per
bit), then the first data bit will be clocked out with the next repetition of the
first PN chip of the PN code sequence.
If DATA_CLOCK_MODE=1 (independent PN code sequence length and
data bit duration). then the first data bit will be clocked out at the the next
edge of the data clock (dclk) together with the ongoing PN sequence.
Last data bit will be clocked out with the immediately preceding edge of the
data clock (dclk); code sequence output will continue according to the PN
clock (pnclk).
3-28P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
Table 8. Stop-Mode Recovery Source
SMR (F) 0B
D7 D6 D5 D4 D3 D2 D1 D0
* Default setting after RESET
SCLK/TCLK Divide by 16
0 OFF
*
1 ON
Clock Divide
0 SCLK = RC1/2*
1 SCLK = RC1
Stop-Mode Recovery Source
000 POR Only
001 POR Only
010 P31
011 Time Base Generator
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 Level
1 High Level
Stop Flag
0 POR
1 Stop Recovery
*
*
*
*
SMRD4SMRD3SMR
D2
Operation
Description of Action
000POR recovery only
001POR recovery only
010P31 transition
011Time Base Generator
100P33 transition
101P27 transition
110Logical NOR of Port 2 bits 0-3
111Logical NOR of Port 2 bits 0-7
P31 and P33 cannot wake up from STOP mode if the input
lines are configured as analog inputs.
Stop-Mode Recovery Delay Select (D5). This bit disables the nominal 5 ms RESET delay provided by the recovery timer circuit after Stop-Mode Recovery. The default
condition of this bit is 1, enabling the delay. If this bit is 0,
the extra delay is disabled, limiting the recovery delay to 18
cycles of RC1.
Stop-Mode Recovery Level Select (D6). A 1 in this bit
position indicates that a high level on any one of the recov-
Figure 21. Stop-Mode Register
ery sources wakes the device from STOP mode. A 0 indicates low level recovery. The default is 0 on POR (Figure
Stop-Mode Recovery Register (SMR). This register se-
19).
lects the clock divide value and determines the mode of
Stop-Mode Recovery (Figure 19). 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 a STOP recovery and reset on
a power-on cycle. Bit 6 controls whether a low level or high
level is required from the recovery source. Bit 5 controls
the reset delay after recovery. Bits 2, 3, and 4 of the SMR
specify the source of the Stop-Mode Recovery signal. Bit
1 determines whether the selected oscillator, RC or TM-
Cold or Warm Start (D7). This bit is READ only. When the
device enters STOP mode, D7 will be set to 1. D7 will only
be reset to 0 to indicate "cold" start if the device is reset by
either a Power-On Reset or by a Watch-Dog Timer Reset
when the part is in normal operation. Otherwise, if the device is reset by a Watch-Dog Timer Reset when the part is
in STOP mode or by any other SMR source, then this bit
will continue to be set to 1 to indicate a "warm" start.
BASE, is divided by 1 or 2. Bit 0 controls the divide-by-16
prescaler of SCLK/TCLK.
Reset Upon Power-On. Upon applying power to the
Z87100, an internal reset pulse is generated which triggers
SCLK/TCLK divide-by-16 select (D0). D0 of the SMR
controls a divide-by-16 prescaler of SCLK/TCLK. The purpose of this control is to selectively reduce device power
consumption during normal processor execution (SCLK
the timing recovery circuit illustrated in Figure 22. Poweron reset (POR) behavior is different, however, depending
on whether RC or TMBASE has been selected as the clock
that drives the Z8
®
.
control) and/or HALT mode (where TCLK sources the
counter/timers and interrupt logic).
When RC is mask-selected to be the Z8 system clock, the
recovery counter is clocked by an internal WDT (Watch-
RC1 Clock divide-by-two (D1). This bit determines
whether the RC1 clock is divided by two or one. When this
bit is set to 1, the SCLK/TCLK is equal to the RC1 clock.
This option can work together with the low EMI options in
PCON register to reduce the EMI noise. Maximum clock
Dog Timer) oscillator. The system reset initiated by POR
takes 5 ms and guarantees that the RC oscillations are
stabilized before the first instruction is executed by the Z8.
Subsequently, the recovery counter is used as the WatchDog Timer.
frequency is 6 MHz when divide-by-one selection is active.
When TMBASE is mask-selected to be the default Z8 sys-
Stop-Mode Recovery Source (D2,D3,D4). These three
bits of the SMR specify the wake-up source of the Stop-
tem clock upon power-on, recovery timing is controlled by
the time base generator.
Mode Recovery (Figure 21 and Table 8).
DS96WRL0700P R E L I M I N A R Y3-29
Z87100
Wireless TransmitterZilog
FUNCTIONAL DESCRIPTION (Continued)
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 retriggered on subsequent executions of the WDT instruction. The WDT timer
circuit is driven by an on-board WDT oscillator or external
clock source RC. The WDT does not use TMBASE. The
WDT timer clock source is selected with bit 4 of the WDTMR to use either the internal WDT oscillator and a reset
delay of 5 ms, or RC1 and a reset delay of 512 RC1 clock
cycles. Note that the WDT instruction may affect the zero,
sign, and overflow flags.
Bits 0 and 1 control a tap circuit that determines the WDT
time-out period. Bit 2 determines whether the WDT is active during HALT and bit 3 determines WDT activity during
SMR D4
VDD
SMR D40D31D2
XTALB
Time Base
Generator
SMR D40D31D2
P31
D3
D2
0
0
0
0
0
1
1
P20
P27
0
P20
P23
SMR D41D31D2
SMR D41D31D2
STOP. If bits 3 and 4 of this register are both set to 1, only
the WDT is only driven by the external clock during 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 23).
The WDTMR register is accessible only during the first 64
processor cycles (128 oscillator clocks) from the execution
of the first instruction after Power-On-Reset, Watch Dog
Reset or a Stop-Mode Recovery (Figure 22). 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, as shown in Figure 23.
To POR
Reset
Stop Mode Recovery
Edge Select (SMR)
To P33 Data
1
P33 From Pads
Digital/Analog Mode
Select (P3M)
0
Latch and IRQ1
MUX
SMR D41D30D2
1
P33
SMR D41D30D2
0
P27
Figure 22. Stop-Mode Recovery Source
Note: The POR, with TMBASE the default Z8 clock
source, takes 1.5 seconds the first instruction is executed by the Z8.
3-30P R E L I M I N A R YDS96WRL0700
Z87100
3
ZilogWireless Transmitter
WDT Time Select (D1,D0). Selects the WDT time-out pe-
riod. It is configured as shown in Table 9.
Table 9. WDT Time Select
Time-out of
D1D0
internal WDT
OSC
Time-out of
RC7 clock
005 ms min512TpC
0115 ms min1024TpC
1025 ms min2048TpC
11100 ms min8192TpC
Note: The default on a WDT initiated RESET is 15 ms.
WDT During HALT (D2). This bit determines whether or
not the WDT is active during HALT mode. A 1 indicates active during HALT. The default is 1.
WDT During STOP (D3). This bitdetermines whether or
not the WDT is active during STOP mode. A 1 indicates
active during STOP. The default is 1. If bits D3 and D4 are
both set to 1, then only the WDT is driven by the external
clock during STOP mode.
On-Board WDT Oscillator or RC Oscillator Select (D4).
This bit determines which oscillator source is used to clock
the internal recovery and WDT counter chain. If the bit is a
1, the internal WDT oscillator is bypassed and the recovery
and WDT clock source is driven from RC1. The default
configuration of this bit is 0, which selects the internal WDT
oscillator.
Voltage Comparator. An on-board Voltage Compar-
V
CC
ator checks that VCC is at the required level to ensure correct operation of the device. Reset is globally driven if V
CC
is below the specified voltage (typically 2.1V).
Notes: The internal clock frequency is one half the
external clock frequency, unless the device is divide-byone mode.
The device functions normally at or above 3.0V under all
conditions. Below 3.0V, the device functions normally until
the Low-Voltage Protection trip point (V
) is reached, for
LV
the temperatures and operating frequencies described
above. The device is guaranteed to function normally at
supply voltages above the low voltage trip point. The actual low voltage trip point is a function of temperature and
process parameters (Figure 23).
ROM Protect. ROM protect is mask-programmable. It is
selected by the customer at the time the ROM code is submitted. The selection of ROM protect disables the LDC and
LDCI instructions.