Z8F042AHH020EG Zilog, Z8F042AHH020EG Datasheet - Page 87

IC ENCORE XP MCU FLASH 4K 20SSOP

Z8F042AHH020EG

Manufacturer Part Number
Z8F042AHH020EG
Description
IC ENCORE XP MCU FLASH 4K 20SSOP
Manufacturer
Zilog
Series
Encore!® XP®r
Datasheet

Specifications of Z8F042AHH020EG

Core Processor
Z8
Core Size
8-Bit
Speed
20MHz
Connectivity
IrDA, UART/USART
Peripherals
Brown-out Detect/Reset, LED, LVD, POR, PWM, Temp Sensor, WDT
Number Of I /o
17
Program Memory Size
4KB (4K x 8)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.6 V
Data Converters
A/D 7x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 105°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
269-4156
Z8F042AHH020EG
PS022517-0508
3. Write to the PWM High and Low Byte registers to set the PWM value.
4. Write to the Timer Reload High and Low Byte Registers to set the Reload value
5. If required, enable the timer interrupt and set the timer interrupt priority by writing to
6. Configure the associated GPIO port pin for the Timer Output alternate function.
7. Write to the Timer Control Register to enable the timer and initiate counting.
The PWM period is given by the following equation.
If an initial starting value other than
Registers, the ONE-SHOT mode equation is used to determine the first PWM time-out
period.
If
If
CAPTURE Mode
In CAPTURE mode, the current timer count value is recorded when the desired external
Timer Input transition occurs. The Capture count value is written to the Timer PWM High
and Low Byte Registers. The timer input is the system clock. The
Control Register determines if the Capture occurs on a rising edge or a falling edge of the
Timer Input signal. When the Capture event occurs, an interrupt is generated and the timer
continues counting.
The timer continues counting up to the 16-bit Reload value stored in the Timer Reload
High and Low Byte registers. Upon reaching the Reload value, the timer generates an
interrupt and continues counting.
Follow the steps below for configuring a timer for CAPTURE mode and initiating the
count:
1. Write to the Timer Control Register to:
PWM Period (s)
PWM Output High Time Ratio (%)
PWM Output High Time Ratio (%)
TPOL
TPOL
(PWM period). The Reload value must be greater than the PWM value.
the relevant interrupt registers.
Disable the timer
is set to 0, the ratio of the PWM output High time to the total period is given by
is set to 1, the ratio of the PWM output High time to the total period is given by
=
------------------------------------------------------------------------------ -
System Clock Frequency (Hz)
Reload Value
=
=
0001H
x
----------------------------------- - x100
Reload Value
Prescale
Reload Value PWM Value
------------------------------------------------------------------------ -x100
PWM Value
is loaded into the Timer High and Low Byte
Reload Value
Z8 Encore! XP
Product Specification
TPOL
bit in the Timer
®
F0822 Series
Timers
74

Related parts for Z8F042AHH020EG