Z86D99 ZILOG [Zilog, Inc.], Z86D99 Datasheet

no-image

Z86D99

Manufacturer Part Number
Z86D99
Description
Low-Voltage Micro controllers with ADC
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
Z86D990FZ008SC
Manufacturer:
Zilog
Quantity:
10 000
Z86D990/Z86D991 OTP and
Z86L99X ROM
Low-Voltage Micro-
controllers with ADC
Preliminary Product Specification
PS003807-1002
ZiLOG Worldwide Headquarters • 532 Race Street • San Jose, CA 95126-3432
Telephone: 408.558.8500 • Fax: 408.558.8300 •
www.ZiLOG.com

Related parts for Z86D99

Z86D99 Summary of contents

Page 1

... Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Micro- controllers with ADC Preliminary Product Specification PS003807-1002 ZiLOG Worldwide Headquarters • 532 Race Street • San Jose, CA 95126-3432 Telephone: 408.558.8500 • Fax: 408.558.8300 • www.ZiLOG.com ...

Page 2

This publication is subject to replacement by a later edition. To determine whether a later edition exists request copies of publications, contact: ZiLOG Worldwide Headquarters 532 Race Street San Jose, CA 95126-3432 Telephone: 408.558.8500 Fax: 408.558.8300 www.ZiLOG.com ZiLOG ...

Page 3

