Z8F042AHH020EG Zilog, Z8F042AHH020EG Datasheet - Page 88

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
2. Write to the Timer High and Low Byte Registers to set the starting count value
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
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 Input alternate function.
7. Write to the Timer Control Register to enable the timer and initiate counting.
In CAPTURE mode, the elapsed time from timer start to Capture event is calculated using
the following equation:
COMPARE Mode
In COMPARE mode, the timer counts up to the 16-bit maximum Compare value stored
in the Timer Reload High and Low Byte Registers. The timer input is the system clock.
Upon reaching the Compare value, the timer generates an interrupt and counting continues
(the timer value is not reset to
enabled, the Timer Output pin changes state (from Low to High or from High to Low)
upon Compare.
If the Timer reaches
Follow the steps below for configuring a timer for COMPARE mode and initiating the
count:
1. Write to the Timer Control Register to:
2. Write to the Timer High and Low Byte registers to set the starting count value
3. Write to the Timer Reload High and Low Byte registers to set the Compare value
Capture Elapsed Time (s)
(typically
software to determine if interrupts were generated by either a capture event or a
reload. If the PWM High and Low Byte Registers still contains
interrupt, then the interrupt was generated by a Reload.
the relevant interrupt registers.
Configure the timer for CAPTURE mode
Set the prescale value
Set the Capture edge (rising or falling) for the Timer Input
Disable the timer
Configure the timer for COMPARE mode
Set the prescale value
Set the initial logic level (High or Low) for the Timer Output alternate function, if
required
0001H
FFFFH
).
=
, the timer rolls over to
(
--------------------------------------------------------------------------------------------------------- -
0001H
Capture Value Start Value
System Clock Frequency (Hz)
). Also, if the Timer Output alternate function is
0000H
Z8 Encore! XP
and continue counting.
)xPrescale
0000H
Product Specification
. This allows user
0000H
®
F0822 Series
after the
Timers
75

Related parts for Z8F042AHH020EG