Page 2
® Z8 Encore! F0830 Series Product Specification DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS. Warning: LIFE SUPPORT POLICY ZILOG’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION.
® Z8 Encore! F0830 Series Product Specification Revision History Each instance in this document’s revision history reflects a change from its previous edi- tion. For more details, refer to the corresponding page(s) or appropriate links furnished in the table below. Revision Page Date...
List of Figures Figure 1. Z8 Encore! F0830 Series Block Diagram ......3 Figure 2.
Page 11
® Z8 Encore! F0830 Series Product Specification Figure 31. ICC Versus System Clock Frequency (HALT Mode) ....187 Figure 32. ICC Versus System Clock Frequency (NORMAL Mode) ... . 188 Figure 33.
Page 12
Acronyms and Expansions ........6 Table 3. Z8 Encore! F0830 Series Package Options ......7 Table 4.
Page 13
Comparator Control Register (CMP0) ......107 Table 69. Z8 Encore! F0830 Series Flash Memory Configuration ....108 PS025112-1011...
Page 14
® Z8 Encore! F0830 Series Product Specification Table 70. Z8F083 Flash Memory Area Map ....... 112 Table 71.
Page 15
® Z8 Encore! F0830 Series Product Specification Table 106. Bit Manipulation Instructions ........167 Table 107.
Zilog’s Z8 Encore! MCU family of products are the first in a line of Zilog microcontroller products based on the 8-bit eZ8 CPU. The Z8 Encore! F0830 Series products expand on Zilog’s extensive line of 8-bit microcontrollers. The Flash in-circuit programming capabil- ity allows for faster development time and program changes in the field.
Table 1 lists the basic features available for each device within the Z8 Encore! F0830 Series product line. See the Ordering Information chapter on page 200 for details. Table 1. Z8 Encore! F0830 Series Family Part Selection Guide Part Flash NVDS...
® Z8 Encore! F0830 Series Product Specification Block Diagram Figure 1 displays a block diagram of the Z8 Encore! F0830 Series architecture System Oscillator XTAL/RC Clock Control Oscillator Internal Precision Oscillator Low Power On-Chip RC Oscillator Debugger POR/VBO & Reset...
(UM0128), which is available for download on www.zilog.com. General Purpose Input/Output The Z8 Encore! F0830 Series features up to 25 port pins (Ports A–D) for general-purpose input/output (GPIO). The number of GPIO pins available is a function of package. Each pin is individually programmable.
OUTPUT Modes. Interrupt Controller The Z8 Encore! F0830 Series products support seventeen interrupt sources with sixteen interrupt vectors: up to five internal peripheral interrupts and up to twelve GPIO inter- rupts. These interrupts have three levels of programmable interrupt priority.
Product Specification Reset Controller The Z8 Encore! F0830 Series products are reset using any one of the following: the RESET pin, Power-On Reset, Watchdog Timer (WDT) time-out, STOP Mode exit or Volt- age Brown-Out (VBO) warning signal. The RESET pin is bidirectional; i.e., it functions as a reset source as well as a reset indicator.
Product Specification Pin Description The Z8 Encore! F0830 Series products are available in a variety of package styles and pin configurations. This chapter describes the signals and the pin configurations for each of the package styles. For information about the physical package specifications, see the Packaging chapter on page 199.
® Z8 Encore! F0830 Series Product Specification The analog supply pins (AV and AV ) are also not available on these parts and are replaced by PB6 and PB7. At reset, by default, all pins of Port A, B and C are in Input state. The alternate functional- ity is also disabled, so the pins function as general purpose input ports until programmed otherwise.
® Z8 Encore! F0830 Series Product Specification Signal Descriptions Table 4 describes the Z8 Encore! F0830 Series signals. See the Pin Configurations section on page 7 to determine the signals available for each specific package style. Table 4. Signal Descriptions...
Page 29
® Z8 Encore! F0830 Series Product Specification Table 4. Signal Descriptions (Continued) Signal Mnemonic Description Oscillators External crystal input. This is the input pin to the crystal oscillator. A crystal can be connected between it and the XOUT pin to form the oscillator. In addition, this pin is used with external RC networks or external clock drivers to provide the system clock.
® Z8 Encore! F0830 Series Product Specification Pin Characteristics Table 5 provides detailed characteristics of each pin available on the Z8 Encore! F0830 Series 20- and 28-pin devices. Data in Table 5 are sorted alphabetically by the pin symbol mnemonic. Table 5.
® Z8 Encore! F0830 Series Product Specification Address Space The eZ8 CPU can access the following three distinct address spaces: The register file addresses access for the general purpose registers and the eZ8 CPU, • peripheral and general purpose I/O port control registers The program memory addresses access for all of the memory locations having execut- •...
. Writing to these unimplemented program memory addresses produces no effect. Table 6 shows a program memory map for the Z8 Encore! F0830 Series products. Table 6. Z8 Encore! F0830 Series Program Memory Maps Program Memory Address (Hex) Function Z8F0830 and Z8F0831 Products 0000–0001...
F0830 Series Product Specification Data Memory The Z8 Encore! F0830 Series does not use the eZ8 CPU’s 64 KB data memory address space. Flash Information Area Table 7 maps the Z8 Encore! F0830 Series Flash information area. The 128-byte informa- tion area is accessed, by setting bit 7 of the Flash Page Select Register to 1.
Table 8 provides an address map of the Z8 Encore! F0830 Series register file. Not all devices and package styles in the Z8 Encore! F0830 Series support the ADC or all of the GPIO ports. Consider registers for unimplemented peripherals as reserved.
Page 36
® Z8 Encore! F0830 Series Product Specification Table 8. Register File Address Map (Continued) Address (Hex) Register Description Mnemonic Reset (Hex) Page No. Interrupt Controller (cont’d) Shared interrupt select IRQSS Interrupt control IRQCTL GPIO Port A Port A address PAADDR Port A control PACTL Port A input data...
Page 37
® Z8 Encore! F0830 Series Product Specification Table 8. Register File Address Map (Continued) Address (Hex) Register Description Mnemonic Reset (Hex) Page No. Trim Bit Control Trim bit address TRMADR Trim data TRMDR Flash Memory Controller Flash control FCTL Flash status FSTAT Flash page select Flash sector protect...
F0830 Series Product Specification Reset and Stop Mode Recovery The reset controller in the Z8 Encore! F0830 Series controls RESET and Stop Mode Recovery operations. In a typical operation, the following events can cause a reset: Power-On Reset (POR) •...
OSC_CTL registers During a system RESET or Stop Mode Recovery, the Z8 Encore! F0830 Series device is held in reset for about 66 cycles of the Internal Precision Oscillator. If the crystal oscillator is enabled in the Flash option bits, the reset period is increased to about 5000 IPO cycles.
POR counter has timed out. If the crystal oscillator is enabled by the option bits, the time- out is longer. After the Z8 Encore! F0830 Series device exits the Power-On Reset state, the eZ8 CPU fetches the reset vector. Following the Power-On Reset, the POR status bit in the Reset Status (RSTSTAT) Register is set to 1.
Figure 6. Power-On Reset Operation Voltage Brown-Out Reset The devices in the Z8 Encore! F0830 Series provide low Voltage Brown-Out (VBO) pro- tection. The VBO circuit forces the device to the Reset state, when the supply voltage drops below the VBO threshold voltage (unsafe level). While the supply voltage remains...
® Z8 Encore! F0830 Series Product Specification The Voltage Brown-Out circuit can be either enabled or disabled during STOP Mode. Operations during STOP Mode is set by the VBO_AO Flash option bit. See the Flash Option Bits chapter on page 124 for information about configuring VBO_AO. = 3.3V = 3.3V Program...
While the RESET input pin is asserted low, the Z8 Encore! F0830 Series devices remain in the Reset state. If the RESET pin is held low beyond the system reset time-out, the device exits the Reset state on the system clock rising edge following RESET pin deasser- tion.
1. If the Watchdog Timer is configured to generate an interrupt upon time-out and the Z8 Encore! F0830 Series device is configured to respond to interrupts, the eZ8 CPU services the WDT interrupt request following the normal Stop Mode Recovery sequence.
Stop Mode Recovery Using the External RESET Pin When the Z8 Encore! F0830 Series device is in STOP Mode and the external RESET pin is driven low, a system reset occurs. Because of a glitch filter operating on the RESET pin, the low pulse must be greater than the minimum width specified about 12 ns or it is ignored.
® Z8 Encore! F0830 Series Product Specification Table 12. Reset Status Register (RSTSTAT) Field STOP Reserved RESET See Table 13 Address FF0H Description [7] Power-On Reset Indicator This bit is set to 1 if a Power-On Reset event occurs and is reset to 0, if a WDT time-out or Stop Mode Recovery occurs.
F0830 Series Product Specification Low-Power Modes The Z8 Encore! F0830 Series products contain power saving features. The highest level of power reduction is provided by the STOP Mode. The next level of power reduction is pro- vided by the HALT Mode.
Peripheral Level Power Control In addition to the STOP and HALT modes, it is possible to disable each peripheral on each of the Z8 Encore! F0830 Series devices. Disabling a given peripheral minimizes its power consumption. Power Control Register Definitions...
® Z8 Encore! F0830 Series Product Specification This register is only reset during a Power-On Reset sequence. Other system reset events do Note: not affect it. Table 14. Power Control Register 0 (PWRCTL0) Field Reserved Reserved Reserved COMP Reserved RESET Address F80H Description...
Product Specification General Purpose Input/Output The Z8 Encore! F0830 Series products support a maximum of 25 port pins (Ports A–D) for General Purpose Input/Output (GPIO) operations. Each port contains control and data registers. The GPIO control registers determine data direction, open-drain, output drive current, programmable pull-ups, Stop Mode Recovery functionality and alternate pin functions.
® Z8 Encore! F0830 Series Product Specification Architecture Figure 8 displays a simplified block diagram of a GPIO port pin. In this figure, the ability to accommodate alternate functions and variable port current drive strength is not dis- played. Port Input Schmitt Trigger Data Register System...
® Z8 Encore! F0830 Series Product Specification PA0 and PA6 contain two different Timer functions, a timer input and a complementary timer output. Both of these functions require the same GPIO configuration, the selection between the two is based on the TIMER mode. For more details, see the Timers chapter on page 68.
® Z8 Encore! F0830 Series Product Specification External Clock Setup For systems using an external TTL drive, PB3 is the clock source for 20- and 28-pin devices. In this case, configure PB3 for Alternate function CLKIN. Write to the Oscillator Control Register (see the Oscillator Control Register Definitions section on page 154) to...
Page 54
® Z8 Encore! F0830 Series Product Specification Table 16. Port Alternate Function Mapping (Continued) Alternate Function Port Mnemonic Alternate Function Description Set Register AFS1 Port B Reserved AFS1[0]: 0 ANA0 ADC analog input AFS1[0]: 1 Reserved AFS1[1]: 0 ANA1 ADC analog input AFS1[1]: 1 Reserved AFS1[2]: 0...
Page 55
® Z8 Encore! F0830 Series Product Specification Table 16. Port Alternate Function Mapping (Continued) Alternate Function Port Mnemonic Alternate Function Description Set Register AFS1 Port C Reserved AFS1[0]: 0 ANA4/CINP ADC or comparator input AFS1[0]: 1 Reserved AFS1[1]: 0 ANA5/CINN ADC or comparator input AFS1[1]: 1 Reserved...
® Z8 Encore! F0830 Series Product Specification GPIO Interrupts Many of the GPIO port pins can be used as interrupt sources. Some port pins can be con- figured to generate an interrupt request on either the rising edge or falling edge of the input pin signal.
® Z8 Encore! F0830 Series Product Specification Port A–D Address Registers The Port A–D Address registers select the GPIO port functionality accessible through the Port A–D Control registers. The Port A–D Address and Control registers combine to pro- vide access to all GPIO port controls; see Tables 18 and 19. Table 18.
® Z8 Encore! F0830 Series Product Specification Port A–D Control Registers The Port A–D Control registers, shown in Table 20, set the GPIO port operation. The value in the corresponding Port A–D Address Register determines which subregister is read from or written to by a Port A–D Control Register transaction. Table 20.
® Z8 Encore! F0830 Series Product Specification Port A–D Alternate Function Subregisters The Port A–D Alternate Function Subregister is accessed through the Port A–D Control Register by writing to the Port A–D Address Register. See Table 22 on page 42. The Port A–D Alternate Function subregisters enable the alternate function selection on pins.
® Z8 Encore! F0830 Series Product Specification Port A–D Output Control Subregisters The Port A–D Output Control Subregister, shown in Table 23, is accessed through the Port A–D Control Register by writing to the Port A–D Address Register. Setting the bits in the Port A–D Output Control subregisters to 1 configures the specified port pins for open- drain operation.
® Z8 Encore! F0830 Series Product Specification Port A–D High Drive Enable Subregisters The Port A–D High Drive Enable Subregister, shown in Table 24, is accessed through the Port A–D Control Register by writing to the Port A–D Address Register. Setting the bits in the Port A–D High Drive Enable subregisters to 1 configures the specified port pins for high-output current drive operation.
® Z8 Encore! F0830 Series Product Specification Port A–D Stop Mode Recovery Source Enable Subregisters The Port A–D Stop Mode Recovery Source Enable Subregister, shown in Table 25, is accessed through the Port A–D Control Register by writing to the Port A–D Address Register.
® Z8 Encore! F0830 Series Product Specification Port A–D Pull-up Enable Subregisters The Port A–D Pull-Up Enable Subregister is accessed through the Port A–D Control Reg- ister by writing to the Port A–D Address Register. See Table 26. Setting the bits in the Port A–D Pull-Up Enable subregisters enables a weak internal resistive pull-up on the specified port pins.
® Z8 Encore! F0830 Series Product Specification Port A–D Alternate Function Set 1 Subregisters The Port A–D Alternate Function Set 1 Subregister, shown in Table 27, is accessed through the Port A–D Control Register by writing to the Port A–D Address Register. The Alternate Function Set 1 subregisters select the alternate function available at a port pin.
® Z8 Encore! F0830 Series Product Specification Port A–D Alternate Function Set 2 Subregisters The Port A–D Alternate Function Set 2 Subregister, shown in Table 28, is accessed through the Port A–D Control Register by writing to the Port A–D Address Register. The Alternate Function Set 2 subregisters select the alternate function available at a port pin.
® Z8 Encore! F0830 Series Product Specification Port A–C Input Data Registers Reading from the Port A–C Input Data registers, shown in Table 29, return the sampled values from the corresponding port pins. The Port A–C Input Data registers are read-only. The value returned for any unused ports is 0.
® Z8 Encore! F0830 Series Product Specification Port A–D Output Data Register The Port A–D Output Data Register, shown in Table 30, controls the output data to the pins. Table 30. Port A–D Output Data Register (PxOUT) Field POUT7 POUT6 POUT5 POUT4 POUT3...
® Z8 Encore! F0830 Series Product Specification LED Drive Enable Register The LED Drive Enable Register, shown in Table 31, activates the controlled current drive. The Alternate Function Register has no control over the LED function; therefore, setting the Alternate Function Register to select the LED function is not required. LEDEN bits [7:0] correspond to Port C bits [7:0], respectively.
® Z8 Encore! F0830 Series Product Specification LED Drive Level Low Register The LED Drive Level Low Register, shown in Table 33, contains two control bits for each Port C pin. These two bits select one of four programmable current drive levels for each Port C pin.
® Z8 Encore! F0830 Series Product Specification Interrupt Controller ® The Interrupt Controller on the Z8 Encore! F0830 Series products prioritize the interrupt requests from the on-chip peripherals and the GPIO port pins. The features of the Interrupt Controller include: Seventeen interrupt sources using sixteen unique interrupt vectors: •...
® Z8 Encore! F0830 Series Product Specification Table 34. Trap and Interrupt Vectors in Order of Priority Program Memory Priority Vector Address Interrupt or Trap Source Highest 0002H Reset (not an interrupt) 0004H Watchdog Timer (see Watchdog Timer chapter) 003AH Primary oscillator fail trap (not an interrupt) 003CH Watchdog Oscillator fail trap (not an interrupt)
® Z8 Encore! F0830 Series Product Specification Architecture Figure 9 displays the Interrupt Controller block diagram. High Port Interrupts Priority Vector Priority IRQ Request Medium Priority Internal Interrupts Priority Figure 9. Interrupt Controller Block Diagram Operation This section describes the operational aspects of the following functions. Master Interrupt Enable: see page 55 Interrupt Vectors and...
® Z8 Encore! F0830 Series Product Specification Writing 1 to the IRQE bit in the Interrupt Control Register • Interrupts are globally disabled by any of the following actions: Execution of a (disable interrupt) instruction • eZ8 CPU acknowledgement of an interrupt service request from the Interrupt Control- •...
® Z8 Encore! F0830 Series Product Specification LDX r0, IRQ0 AND r0, MASK LDX IRQ0, r0 To avoid missing interrupts, use the coding style in Example 2 to clear bits in the Interrupt Request 0 Register: A good coding style that avoids lost interrupt requests: Example 2.
® Z8 Encore! F0830 Series Product Specification Interrupt Request 0 Register The Interrupt Request 0 (IRQ0) Register, shown in Table 35 stores the interrupt requests for both vectored and polled interrupts. When a request is sent to the Interrupt Controller, the corresponding bit in the IRQ0 Register becomes 1.
® Z8 Encore! F0830 Series Product Specification Interrupt Request 1 Register The Interrupt Request 1 (IRQ1) Register, shown in Table 36, stores interrupt requests for both vectored and polled interrupts. When a request is sent to the Interrupt Controller, the corresponding bit in the IRQ1 Register becomes 1.
® Z8 Encore! F0830 Series Product Specification Interrupt Request 2 Register The Interrupt Request 2 (IRQ2) Register, shown in Table 37, stores interrupt requests for both vectored and polled interrupts. When a request is sent to the Interrupt Controller, the corresponding bit in the IRQ2 Register becomes 1.
® Z8 Encore! F0830 Series Product Specification Table 39. IRQ0 Enable High Bit Register (IRQ0ENH) Field Reserved T1ENH T0ENH Reserved ADCENH RESET Address FC1H Description Reserved This bit is reserved and must be programmed to 0. [6] Timer 1 Interrupt Request Enable High Bit T1ENH [5]...
® Z8 Encore! F0830 Series Product Specification IRQ1 Enable High and Low Bit Registers Table 41 describes the priority control for IRQ1. The IRQ1 Enable High and Low Bit reg- isters, shown in Tables 42 and 43, form a priority-encoded enabling service for interrupts in the Interrupt Request 1 Register.
® Z8 Encore! F0830 Series Product Specification Table 45. IRQ2 Enable High Bit Register (IRQ2ENH) Field Reserved C3ENH C2ENH C1ENH C0ENH RESET Address FC7H Description [7:4] Reserved These registers are reserved and must be programmed to 0000. [3] Port C3 Interrupt Request Enable High Bit C3ENH [2]...
® Z8 Encore! F0830 Series Product Specification Interrupt Edge Select Register The interrupt edge select (IRQES) register determines whether an interrupt is generated for the rising edge or falling edge on the selected GPIO Port A or Port D input pin. See Table 47.
® Z8 Encore! F0830 Series Product Specification Shared Interrupt Select Register The shared interrupt select (IRQSS) register determines the source of the PADxS inter- rupts. See Table 48. The shared interrupt select register selects between Port A and alter- nate sources for the individual interrupts. Because these shared interrupts are edge-triggered, it is possible to generate an interrupt just by switching from one shared source to another.
® Z8 Encore! F0830 Series Product Specification Interrupt Control Register The Interrupt Control (IRQCTL) Register, shown in Table 49, contains the master enable bit for all interrupts. Table 49. Interrupt Control Register (IRQCTL) Field IRQE Reserved RESET Address FCFH Description [7]...
F0830 Series Product Specification Timers The Z8 Encore! F0830 Series products contain up to two 16-bit reloadable timers that can be used for timing, event counting or generation of pulse width modulated (PWM) signals. The timers feature include: 16-bit reload counter •...
® Z8 Encore! F0830 Series Product Specification Timer Block Timer Data Control Block Control Timer 16-Bit Interrupt, Interrupt Reload Register PWM, Timer Timer Output Output System Control Timer Clock 16-Bit Counter Output with Prescaler Timer Complement Input Gate 16-Bit Input PWM/Compare Capture Input...
Page 87
® Z8 Encore! F0830 Series Product Specification reload. For the timer output to make a state change at a ONE-SHOT time-out (rather than a single cycle pulse), first set the TPOL bit in the Timer Control Register to the start value before enabling ONE-SHOT Mode.
Page 88
® Z8 Encore! F0830 Series Product Specification Disable the timer – Configure the timer for CONTINUOUS Mode – Set the prescale value – If using the timer output A lternate function, set the initial output level (High or – Low) 2.
Page 89
® Z8 Encore! F0830 Series Product Specification is enabled, the timer output pin changes state (from Low to High or from High to Low) at timer reload. Observe the following steps for configuring a timer for COUNTER Mode and for initiat- ing the count: 1.
Page 90
® Z8 Encore! F0830 Series Product Specification The frequency of the comparator output signal must not exceed one-fourth the system Caution: clock frequency. After reaching the reload value stored in the Timer Reload High and Low Byte registers, the timer generates an interrupt, the count value in the Timer High and Low Byte registers is reset to and counting resumes.
Page 91
® Z8 Encore! F0830 Series Product Specification PWM SINGLE OUTPUT Mode In PWM SINGLE OUTPUT Mode, the timer outputs a pulse width modulated (PWM) output signal through a GPIO port pin. The timer input is the system clock. The timer first counts up to 16-bit PWM match value stored in the timer PWM High and Low Byte regis- ters.
Page 92
® Z8 Encore! F0830 Series Product Specification Reload Value Prescale PWM Period (s) ------------------------------------------------------------------------ System Clock Frequency (Hz) If an initial starting value other than is loaded into the Timer High and Low Byte 0001H registers, use the ONE-SHOT Mode equation to determine the first PWM time-out period. If TPOL bit is set to 0, the ratio of the PWM output high time to the total period is repre- sented by: Reload Value PWM Value...
Page 93
® Z8 Encore! F0830 Series Product Specification Observe the following steps for configuring a timer for PWM DUAL OUTPUT Mode and for initiating the PWM operation: 1. Write to the Timer Control Register to: Disable the timer – Configure the timer for PWM DUAL OU TPUT Mode; setting the mode also –...
Page 94
® Z8 Encore! F0830 Series Product Specification Reload Value PWM Value – -------------------------------------------------------------------- - PWM Output High Time Ratio (%) Reload Value is set to 1, the ratio of the PWM output high time to the total period is represented TPOL PWM Value --------------------------------...
Page 95
® Z8 Encore! F0830 Series Product Specification 5. Enable the timer interrupt, if appropriate and set the timer interrupt priority by writing to the relevant interrupt registers. By default, the timer interrupt is generated for both input capture and Reload events. If appropriate, configure the timer interrupt to be generated only at the input capture event or the reload event by setting the TICONFIG field of the TxCTL1 Register.
Page 96
® Z8 Encore! F0830 Series Product Specification 3. Write to the Timer Reload High and Low Byte registers to set the reload value. 4. Clear the timer PWM High and Low Byte registers to . This allows user soft- 0000H ware to determine if interrupts are generated by either a capture event or a reload.
Page 97
® Z8 Encore! F0830 Series Product Specification 4. Enable the timer interrupt and set the timer interrupt priority by writing to the relevant interrupt registers. 5. If using the timer output function, configure the associated GPIO port pin for the timer output alternate function.
Page 98
® Z8 Encore! F0830 Series Product Specification tion and reload events. The user can configure the timer interrupt to be generated only at the input deassertion event or the reload event by setting the TICONFIG field of the TxCTL1 Register. 5.
® Z8 Encore! F0830 Series Product Specification 6. Write to the Timer Control Register to enable the timer. 7. Counting begins on the first appropriate transition of the timer input signal. No inter- rupt is generated by the first edge. In CAPTURE/COMPARE Mode, the elapsed time from timer start to capture event can be calculated using the following equation: Capture Value Start Value...
® Z8 Encore! F0830 Series Product Specification Timer Control Register Definitions This section defines the features of the following Timer Control registers. Timer 0–1 High and Low Byte Registers: see page 83 Timer Reload High and Low Byte Registers: see page 85 Timer 0–1 PWM High and Low Byte Registers: see page 86 Timer 0–1 Control...
Page 101
® Z8 Encore! F0830 Series Product Specification Description [7:0] Timer High and Low Bytes TH, TL These 2 bytes, {TH[7:0], TL[7:0]}, contain the current 16-bit timer count value. PS025112-1011 Timer Control Register Definitions...
® Z8 Encore! F0830 Series Product Specification Timer Reload High and Low Byte Registers The Timer 0–1 Reload High and Low Byte (TxRH and TxRL) registers, shown in Tables 52 and 53, store a 16-bit reload value, {TRH[7:0], TRL[7:0]}. Values written to the Timer Reload High Byte Register are stored in a temporary holding register.
® Z8 Encore! F0830 Series Product Specification Timer 0–1 PWM High and Low Byte Registers The Timer 0–1 PWM High and Low Byte (TxPWMH and TxPWML) registers, shown in Tables 54 and 55, control PWM operations. These registers also store the capture values for the CAPTURE and CAPTURE/COMPARE modes.
® Z8 Encore! F0830 Series Product Specification Timer 0–1 Control Registers The Timer Control registers are 8-bit read/write registers that control the operation of their associated counter/timers. Time 0–1 Control Register 0 The Timer Control 0 (TxCTL0) and Timer Control 1 (TxCTL1) registers determine the timer operating mode.
® Z8 Encore! F0830 Series Product Specification Description (Continued) [0] Input Capture Event INPCAP This bit indicates whether the most recent timer interrupt is caused by a timer input capture event. 0 = Previous timer interrupt is not caused by timer input capture event. 1 = Previous timer interrupt is caused by timer input capture event.
Page 106
® Z8 Encore! F0830 Series Product Specification Description (Continued) [6] Timer Input/Output Polarity TPOL Operation of this bit is a function of the current operating mode of the timer. ONE-SHOT Mode When the timer is disabled, the timer output signal is set to the value of this bit. When the timer is enabled, the timer output signal is complemented on timer reload.
Page 107
® Z8 Encore! F0830 Series Product Specification Description (Continued) [6] PWM DUAL OUTPUT Mode TPOL 0 = Timer output is forced Low (0) and timer output complement is forced High (1), when the (cont’d) timer is disabled. When enabled and the PWM count matches, the timer output is forced High (1) and forced Low (0) when enabled and reloaded.
Page 108
® Z8 Encore! F0830 Series Product Specification Description (Continued) [2:0] Timer Mode TMODE This field along with the TMODEHI bit in TxCTL0 register determines the operating mode of the timer. TMODEHI is the most significant bit of the timer mode selection value. 0000 = ONE-SHOT Mode.
Watchdog Timer The Watchdog Timer (WDT) protects from corrupted or unreliable software, power faults and other system-level problems which can place the Z8 Encore! F0830 Series devices into unsuitable operating states. The features of the Watchdog Timer include: On-chip RC oscillator •...
WDT reload value stored in the Watchdog Timer Reload registers. Counting resumes following the Reload operation. When the Z8 Encore! F0830 Series devices are operating in DEBUG Mode (using the On- Chip Debugger), the Watchdog Timer must be continuously refreshed to prevent any WDT time-outs.
® Z8 Encore! F0830 Series Product Specification WDT Reset in Normal Operation If configured to generate a reset when a time-out occurs, the Watchdog Timer forces the device into the System Reset state. The WDT status bit in the Watchdog Timer Control Register is set to 1.
® Z8 Encore! F0830 Series Product Specification Watchdog Timer Control Register Definitions This section defines the features of the following Watchdog Timer Control registers. Watchdog Timer Control Register (WDTCTL): see page 95 Watchdog Timer Reload Low Byte Register (WDTL): see page 97 Watchdog Timer Reload Upper Byte Register (WDTU): see page 96 Watchdog Timer Reload High Byte Register...
® Z8 Encore! F0830 Series Product Specification Watchdog Timer Reload Upper, High and Low Byte Registers The Watchdog Timer Reload Upper, High and Low Byte (WDTU, WDTH, WDTL) regis- ters, shown in Tables 60 through 62, form the 24-bit reload value that is loaded into the Watchdog Timer when a WDT instruction executes.
® Z8 Encore! F0830 Series Product Specification Analog-to-Digital Converter The Z8 Encore! MCU includes an eight-channel Successive Approximation Register (SAR) Analog-to-Digital Converter (ADC). The ADC converts an analog input signal to a 10-bit binary number. The features of the SAR ADC include: Eight analog input sources multiplexed with general purpose I/O ports •...
® Z8 Encore! F0830 Series Product Specification ADC Timing Each ADC measurement consists of three phases: 1. Input sampling (programmable, minimum of 1.0 µs) 2. Sample-and-hold amplifier settling (programmable, minimum of 0.5 µs) 3. Conversion is 13 ADCLK cycles Figures 12 and 13 display the timing of an ADC conversion. conversion period START 1.0µs min...
® Z8 Encore! F0830 Series Product Specification ADC Interrupt The ADC can generate an interrupt request when a conversion has been completed. An interrupt request that is pending when the ADC is disabled is not cleared automatically. Reference Buffer The reference buffer, RBUF, supplies the reference voltage for the ADC. When enabled, the internal voltage reference generator supplies the ADC.
® Z8 Encore! F0830 Series Product Specification ADC Control Register 0 The ADC Control 0 Register, shown in Table 63, initiates an A/D conversion and provides ADC status information. Table 63. ADC Control Register 0 (ADCCTL0) Field START Reserved REFEN ADCEN Reserved ANAIN[2:0]...
® Z8 Encore! F0830 Series Product Specification ADC Data High Byte Register The ADC Data High Byte Register, listed in Table 64, contains the upper eight bits of the ADC output. Access to the ADC Data High Byte Register is read-only. Reading the ADC Data High Byte Register latches data in the ADC Low Bits Register.
® Z8 Encore! F0830 Series Product Specification Sample Settling Time Register The Sample Settling Time Register, shown in Table 66, is used to program a delay after the SAMPLE/HOLD signal is asserted and before the START signal is asserted; an ADC conversion then begins.
® Z8 Encore! F0830 Series Product Specification Sample Time Register The Sample Time Register, shown in Table 67, is used to program the length of active time for a sample after a conversion has begun by setting the START bit in the ADC Control Register.
® Z8 Encore! F0830 Series Product Specification Comparator The Z8 Encore! F0830 Series devices feature a general purpose comparator that compares two analog input signals. A GPIO ( ) pin provides the positive comparator input. The CINP negative input (...
® Z8 Encore! F0830 Series Product Specification Comparator Control Register Definitions The Comparator Control Register (CMP0) configures the comparator inputs and sets the value of the internal voltage reference. The GPIO pin is always used as positive compara- tor input. Table 68.
Product Specification Flash Memory The products in the Z8 Encore! F0830 Series features either 1 KB (1024 bytes with NVDS), 2 KB (2048 bytes with NVDS), 4 KB (4096 bytes with NVDS), 8 KB (8192 bytes with NVDS) or 12 KB (12288 bytes with no NVDS) of nonvolatile Flash memory with read/write/erase capability.
® Z8 Encore! F0830 Series Product Specification Flash information area is mapped into program memory and overlays the 128 bytes in the address range . When the information area access is enabled, all reads FE00H FE7FH from these program memory addresses return the information area data rather than the program memory data.
® Z8 Encore! F0830 Series Product Specification Reset Lock State 0 Write Page Select Register Write FCTL Lock State 1 Writes to Page Select Register in Lock State 1 result in a return to Lock State 0 Write FCTL Write Page Select Register Page Select values match?
Caution: 10 kHz or above 20 MHz. The Flash Frequency High and Low Byte registers must be loaded with the correct value to ensure operation of the Z8 Encore! F0830 Series devices. Flash Code Protection Against External Access The user code contained within Flash memory can be protected against external access by using the On-Chip Debugger.
Flash memory, unless this value is smaller than the page size, in which case the sector and page sizes are equal. On Z8 Encore! F0830 Series devices, the sector size is varied according to the Z8 Encore! F0830 Series Flash Memory Configura-...
® Z8 Encore! F0830 Series Product Specification bits can only be set to 1. Thus, sectors can be protected, but not unprotected, via register write operations. Writing a value other than to the Flash Control Register deselects the Flash Sector Protect Register and reenables access to the Page Select Register. Observe the following procedure to setup the Flash Sector Protect Register from user code: 1.
® Z8 Encore! F0830 Series Product Specification Page Erase Flash memory can be erased one page (512 bytes) at a time. Page erasing Flash memory sets all bytes in that page to the value . The Flash Page Select Register identifies the page to be erased.
® Z8 Encore! F0830 Series Product Specification The Flash Sector Protect Register is ignored for programming and Erase operations. • Programming operations are not limited to the page selected in the page select register. • Bits in the Flash Sector Protect Register can be written to one or zero. •...
® Z8 Encore! F0830 Series Product Specification Flash Control Register The Flash Controller must be unlocked using the Flash Control Register before program- ming or erasing Flash memory. Writing the sequence , sequentially, to the Flash 73H 8CH Control Register unlocks the Flash Controller. When the Flash Controller is unlocked, Flash memory can be enabled for mass erase or page erase by writing the appropriate enable command to the FCTL.
® Z8 Encore! F0830 Series Product Specification Flash Status Register The Flash Status Register indicates the current state of the Flash Controller. This register can be read at any time. The read-only Flash Status Register shares its register file address with the write-only Flash Control Register.
® Z8 Encore! F0830 Series Product Specification Flash Page Select Register The Flash Page Select Register shares address space with the Flash Sector Protect Regis- ter. Unless the Flash Controller is locked and written with , any writes to this address will target the Flash Page Select Register.
® Z8 Encore! F0830 Series Product Specification Flash Sector Protect Register The Flash Sector Protect Register is shared with the Flash Page Select Register. When the Flash Control Register is locked and written with , the next write to this address tar- gets the Flash Sector Protect Register.
® Z8 Encore! F0830 Series Product Specification Flash Frequency High and Low Byte Registers The Flash Frequency High and Low Byte registers, shown in Tables 76 and 77, combine to form a 16-bit value, FFREQ, to control timing for Flash program and erase operations. The 16-bit binary Flash frequency value must contain the system clock frequency (in kHz) and is calculated using the following equation: System Clock Frequency...
Flash option bits are automatically read from Flash program memory and written to the Option Configuration registers, which control Z8 Encore! F0830 Series device operation. Option bit control is established before the device exits reset and the eZ8 CPU begins code execution.
® Z8 Encore! F0830 Series Product Specification Option Bit Types This section describes the two types of Flash option bits offered in the F0830 Series. User Option Bits The user option bits are contained in the first two bytes of program memory. User access to these bits is provided because these locations contain application specific device config- urations.
® Z8 Encore! F0830 Series Product Specification Flash Option Bit Control Register Definitions This section briefly describes the features of the Trim Bit Address and Data registers. Trim Bit Address Register The Trim Bit Address Register, shown in Table 78, contains the target address to access the trim option bits.
® Z8 Encore! F0830 Series Product Specification Table 80. Trim Bit Data Register (TRMDR) Field TRMDR: Trim Bit Data RESET Address FF7H Flash Option Bit Address Space The first two bytes of Flash program memory at addresses are reserved 0000H 0001H for the user-programmable Flash option bits.
® Z8 Encore! F0830 Series Product Specification Description (Continued) [3] Voltage Brown-Out Protection Always On VBO_AO 0 = Voltage Brown-Out protection is disabled in STOP Mode to reduce total power con- sumption. 1 = Voltage Brown-Out protection is always enabled, even during STOP Mode. This setting is the default setting for unprogrammed (erased) Flash.
® Z8 Encore! F0830 Series Product Specification Description (Continued) [4] State of the Crystal Oscillator at Reset XTLDIS This bit enables only the crystal oscillator. Selecting the crystal oscillator as the system clock must be performed manually. 0 = The crystal oscillator is enabled during reset, resulting in longer reset timing. 1 = The crystal oscillator is disabled during reset, resulting in shorter reset timing.
® Z8 Encore! F0830 Series Product Specification Table 83. Trim Bit Address Space Address Function ADC reference voltage ADC and comparator Internal Precision Oscillator Oscillator and VBO ClkFltr Table 84. Trim Option Bits at 0000H (ADCREF) Field ADCREF_TRIM Reserved RESET Address Information Page Memory 0020H Note: U = Unchanged by Reset.
® Z8 Encore! F0830 Series Product Specification The bit values used in Table 85 are set at the factory; no calibration is required. Note: Table 86. Trim Option Bits at 0002H (TIPO) Field IPO_TRIM RESET Address Information Page Memory 0022H Note: U = Unchanged by Reset.
® Z8 Encore! F0830 Series Product Specification The bit values used in Table 87 are set at the factory; no calibration is required. Note: Table 88. VBO Trim Definition Trigger Voltage VBO_TRIM Level On-chip Flash memory is only guaranteed to perform write operations when voltage sup- plies exceed 2.7 V.
Flash. The products in the Z8 Encore! F0830 Series feature multiple NVDS array sizes. See the Note: Z8 Encore! F0830 Series Family Part Selection Guide section on page 2 for details.
® Z8 Encore! F0830 Series Product Specification Byte Write To write a byte to the NVDS array, the user code must first push the address, then the data byte onto the stack. The user code issues a instruction to the address of the Byte CALL Write routine ( ).
® Z8 Encore! F0830 Series Product Specification Byte Read To read a byte from the NVDS array, user code must first push the address onto the stack. User code issues a instruction to the address of the byte-read routine ( ).
® Z8 Encore! F0830 Series Product Specification Power Failure Protection NVDS routines employ error-checking mechanisms to ensure that any power failure will only endanger the most recently written byte. Bytes previously written to the array are not perturbed. For this protection to function, the VBO must be enabled (see the Low-Power Modes chapter on page 30) and configured for a threshold voltage of 2.4 V or greater (see...
Page 155
® Z8 Encore! F0830 Series Product Specification Because the minimum read time is much less than the write time, however, actual speed benefits are not always realized. 2. Use as few unique addresses as possible to optimize the impact of refreshing. PS025112-1011 NVDS Code Interface...
® Z8 Encore! F0830 Series Product Specification On-Chip Debugger The Z8 Encore! devices contain an integrated On-Chip Debugger (OCD) that provides the following advanced debugging features: Reading and writing of the register file • Reading and writing of program and data memory •...
® Z8 Encore! F0830 Series Product Specification Operation The following section describes the operation of the On-Chip Debugging function. OCD Interface The On-Chip Debugger uses the DBG pin for communication with an external host. This one-pin interface is a bidirectional open-drain interface that transmits and receives data. Data transmission is half-duplex, which means that transmission and data retrieval cannot occur simultaneously.
® Z8 Encore! F0830 Series Product Specification RS-232 10KΩ Transceiver Open-Drain Buffer RS-232 TX DBG Pin RS-232 RX Figure 22. Interfacing the On-Chip Debugger’s DBG Pin with an RS-232 Interface, #2 of 2 DEBUG Mode The operating characteristics of the devices in DEBUG Mode are: The eZ8 CPU fetch unit stops, idling the eZ8 CPU, unless directed by the OCD to ex- •...
® Z8 Encore! F0830 Series Product Specification Watchdog Timer reset • Asserting the RESET pin Low to initiate a reset • Driving the DBG pin Low while the device is in STOP Mode initiates a system reset • OCD Data Format The OCD interface uses the asynchronous data format defined for RS-232.
® Z8 Encore! F0830 Series Product Specification If the OCD receives a serial break (nine or more continuous bits low), the autobaud detec- tor/generator resets. Reconfigure the autobaud detector/generator by sending OCD Serial Errors The OCD can detect any of the following error conditions on the DBG pin: Serial break (a minimum of nine continuous bits Low) •...
Flash read protect option bit (FRP). The FRP prevents the code in memory from being read out of the Z8 Encore! F0830 Series products. When this option is enabled, several of the OCD commands are disabled.
Page 162
® Z8 Encore! F0830 Series Product Specification Table 95. On-Chip Debugger Command Summary (Continued) Command Enabled when not Disabled by Debug Command Byte in DEBUG Mode? Flash Read Protect Option Bit Read Program Memory CRC – – Reserved – – Step Instruction –...
Page 163
® Z8 Encore! F0830 Series Product Specification The read OCD Control Register command reads the Read OCD Control Register (05H). value of the OCDCTL register. ← 05H → OCDCTL[7:0] The write program counter command, writes the data that Write Program Counter (06H). follows to the eZ8 CPU’s program counter (PC).
Page 164
® Z8 Encore! F0830 Series Product Specification ← 0AH ← Program Memory Address[15:8] ← Program Memory Address[7:0] ← Size[15:8] ← Size[7:0] ← 1–65536 data bytes The read program memory command, reads data from Read Program Memory (0BH). program memory. This command is equivalent to the LDC and LDCI instructions. Data can be read 1–65536 bytes at a time (65536 bytes can be read by setting size to 0).
The OCD Control Register controls the state of the On-Chip Debugger. This register is used to enter or exit DEBUG Mode and to enable the instruction. It can also reset the Z8 Encore! F0830 Series device. A reset and stop function can be achieved by writing to this register. A reset and go function can be achieved by writing to this register.
Flash read protect option bit is enabled, this bit can only be cleared by resetting the device. It cannot be written to 0. 0 = The Z8 Encore! F0830 Series device is operating in NORMAL Mode. 1 = The Z8 Encore! F0830 Series device is in DEBUG Mode.
® Z8 Encore! F0830 Series Product Specification OCD Status Register The OCD Status Register reports status information about the current state of the debugger and the system. Table 97. OCD Status Register (OCDSTAT) Field HALT FRPENB Reserved RESET Description [7] Debug Status 0 = NORMAL Mode.
® Z8 Encore! F0830 Series Product Specification Oscillator Control The Z8 Encore! F0830 Series device uses five possible clocking schemes. Each one of these is user-selectable. On-chip precision trimmed RC oscillator • On-chip oscillator using off-chip crystal or resonator •...
® Z8 Encore! F0830 Series Product Specification When selecting a new clock source, the primary oscillator failure detection circuitry and the Watchdog Timer Oscillator failure circuitry must be disabled. If POFEN and WOFEN are not disabled prior to a clock switch-over, it is possible to generate an interrupt for a failure of either oscillator.
It is possible to disable the clock failure detection circuitry as well as all functioning Caution: clock sources. In this case, the Z8 Encore! F0830 Series device ceases functioning and can only be recovered by power-on-reset. Oscillator Control Register Definitions The following section provides the bit definitions for the Oscillator Control Register.
Page 172
® Z8 Encore! F0830 Series Product Specification Description (Continued) [4] Primary Oscillator Failure Detection Enable POFEN 1 = Failure detection and recovery of primary oscillator is enabled. 0 = Failure detection and recovery of primary oscillator is disabled. [3] Watchdog Timer Oscillator Failure Detection Enable WDFEN 1 = Failure detection of Watchdog Timer Oscillator is enabled.
® Z8 Encore! F0830 Series Product Specification Normal Running Switch to OSC? Switch to IPO? Switch to WDT? WDT OSC is OSC is enabled? IPO is enabled? enabled? Set bit7 in OSCCTL Set bit6 in Set bit5 in OSCCTL register and wait OSCCTL register register and wait one NOP...
Product Specification Crystal Oscillator The products in the Z8 Encore! F0830 Series contain an on-chip crystal oscillator for use with external crystals with 32 kHz to 20 MHz frequencies. In addition, the oscillator sup- ports external RC networks with oscillation frequencies up to 4 MHz or ceramic resonators with frequencies up to 8 MHz.
® Z8 Encore! F0830 Series Product Specification ister, the user code must wait at least 5000 IPO cycles for the crystal to stabilize. After this period, the crystal oscillator may be selected as the system clock. Figure 25 displays a recommended configuration for connection with an external funda- mental-mode, parallel-resonant crystal operating at 20 MHz.
® Z8 Encore! F0830 Series Product Specification Oscillator Operation with an External RC Network Figure 26 displays a recommended configuration for connection with an external resistor- capacitor (RC) network. Figure 26. Connecting the On-Chip Oscillator to an External RC Network An external resistance value of 45 kΩ...
® Z8 Encore! F0830 Series Product Specification Internal Precision Oscillator The Internal Precision Oscillator (IPO) is designed for use without external components. The user can either manually trim the oscillator for a nonstandard frequency or use the automatic factory-trimmed version to achieve a 5.53 MHz frequency with ± 4% accuracy and 45%~55% duty cycle over the operating temperature and supply voltage of the device.
® Z8 Encore! F0830 Series Product Specification eZ8 CPU Instruction Set This chapter describes the following features of the eZ8 CPU instruction set: Assembly Language Programming Introduction: see page 162 Assembly Language Syntax: see page 163 eZ8 CPU Instruction Notation: see page 164 eZ8 CPU Instruction Classes: see page 166 eZ8 CPU Instruction...
® Z8 Encore! F0830 Series Product Specification Assembly Language Source Program Example ; Everything after the semicolon is a comment. JP START ; A label called “START”. The first instruction (JP START) in this START: ; example causes program execution to jump to the point within the ;...
® Z8 Encore! F0830 Series Product Specification Example 2 In general, when an instruction format requires an 8-bit register address, the address can specify any register location in the range 0–255 or, using escaped mode addressing, a working register R0–R15. If the contents of register and working register R8 are added and the result is stored in , the assembly syntax and resulting object code is:...
® Z8 Encore! F0830 Series Product Specification Table 103. Notational Shorthand (Continued) Notation Description Operand Range Register Reg. represents a number in the range of 00H to FFH Relative Address X represents an index in the range of +127 to – 128 which is an offset relative to the address of the next instruction Working Register Pair...
® Z8 Encore! F0830 Series Product Specification This example indicates that the source data is added to the destination data; the result is stored in the destination location. eZ8 CPU Instruction Classes eZ8 CPU instructions can be divided functionally into the following groups: Arithmetic •...
® Z8 Encore! F0830 Series Product Specification Table 108. CPU Control Instructions Mnemonic Operands Instruction — Atomic Execution — Complement Carry Flag — Disable Interrupts — Enable Interrupts HALT — HALT Mode — No Operation — Reset Carry Flag — Set Carry Flag Set Register Pointer STOP...
® Z8 Encore! F0830 Series Product Specification Table 110. Logical Instructions Mnemonic Operands Instruction dst, src Logical AND ANDX dst, src Logical AND using Extended Addressing Complement dst, src Logical OR dst, src Logical OR using Extended Addressing dst, src Logical Exclusive OR XORX dst, src...
Page 187
® Z8 Encore! F0830 Series Product Specification Table 112. Rotate and Shift Instructions (Continued) Mnemonic Operands Instruction Rotate Right Rotate Right through Carry Shift Right Arithmetic Shift Right Logical SWAP Swap Nibbles PS025112-1011 eZ8 CPU Instruction Classes...
® Z8 Encore! F0830 Series Product Specification eZ8 CPU Instruction Summary Table 113 summarizes the eZ8 CPU instructions. The table identifies the addressing modes employed by the instruction, the effect upon the Flags register, the number of CPU clock cycles required for the instruction fetch and the number of CPU clock cycles required for the instruction execution.
Page 189
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles dst ← dst AND src AND dst, src –...
Page 190
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles dst ← 00H CLR dst – – – –...
Page 191
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles dst ← dst – 1 DJNZ dst, RA 0A–FA –...
Page 192
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles dst ← src LD dst, rc 0C–FC –...
Page 193
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles dst ← src LDX dst, src – –...
Page 194
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles dst ← @SP POPX dst – – – –...
Page 195
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles SRA dst – – D7 D6 D5 D4 D3 D2 D1 D0 SRL dst 1F C0 –...
Page 196
® Z8 Encore! F0830 Series Product Specification Table 113. eZ8 CPU Instruction Summary (Continued) Address Mode Flags Assembly Code(s) Fetch Instr. Mnemonic Symbolic Operation (Hex) C Z S V D H Cycles Cycles TM dst, src dst AND src – –...
® Z8 Encore! F0830 Series Product Specification Op Code Maps A description of the opcode map data and the abbreviations are provided in Figure 28. Table 114 on page 181 lists opcode map abbreviations. Op Code Lower Nibble Fetch Cycles Instruction Cycles Op Code Upper Nibble...
® Z8 Encore! F0830 Series Product Specification Table 114. Op Code Map Abbreviations Abbreviation Description Abbreviation Description Bit position Indirect Register Pair Condition code Polarity (0 or 1) 8-bit signed index or displace- 4-bit Working Register ment Destination address 8-bit register Extended Addressing Register r1, R1, Ir1, Irr1, Destination address...
® Z8 Encore! F0830 Series Product Specification Figures 29 and 30 provide information about each of the eZ8 CPU instructions. Lower Nibble (Hex) ADDX ADDX DJNZ r1,r2 r1,Ir2 R2,R1 IR2,R1 R1,IM IR1,IM ER2,ER1 IM,ER1 r1,X cc,X r1,IM cc,DA See 2nd ADCX ADCX Op Code...
® Z8 Encore! F0830 Series Product Specification Electrical Characteristics The data in this chapter represents all known data prior to qualification and characteriza- tion of the F0830 Series of products, and is therefore subject to change. Additional electri- cal characteristics may be found in the individual chapters of this document. Absolute Maximum Ratings Stresses greater than those listed in Table 115 may cause permanent damage to the device.
Z8 Encore! F0830 Series Product Specification DC Characteristics Table 116 lists the DC characteristics of the Z8 Encore! F0830 Series products. All volt- ages are referenced to V , the primary system ground. Table 116. DC Characteristics = 0°C to +70°C = –40°C to +105°C...
Page 203
® Z8 Encore! F0830 Series Product Specification Table 116. DC Characteristics (Continued) = 0°C to +70°C = –40°C to +105°C Symbol Parameter Units Conditions Controlled See GPIO section on Current Drive LED description 10.5 19.5 GPIO Port Pad – – Capacitance XIN Pad –...
® Z8 Encore! F0830 Series Product Specification Figure 31 displays the typical current consumption while operating at 25 ºC, 3.3 V, versus the system clock frequency in HALT Mode. Figure 31. I Versus System Clock Frequency (HALT Mode) PS025112-1011 DC Characteristics...
® Z8 Encore! F0830 Series Product Specification Figure 32 displays the typical current consumption versus the system clock frequency in NORMAL Mode. Figure 32. I Versus System Clock Frequency (NORMAL Mode) PS025112-1011 DC Characteristics...
® Z8 Encore! F0830 Series Product Specification AC Characteristics The section provides information about the AC characteristics and timing. All AC timing information assumes a standard load of 50 pF on all outputs. Table 117. AC Characteristics = 2.7 to 3.6 V = 2.7 to 3.6 V = –40°C to = 0°C to +70°C...
® Z8 Encore! F0830 Series Product Specification Table 117. AC Characteristics (Continued) = 2.7 to 3.6 V = 2.7 to 3.6 V = –40°C to = 0°C to +70°C +105°C Symbol Parameter Units Conditions System Clock Rise – = 50 ns XINR Time System Clock Fall...
Page 208
® Z8 Encore! F0830 Series Product Specification Table 118. Power-On Reset and Voltage Brown-Out Electrical Characteristics and Timing = –40°C to = 0°C to +70°C +105°C Symbol Parameter Units Conditions Power-On Reset µs 66 Internal Preci- Digital Delay sion Oscillator cycles Power-On Reset 5000 Internal Pre-...
® Z8 Encore! F0830 Series Product Specification Table 119. Flash Memory Electrical Characteristics and Timing = 2.7 to 3.6 V = 2.7 to 3.6 V = 0°C to +70°C = –40°C to +105°C Parameter Units Notes Flash Byte Read – –...
® Z8 Encore! F0830 Series Product Specification Table 121. Nonvolatile Data Storage = 2.7 to 3.6 V = 2.7 to 3.6 V = 0°C to +70°C = –40°C to +105°C Parameter Units Notes NVDS Byte Read – µs With system clock at Time 20 MHz NVDS Byte Pro-...
® Z8 Encore! F0830 Series Product Specification Table 122. Analog-to-Digital Converter Electrical Characteristics and Timing (Continued) = 2.7 to 3.6 V = 2.7 to 3.6 V = 0°C to +70°C = –40°C to +105°C Symbol Parameter Units Conditions Input Impedance MΩ...
® Z8 Encore! F0830 Series Product Specification General Purpose I/O Port Input Data Sample Timing Figure 33 displays timing of the GPIO port input sampling. The input value on a GPIO port pin is sampled on the rising edge of the system clock. The port value is available to the eZ8 CPU on the second rising clock edge following the change of the port value.
® Z8 Encore! F0830 Series Product Specification General Purpose I/O Port Output Timing Figure 34 and Table 125 provide timing information for the GPIO port pins. TCLK Port Output Figure 34. GPIO Port Output Timing Table 125. GPIO Port Output Timing Delay (ns) Parameter Abbreviation...
® Z8 Encore! F0830 Series Product Specification On-Chip Debugger Timing Figure 35 and Table 126 provide timing information for the DBG pin. The DBG pin tim- ing specifications assume a 4 ns maximum rise and fall time. TCLK Output Data (Output) Input Data (Input)
® Z8 Encore! F0830 Series Product Specification Packaging Zilog’s F0830 Series of MCUs includes the Z8F0130, Z8F0131, Z8F0230, Z8F0231, Z8F1232 and Z8F1233 devices, which are available in the following packages: 20-Pin Quad Flat No-Lead Package (QFN) • 20-pin Small Outline Integrated Circuit Package (SOIC) •...
Zilog website lists all regional offices. Table 128. Z8 Encore! XP F0830 Series Ordering Matrix Part Number Flash NVDS Channels Description Z8 Encore! F0830 Series MCUs with 12 KB Flash Standard Temperature: 0°C to 70°C Z8F1232SH020SG 12 KB SOIC 20-pin Z8F1232HH020SG...
Page 218
® Z8 Encore! F0830 Series Product Specification Table 128. Z8 Encore! XP F0830 Series Ordering Matrix Part Number Flash NVDS Channels Description Z8F1233QH020EG 12 KB QFN 20-pin Z8F1232SJ020EG 12 KB SOIC 28-pin Z8F1232HJ020EG 12 KB SSOP 28-pin Z8F1232PJ020EG 12 KB PDIP 28-pin Z8F1232QJ020EG 12 KB...
Page 219
® Z8 Encore! F0830 Series Product Specification Table 128. Z8 Encore! XP F0830 Series Ordering Matrix Part Number Flash NVDS Channels Description Z8F0831HH020EG 8 KB SSOP 20-pin Z8F0831PH020EG 8 KB PDIP 20-pin Z8F0831QH020EG 8 KB QFN 20-pin Z8F0830SJ020EG 8 KB SOIC 28-pin Z8F0830HJ020EG 8 KB...
Page 220
® Z8 Encore! F0830 Series Product Specification Table 128. Z8 Encore! XP F0830 Series Ordering Matrix Part Number Flash NVDS Channels Description Z8F0430QH020EG 4 KB QFN 20-pin Z8F0431SH020EG 4 KB SOIC 20-pin Z8F0431HH020EG 4 KB SSOP 20-pin Z8F0431PH020EG 4 KB PDIP 20-pin Z8F0431QH020EG 4 KB...
Page 221
® Z8 Encore! F0830 Series Product Specification Table 128. Z8 Encore! XP F0830 Series Ordering Matrix Part Number Flash NVDS Channels Description Extended Temperature: –40°C to 105°C Z8F0230SH020EG 2 KB SOIC 20-pin Z8F0230HH020EG 2 KB SSOP 20-pin Z8F0230PH020EG 2 KB PDIP 20-pin Z8F0230QH020EG 2 KB...
Page 222
® Z8 Encore! F0830 Series Product Specification Table 128. Z8 Encore! XP F0830 Series Ordering Matrix Part Number Flash NVDS Channels Description Z8F0131PJ020SG 1 KB PDIP 28-pin Z8F0131QJ020SG 1 KB QFN 28-pin Extended Temperature: –40°C to 105°C Z8F0130SH020EG 1 KB SOIC 20-pin Z8F0130HH020EG 1 KB...
® Z8 Encore! F0830 Series Product Specification Part Number Suffix Designations Zilog part numbers consist of a number of components, as indicated in the following example. Part number Z8F0830SH020SG is an 8-bit 20 MHz Flash MCU with 8 KB Pro- Example.
® Z8 Encore! F0830 Series Product Specification Appendix A. Register Tables For the reader’s convenience, this appendix lists all F0830 Series registers numerically by hexadecimal address. General Purpose RAM In the F0830 Series, the hexadecimal address range is partitioned for general- 000–EFF purpose random access memory, as follows.
® Z8 Encore! F0830 Series Product Specification Analog-to-Digital Converter For more information about these ADC registers, see the ADC Control Register Defini- tions section on page 101. Hex Address: F70 Table 146. ADC Control Register 0 (ADCCTL0) Field START Reserved REFEN ADCEN Reserved...
® Z8 Encore! F0830 Series Product Specification Hex Address: F71 This address range is reserved. Hex Address: F72 Table 147. ADC Data High Byte Register (ADCD_H) Field ADCDH RESET Address F72H Description [7:0] ADC High Byte 00h–FFh = The last conversion output is held in the data registers until the next ADC conver- sion is completed.
® Z8 Encore! F0830 Series Product Specification Hex Address: F74 Table 149. ADC Sample Settling Time (ADCSST) Field Reserved RESET Address F74H Description [7:4] Reserved These bits are reserved and must be programmed to 0000. [3:0] Sample Settling Time 0h–Fh = Number of system clock periods to meet 0.5 µs minimum. Hex Address: F75 Table 150.
® Z8 Encore! F0830 Series Product Specification Low Power Control For more information about the Power Control Register, see the Power Control Register Definitions section on page 31. Hex Address: F80 Table 151. Power Control Register 0 (PWRCTL0) Field Reserved Reserved Reserved COMP Reserved...
® Z8 Encore! F0830 Series Product Specification Hex Addresses: F87–F8F This address range is reserved. Comparator 0 For more information about the Comparator Register, see the Comparator Control Regis- ter Definitions section on page 107. Hex Address: F90 Table 156. Comparator Control Register (CMP0) Field Reserved INNSEL...
® Z8 Encore! F0830 Series Product Specification GPIO Port A For more information about the GPIO registers, see the GPIO Control Register Definitions section on page 39. Hex Address: FD0 Table 169. Port A GPIO Address Register (PAADDR) Field PADDR[7:0] RESET Address FD0H...
® Z8 Encore! F0830 Series Product Specification Hex Address: FDF Table 183. Port D Output Data Register (PDOUT) Field POUT7 POUT6 POUT5 POUT4 POUT3 POUT2 POUT1 POUT0 RESET Address FDFH Hex Addresses: FE0–FEF This address range is reserved. Watchdog Timer For more information about the Watchdog Timer registers, see the Watchdog Timer Con- trol Register Definitions...
® Z8 Encore! F0830 Series Product Specification Trim Bit Control For more information about the Trim Bit Control registers, see the Flash Option Bit Con- trol Register Definitions section on page 126. Hex Address: FF6 Table 189. Trim Bit Address Register (TRMADR) Field TRMADR - Trim Bit Address (00H to 1FH) RESET...
® Z8 Encore! F0830 Series Product Specification Index binary number suffix 165 Numerics BIT 167 10-bit ADC 4 bit 164 clear 167 manipulation instructions 167 set 167 absolute maximum ratings 184 set or clear 167 AC characteristics 189 swap 167 ADC 166 test and jump 169 block diagram 99...
Page 249
® Z8 Encore! F0830 Series Product Specification complement 169 electrical noise 98 complement carry flag 167, 168 enable interrupt 168 condition code 164 ER 164 continuous mode 89 extended addressing register 164 Control Registers 14, 17 external pin reset 25 counter modes 89 eZ8 CPU features 4 CP 166...
Page 250
® Z8 Encore! F0830 Series Product Specification indirect working register 164 indirect working register pair 164 gated mode 89 instruction set, ez8 CPU 162 general-purpose I/O 33 instructions GPIO 4, 33 ADC 166 alternate functions 34 ADCX 166 architecture 34 ADD 166 control register definitions 39 ADDX 166...
Page 252
® Z8 Encore! F0830 Series Product Specification load instructions 168 IR 164 load using extended addressing 168 Ir 164 logical AND 169 IRR 164 logical AND/extended addressing 169 Irr 164 logical exclusive OR 169 p 164 logical exclusive OR/extended addressing 169 R 165 logical instructions 169 r 164...
Page 253
® Z8 Encore! F0830 Series Product Specification stuff instruction (11H) 148 program counter 165 write data memory (0CH) 147 program memory 15 write OCD control register (04H) 145 PUSH 168 write program counter (06H) 146 push using extended addressing 168 write program memory (0AH) 146 PUSHX 168 write register (08H) 146...
Page 254
® Z8 Encore! F0830 Series Product Specification registers sources 26 ADC channel 1 102 using a GPIO port pin transition 27, 28 ADC data high byte 103 using watch-dog timer time-out 27 ADC data low bit 103, 104, 105 SUB 167 reset subtract 167 and stop mode characteristics 22...
Page 255
® Z8 Encore! F0830 Series Product Specification control registers 87, 88 XORX 169 high and low byte registers 83, 86 TM 167 TMX 167 TRAP 169 Z8 Encore! block diagram 3 features 1 part selection guide 2 vector 165 voltage brown-out reset (VBR) 24 voltage measurement timing diagram 100 watch-dog timer approximate time-out delay 92...
® Z8 Encore! F0830 Series Product Specification Customer Support To share comments, get your technical questions answered or report issues you may be experiencing with our products, please visit Zilog’s Technical Support page at http://support.zilog.com. To learn more about this product, find additional documentation or to discover other facets about Zilog product offerings, please visit the Zilog Knowledge Base at http://zilog.com/ or consider participating in the Zilog Forum at http://zilog.com/forum.
Need help?
Do you have a question about the Z8 Encore! F0830 Series and is the answer not in the manual?
Questions and answers