... Registers (Grouped by Function Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Standard Test Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 DC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Analog-to-Digital Converter Characteristics . . . . . . . . . . . . . . . . . . . . . . . . 89 AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Design Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Precharacterization Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 4

... Figure 28. Timer Mode Register T Figure 29. Prescaler 1 T Figure 30. External Clock Input Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Figure 31. Gated Clock Input Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Figure 32. Triggered Clock Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Figure 33. Counter/Timer Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Figure 34. Transmit Mode Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Operation . . . . . . . . . . . . . . . . . . . . . . . 40 OUT . . . . . . . . . . . . . . . . . . . . . . . . . 41 OUT . . . . . . . . . . . . . . . . . . . . . . . . . . 41 OUT Operation ...

Page 5

... Figure 35. Demodulation Mode Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Figure 36. Test Load Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Figure 37. 48-Pin SSOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Figure 38. 40-Pin PDIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Figure 39. 28-Pin PDIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Figure 40. 28-Pin SOIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 6

... List of Tables Table 1. Z86L99/Z86D99 Feature Comparison . . . . . . . . . . . . . . . . . . . . . . . . 1 Table 2. Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Table 3. Interrupt Types, Sources, and Vectors . . . . . . . . . . . . . . . . . . . . . . 15 Table 4. Interrupt Edge Select for External Interrupts . . . . . . . . . . . . . . . . . . 17 Table 5. Control and Status Register Reset Conditions . . . . . . . . . . . . . . . . 20 Table 6. Clock Status in Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Table 7. Special Port Pin Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Table 8. Active Glitch/Filter Specifications (Preliminary Table 9 ...

Page 7

... Table 51. P2SMR Register (Group/Bank 0Fh, Register Table 52. P5SMR Register (Group/Bank 0Fh, Register Table 53. Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Table 54. DC Characteristics for the Z86D99X (OTP Only Table 55. DC Characteristics for the Z86L99X (Mask Only Table 56. Analog-to-Digital Converter Characteristics . . . . . . . . . . . . . . . . . . . 89 Table 57. AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 ...

Page 8

... The Z86L99 is the read-only memory (ROM) version of this controller. The Z86D99/Z86L99 family is designed to be used in a wide variety of embedded control applications including battery chargers, home appliances, infrared (IR) remote controls, security systems, and wireless keyboards. ...

Page 9

... RAM – 256 bytes of RAM mapped into the program memory space that can be used as data RAM or executable RAM • 32 Kbytes of OTP memory (Z86D99X) • 16 Kbytes of ROM (Z86L99X) Counter/Timers • Special architecture to automate generation and reception of complex pulses or signals: – ...

Page 10

... Port 54–57 pull-up resistive transistor • Port 60–63 pull-up resistive transistor (not available in Z86D991/Z86L991) • Port 64–67 pull-up resistive transistor (not available in Z86D991/Z86L991) • P43 high impedance in STOP mode (available in OTP only) Force P43 to output the open-drain configuration PS003807-1002 ...

Page 11

... CIN1 CREF1 P51 7 Port Port *Controlled Current Output **P6 is only in the Z86L990/Z86D990. ***In the 28-pin package, V DD_padring are bonded together. Figure 1. Functional Block Diagram PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Register File 256 x 8-bit †† ...

Page 12

... Both V pins must be connected to ground connection to the die must be connected Power must be connected to V power filter. Figure 2. 48-Pin SSOP Pin Assignments PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 13

... P51/CIN1/Captive Timer Input P52/CIN2/T1 Timer Input (TIN) P53/CREF2 P54/COUT1 Notes must be connected Power must be connected to V power filter. Figure 3. 40-Pin DIP Pin Assignment PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Z86D990 ...

Page 14

... P21 25 35 P22 26 36 P23 27 37 P24 28 38 P25 1 3 P26 2 4 P27 3 5 P40 19 29 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Z86D991 Z86L991 ...

Page 15

... DD_padring V 22 Notes: *A/D converter is not available in the 28-pin configuration. **In the 28-pin configuration, all three (core, pad ring, and analog) powers are tied together. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC 48 SSOP Direction Description 35 I/O Port 4 Bit 1, T16 Output ...

Page 16

... I/O port registers (R2, R4, R5, and R6), 12 control and status registers, 233 general-purpose registers, and 7 registers reserved for future expansion. In addition to the standard register file, the Z86D99/Z86L99 family uses 21 control and status registers located in the Z8 expanded register file. Any general-purpose register can be used as an accumulator and address pointer or an index, data, or stack register ...

Page 17

... Standard register file • Expanded register file • Executable RAM The Z8 standard register file totals up to 256 consecutive bytes organized as 16 groups of 16 eight-bit registers. These registers consist of I/O port registers, PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 18

... After a reset, the first routine executed must be one that initializes 000Ch the control registers to the required system configuration. A unique feature of the Z86D99/Z86L99 family is the presence of 256 bytes of on- chip executable RAM. This random-access memory is in addition to the standard Z8 register file memory available on all Z8 microcontrollers. As illustrated in ...

Page 19

... Working Register Group 1 through Group E of the standard register file are avail- able to be used as general-purpose RAM registers. The user can use 233 bytes of general-purpose RAM registers in the standard Z8 register file (Bank 0). PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC 256 bytes Executable RAM ...

Page 20

... Banks F and D of Working Register Group 0 have been implemented on the Z86D99/Z86L99. Figure 7 illustrates the Z8 Expanded Register File architecture. These two expanded register file banks of Working Register Group 0 provide a total of 32 additional RAM control and status registers. The Z86D99/Z86L99 fam- ily has implemented 21 of the 32 available registers. PS003807-1002 ...

Page 21

... HALT mode, where TCLK sources counter/timers and interrupt logic. Combining the divide-by-two circuitry with the divide-by-16 prescaler allows the external clock to be divided by 32. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC General-Purpose RAM Registers Bank F Banks 2 through C are Reserved— ...

Page 22

... Interrupts The Z86D99/Z86L99 family allows up to six different interrupts, three external and three internal, from nine possible sources. The six interrupts are assigned as fol- lows: • Three edge-triggered external interrupts (P51, P52, and P53), two of which are shared with the two analog comparators • ...

Page 23

... P52, or P53) transitions, the first flip-flop is set. The next two flip-flops syn- chronize the request to the internal clock and delay it by two internal clock peri- ods. The output of the most recent flip-flop (IRQ corresponding Interrupt Request Register bit. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC S R Reset ...

Page 24

... Figure 10 shows the logic diagram for the Interrupt Request Register. The leading edge of an interrupt request sets the first flip-flop. It remains set until the interrupt requests are sampled. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC –IRQ Block Diagram ...

Page 25

... After RESET, all interrupts are disabled and must be re-initialized before vectored or polled interrupt processing can begin. The Interrupt Priority Register, Interrupt Mask Register, and Interrupt Request Register must be initialized, in that order, to PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC P R ...

Page 26

... Following a reset (see Table 5), the first routine executed must be one that initial- izes the control registers to the required system configuration. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC operating range. Registers do not keep their most recent state drops below V (see Table 54 on page 87) ...

Page 27

... T16 Timer Control 0Dh T16 High Capture 0Dh T16 Low Capture 0Dh T16 High Load 0Dh T16 Low Load 0Dh PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Symbol R/W 7 r13 (R253) RP R/W 0 r15 (R255) SP R/W X r12 (R252) Flags R ...

Page 28

... TpC to pass the Reset signal internally. Watch-Dog Timer (WDT) The WDT is a retriggerable one-shot timer that resets the reaches its terminal count. When operating in the RUN modes, a WDT reset is functionally PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Symbol R/W 7 SMR ...

Page 29

... Note: * When WDT is enabled by the mask option bit Using the Power-Down Modes In order to enter HALT or STOP mode necessary to first flush the instruction pipeline to avoid suspending execution in mid-instruction. You can flush the PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC SCLK TCLK External OSC WDT* On ...

Page 30

... NOP and STOP instructions to ensure the right input logic before waiting for the change of the ports. Stop Mode Recovery Sources Exiting STOP mode using an SMR source is greatly simplified in the Z86D99/ Z86L99 family. The Z86D99/Z86L99 family of products allows 16 individual I/O PS003807-1002 ...

Page 31

... LV I/O Ports The Z86D99/Z86L99 family has lines dedicated to input and output in the 40-pin configuration. These lines are grouped into four 8-bit ports known as Port 2, Port 4, Port 5, and Port 6. All four ports are bit programmable as either inputs or outputs with the exception of P52, P53, and P43. P52 and P53 are input only as they are used in OTP programming ...

Page 32

... The eight I/O lines of each port (except P43, P52, and P53) can be configured under software control to be either input or output, independently. Bits pro- grammed as outputs can be globally programmed as either push-pull or open- drain. See Figure 12. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 33

... This value might not be the same as the data in the output register. Reading input bits also returns data on the external pins. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC OTP/Mask P ...

Page 34

... External Interrupts T External Clock Input IN Capture Timer Input T1 Timer Output T8 Output T16 Output Combined T8/T16 Output Controlled Current Output ZiLOG Test Mode PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Pin Signal P51 CIN1 P52 CIN2 P50 CREF1 P53 CREF2 ...

Page 35

... Figure 13. Analog Comparators Analog/Digital Converter (ADC) The Z86D99/Z86L99 family incorporates an 8-bit ADC that uses a sigma delta architecture (Figure 14) comprised of a modulator and a digital filter. The input is selected (bit 3,2 from ADCCTRL) with an analog mux from 4 (P47–P44) pins that can be configured as analog inputs (bit 7–4 from ADCCTRL). ...

Page 36

... Figure 14. ADC Block Diagram The low-pass filter transfer function is presented in Figure 15 with the –3-dB fre- quency given by the formula: where f is the sampling frequency of the modulator. ADC PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC f = 0.0021 f 3db ADC ...

Page 37

... When available, the reference for the ADC is set externally with the V pins. The output code represents the following ratio: PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Filter response 1 1 ...

Page 38

... ADC block. By default, ADC is off. Active Glitch Filter The Z86D99/Z86L99 family incorporates an active power/glitch filter that can be used to improve the quality of the power supply when the device is operating in noisy environments. The chips use three separate power buses: • ...

Page 39

... The active glitch/power filter effectively increases the noise immunity for battery- operated designs where the controller is driving high current loads (for example, IR LED). PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC DD_padring has to be connected to an external energy stor- DD_CORE F range) ...

Page 40

... Controlled Current Output P43 is an open-drain output-only pin on the Z86D990/D991, but it can be config- ured as output or Tristate High Impedance on the Z86L990/L991. To function properly, Bit 3 of P4M must be set to zero to configure the pin as an open-drain output. For the Z86L990/L991 after reset, P43 defaults to Tristate High Impedance while the Z86D990/D991 P43 is always configured as output ...

Page 41

... This bit is the output of a Set-Reset flip-flop that sets whenever the volt- age on the pad is lower than V register. T1 Timer The Z86D99/Z86L99 family provides one general-purpose 8-bit counter/timer, T driven by its own 6-bit prescaler, PRE processor instruction sequence, which relieves software from time-critical opera- tions such as interval timing and event counting. ...

Page 42

... Triggered Clock Figure 18. T Counter/Timer Block Diagram 1 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ) using Port P52. Port P5 can serve as a timer output ( the internal clock can be output. The timer output toggles at 1 6-Bit ...

Page 43

... Figure 18 on page 35. The prescaler register is a read-write register. Figure 20 shows the prescaler register Figure 20. Prescaler 1 Register PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Hex identifiers F3 PRE1 TMR ( ) consists of an 8-bit register and a 6-bit down-counter as F3h 1 ...

Page 44

... Figure 21. Counter/Timer 1 Register Counter/Timer Operation Under software control bits D –D F1h 2 Figure 22. Timer Mode Register PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC – PRE F2h ) consists of an 8-bit down-counter, a write-only register 1 , ..., ). Figure 21 illustrates the counter/timer register. 00h ...

Page 45

... The prescaler never actually reaches zero. For example, if the prescaler is set to divide by three, the count sequence is as follows: 3-2-1-3-2-1-3-2... PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC to transfers the initial values in the prescaler and the readying the Load bit for the next load operation ...

Page 46

... Because the prescaler is continuously running, regardless of the single-pass/continuous mode operation, the 8-bit timer continuously times out at the rate of the prescaler end-of-count if the T PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R243 PRE1 Prescaler 1 Register ( ...

Page 47

... T cycle output. You can control the duty cycle by varying the initial values after each end-of-count. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ) (Figure 25) is used in conjunction with the F1h for T ...

Page 48

... T • External clock input • Gated internal clock • Triggered internal clock • Retriggerable internal clock PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC + OUT . The internal clock (XTAL frequency/2) is then directly output on 1 Internal clock +2 ...

Page 49

... Load bit D to before counting begins. Initial values are automatically loaded in Trigger and 1 Retrigger modes, so software loading is unnecessary. Configure input line by setting P5M bit D 2 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R241 TMR Timer Mode Register ( ; Read/Write) F1h D 4 ...

Page 50

... Interrupt request IRQ OSC + gate Figure 31. Gated Clock Input Mode PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC generates interrupt request IRQ IN mode or the enabled/disabled state (see Figure 30) occurrence (single-pass mode every nth TMR D –D 5 ...

Page 51

... Enable Count bit again continuous mode, counting continues when T the Enable Count bit. When enabled, each High-to-Low T PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC and D 5 input. Subsequent T ...

Page 52

... The ping-pong mode is used when the T8 timer counts down, enables the T16 timer that counts down, enabling T8, and so on, until the mode is disabled. • The demodulation mode is used to capture and demodulate complex waveforms. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 53

... D1). In modulo-N mode, upon reaching terminal count, T8_OUT is toggled, but no interrupt is generated. Then T8 loads a new count (if T8_OUT level is 0), TC8L is loaded; if T8_OUT is 1, TC8H is loaded. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC LO16 8 ...

Page 54

... Do not write these registers at the time the values are to be loaded into the counter/timer. An initial count not allowed. An ini- tial count of 0 causes TC8 to count from not a time-out condition (see Figure 34). PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC FFh P R ...

Page 55

... Reset T8_Enable Bit Set Time-out Status Bit (CTR0 D5) and Generate Timeout_Int. if Enabled Figure 34. Transmit Mode Flowchart PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC T8 (8-Bit) Transmit Mode No T8_Enable Bit Set CTR0 D7 Yes 0 1 CTR1 D1 Value Load TC8L Set T8_OUT ...

Page 56

... Meanwhile loaded with TC8H and starts counting again reaches 0, the time-out status bit (CTR0 D5) is set, and an interrupt can be generated if enabled (CTR0 D1), and T8 continues counting from PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC . After T8 is enabled, when the first edge (rising, FFh ...

Page 57

... Disable TC8 Figure 35. Demodulation Mode Flowchart PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC T8 (8-Bit) Demodulation Mode T8 Enable CTR0 Yes FFh TC8 First Edge Present No Yes Enable TC8 T8_Enable Bit Set No Yes No Edge Present Yes T8 Time Out Set Edge Present Status Bit and Trigger Data Capture Int ...

Page 58

... Enabling ping-pong operation while the counters/timers are running can cause intermittent counter/timer function. Disable the counters/timers, then reset the status flags before starting the ping-pong mode. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC FFFFh . After T16 is enabled, when the first edge (ris- FFh ...

Page 59

... Control and Status Registers The Z86D99/Z86L99 family has 4 I/O port registers, 33 status and control regis- ters, and 233 general-purpose RAM registers. The I/O port and control registers are included in the general-purpose register memory to allow any Z8 instruction to process I/O or control information directly, thus eliminating the requirement for special I/O or control instructions ...

Page 60

... PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Register Function Stack Pointer General-purpose RAM Register Register Pointer Program Control Flag Register Interrupt Mask Register Interrupt Request Register Interrupt Priority Register Reserved Port 3 Mode Register ...

Page 61

... The Z8 instruction DJNZ uses any general-purpose working register as a counter. • Logical instructions such as OR and AND require that the current contents of the operand be read. They do not function properly on write-only registers. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Register Function Reserved Reserved Reserved ...

Page 62

... Registers (Grouped by Function) The following is a summary of the 37 special-purpose registers of the Z86D99/ Z86L99 family grouped by function. The following are the functional groups: • Flags and Pointers • Analog-to-Digital Converter Control • Interrupt Control • I/O Port Control • Timer Control—General-Purpose Timer (T1) • ...

Page 63

... This register is not reset following Stop Mode Recovery (SMR). Flags and Pointer Registers In addition to the three standard Z8 flag and pointer registers (Program Control Register Pointer, and Stack Pointer), the Z86D99/Z86L99 family includes a Low- Battery Detect Flag register. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM ...

Page 64

... Table 15. FLAGS Register [Group/Bank F0h, Register C (R252)] Bit 7 Bit/Field C R/W R/W Reset Read Write Indeterminate Bit Position Bit/Field 7_______ Carry Flag (C) _6______ Zero Flag (Z) __5_____ Sign Flag (S) ___4____ Overflow Flag (V) PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R/W R/W R/W R R/W Value Description R/W 1 Indicates the “ ...

Page 65

... Expanded Register File Bank R/W R/W R/W R R/W Value Description R/W X Identifies possible WR Groups, each containing 16 Working Registers R/W X Identifies possible ERF Banks; only Banks 0, D, and F are valid for the Z86D99/Z86L99 family R/W R/W R ...

Page 66

... Stack Pointer (SP) The Z86D99/Z86L99 family of products is configured for an internal stack. The size of the stack is limited only by the available memory space or general-purpose RAM registers dedicated to this task. An 8-bit stack pointer, as described in Table 17, is used for all stack operations. Table 17. SP Register [Group/Bank F0h, Register F (R255)] ...

Page 67

... Low-Battery Detect Flag (LB) When the Z86D99/Z86L99 is used in a battery-operated application, one of the on-chip comparators can be used to check that the V correct operation of the device. When voltage begins to approach the V an on-chip low-battery detection circuit is tripped, which in turn sets a user-read- able flag. The LB register, as described in Table 18, is used to set and reset the LB flag ...

Page 68

... Analog-to-Digital Converter Control Registers The Z86D99/Z86L99 family features an 8-bit analog-to-digital converter with external voltage references. The output of the ADC is stored in the ADC Data Register, as shown in Table 20. The ADC is configured using the ADC Control Register, as shown in Table 19. Table 19. ADCCTRL Register (Group/Bank 0Fh, Register 8) ...

Page 69

... Interrupt Mask Register and Interrupt Priority Register. The Interrupt Request Register stores the interrupt requests for both vectored and polled interrupts. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 70

... Immediately after a hardware reset – Immediately after executing an interrupt service routine and before IMR bit 7 has been set by any instruction PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Re- served IRQ5 IRQ4 ...

Page 71

... Priorities can be set both within and between groups using the IPR. Bits 1, 2, and 5 of the IPR define the priority of individual members within the groups. Bits 0, 3, and 4 are encoded to define six priority orders between the three groups. Bits 6 and 7 are reserved. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC and IRQ 3 5 ...

Page 72

... Bit/Field 76______ Interrupt Edge Trigger __5_____ Set IRQ ___4____ Set IRQ ____3___ Set IRQ _____2__ Set IRQ ______1_ Set IRQ _______0 Set IRQ PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Set Set Set IRQ5 IRQ4 IRQ3 R/W R/W R/W R/W 0 ...

Page 73

... This mechanism allows the user to initialize the outputs before driving their loads. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC and is in read-only mode until the 00h ...

Page 74

... Port 2 outputs are configured using the P3M Register, shown in Table 25. Bit 0 of the P3M Register switches Port 2 from push/pull active to open drain outputs. No other bits in this register are implemented. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 75

... Table 27. P2M Register [Group/Bank F0h, Register 6 (R246)] Bit 7 Bit/Field P27M R/W W Reset Read Write Indeterminate Bit Position Bit/Field 76543210 Port 2 Mode (by bit) Select PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R/W Value Description R ...

Page 76

... A bit set the P4M Register configures the corresponding bit in Port input, while a bit set to 0 configures an output line. Note: P43, the controlled current output pad, cannot be configured as an input. (P43 read = P43 out) PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 77

... A bit set the P5M Register configures the corresponding bit in Port input, while a bit set to 0 configures an output line. Note: Regardless of how P5M bits 2 and 3 are set, P52 and P53 are always in input mode. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 78

... A bit set the P6M Register configures the corresponding bit in Port input, while a bit set to 0 configures an output line. Timer Control Registers—General-Purpose Timer (T1) The Z86D99/Z86L99 family provides one standard 8-bit Z8 counter/timer, T1, driven by its own 6-bit prescaler, PRE1 independent of the processor instruction sequence, relieving software from time-critical operations such as interval timing or event counting ...

Page 79

... Table 35. TMR Register [Group/Bank F0h, Register 1 (R241)] Bit 7 Bit/Field TOUT_Mode R/W R/W Reset Read Write Indeterminate Bit Position Bit/Field 76______ T OUT __54____ T IN ____3___ T 1 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R/W R/W R R/W Value Value R Data W Data TIN_Mode R/W ...

Page 80

... Count Mode Timer Control Registers—T8 and T16 Timers One of the unique features of the Z86D99/Z86L99 family is a special timer archi- tecture to automate the generation and reception of complex pulses or signals. This timer architecture consists of one programmable 8-bit counter timer with two ...

Page 81

... R = Read Write Indeterminate Bit Position Bit/Field 7_______ Mode _6______ P43_Out __54____ ____32__ Transmit_ Submode ______1_ Initial_T8_Out _______0 Initial_T16_Out PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC and T counter/timers have two primary modes P43 Out T8/T16_Logic R/W R/W R R/W Value ...

Page 82

... Reset Read Write Indeterminate Bit Position Bit/Field 7_______ Mode _6______ Demodulator_ Input __54____ Edge_Detect ____32__ Glitch_Filter ______1_ Rising_Edge _______0 Falling_Edge PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Demod _Input Edge_Detect Glitch_Filter R/W R/W R/W R R/W Value Description ...

Page 83

... T8/T16 Control Register B (CTR3) The T8/T16 Control Register B, known as CTR3 new register to the Z86D99/ Z86L99 family. This register allows the T The settings of CTR3 are described in Table 39. Table 39. CTR3 Register (Group/Bank 0Dh, Register 3) Bit 7 T16_ Bit/Field Enable R/W R/W Reset Read Write Indeterminate ...

Page 84

... Bit/Field 7_______ T 8 _6______ Single/ Modulo-n __5_____ Time_Out ___43___ T 8 _____2__ Capture Interrupt Mask ______1_ Counter Interrupt Mask _______0 P40_Out PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC timer Single/ Mod- Time_ ulo-n Out T8_Clock R/W R/W R R/W Value ...

Page 85

... Table 42. LO8 Register (Group/Bank 0Dh, Register A) Bit 7 Bit/Field T8_Capture_LO R/W R/W Reset Read Write Indeterminate Bit Position Bit/Field 76543210 T 8 Low Value PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC counter/timer. This register is typically used to hold the R/W R/W R R/W Value Capture R Data W counter/timer ...

Page 86

... T8_Out signal in the low state for the required time. Table 44. TC8L Register (Group/Bank 0Dh, Register 4) Bit 7 Bit/Field T8_Level_LO R/W R/W Reset Read Write Indeterminate Bit Position Bit/Field 76543210 T 8 Low Value PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R/W R/W R R/W Value Level R/W Data ...

Page 87

... Position Bit/Field 7_______ T 16 _6______ Single/ Modulo-n __5_____ Time_Out ___43___ T 16 _____2__ Capture Interrupt Mask ______1_ Counter Interrupt Mask _______0 P41_Out PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Single/ Mod- Time_ ulo-n Out T16_Clock R/W R/W R R/W Value Enable R 1 ...

Page 88

... Table 47. LO16 Register (Group/Bank 0Dh, Register 8) Bit 7 Bit/Field T16_Capture_LO R/W R/W Reset Read Write Indeterminate Bit Position Bit/Field 76543210 T 16 PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC counter/timer. This register holds the most signifi R/W R/W R R/W Value Capture HI R ...

Page 89

... Bit/Field 76543210 T 16 Stop-Mode Recovery Control Registers The Z86D99/Z86L99 family of products allows 16 individual I/O pins (Ports 2 and used as a stop-mode recovery sources. The STOP mode is exited when one of these SMR sources is toggled. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC counter value ...

Page 90

... Reserved _______10 System Clock Select The second function of the SMR register is the selection of the external clock divide value. The purpose of this control is to selectively reduce device power PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Re- Stop ...

Page 91

... Table 52. P5SMR Register (Group/Bank 0Fh, Register 5) Bit 7 Bit/Field P57RS P56RS P55RS P54RS P53RS P52RS R/W R/W Reset Read Write Indeterminate Bit Position Bit/Field 76543210 Port 5 Stop Mode (by bit) Recovery PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC R/W R/W R/W R R/W Value Description R/W ...

Page 92

... Standard Test Conditions The characteristics listed below apply for standard test conditions as noted. All voltages are referenced to GND. Positive current flows into the referenced pin (see Figure 36). PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Min –0.3 –65 1.0 V** ...

Page 93

... From Output Under Test Figure 36. Test Load Diagram DC Characteristics Table 54 lists the DC characteristics for the Z86D99X (OTP only). Table 55 lists the DC characteristics for the Z86L99X (mask only). PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC 150pF ...

Page 94

... Table 54. DC Characteristics for the Z86D99X (OTP Only) Symbol Parameter V Power Supply Voltage DD V Clock Input High Voltage CH V Clock Input Low Voltage CL V Input High Voltage IH V Input Low Voltage IL V Output High Voltage OH1 Regular I/O V High Drive Pins (P54, P55, P56, ...

Page 95

... CC2 I Standby Current (STOP Mode) CC2 I Standby Current (Low Voltage Current with A/D Running ADC V Vdd Low-Voltage Protection LV V Low-Battery Detection LB PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC V Min Max Units Comments DD 2.3 5.5 2.3 V 0.8Vdd Vdd+0.3 V 5.5 V 0.8Vdd Vdd+0.3 V 2.3 V Vss– ...

Page 96

... Step Response is the time to track the input if a step from V The ADC input is a switching capacitor that charges up to the applied input volt- age whenever it is configured as an ADC input. If you switch it from digital mode to PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Minimum Typical 8 ...

Page 97

... TwIL 9 TwIH 10 Twsm 12 Twdt PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Parameter Input Clock Period Clock Input Rise and Fall Times Input Clock Width Timer Input Low Width Timer Input High Width Timer 1 Input Period Interrupt Request Low Time Interrupt Request Input High Time 2 ...

Page 98

... Packaging Figure 37 through Figure 40 show the available packages Detail A Figure 37. 48-Pin SSOP PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC Detail SEATING PLANE L 0-8˚ CONTROLLING DIMENSIONS : MM LEADS ARE COPLANAR WITHIN .004 INCH ...

Page 99

... Figure 38. 40-Pin PDIP Figure 39. 28-Pin PDIP PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 100

... Figure 40. 28-Pin SOIC PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC ...

Page 101

... Z8 device V Not sharing the ground side of the oscillator lead capacitors is to prevent differen- tial system ground noise injection into the oscillator. PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC and temperature, and low impedances (not disturbed by CC (GND) pin ...

Page 102

... ZiLOG cautions that delivery might be uncertain at times, due to start-up yield issues. ZiLOG, Inc. 532 Race Street San Jose, CA 95126-3432 Telephone: (408) 558-8500 FAX: 408 558-8300 Internet: :// HTTP WWW PS003807-1002 Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC COM .Z LOG. I COM ...

Related keywords