z8f083a ZiLOG Semiconductor, z8f083a Datasheet - Page 88

no-image

z8f083a

Manufacturer Part Number
z8f083a
Description
High-performance 8-bit Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z8f083a0128ZCOG
Manufacturer:
Zilog
Quantity:
1
Part Number:
z8f083aPH020SG
Manufacturer:
LT
Quantity:
1 154
Part Number:
z8f083aSH020SG
Manufacturer:
Zilog
Quantity:
380
Part Number:
z8f083aSH020SG
Manufacturer:
ZILOG
Quantity:
20 000
Part Number:
z8f083aSJ020EG
Manufacturer:
Zilog
Quantity:
363
PS026308-1207
COMPARE Mode
In COMPARE mode, the timer counts up to 16-bit maximum compare value stored in the
timer reload high and low byte registers. The timer input is the system clock. On reaching
the compare value, the timer generates an interrupt and counting continues (the timer
value is not reset to
timer output pin changes state (from low to high or from high to low) upon compare.
If the timer reaches
The steps for configuring a timer for COMPARE mode and for initiating the count are as
follows:
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.
4. Enable the timer interrupt and set the timer interrupt priority by writing to the relevant
5. If using the timer output function, configure the associated GPIO port pin for the timer
6. Write to the timer control register to enable the timer and initiate counting.
In COMPARE mode, the system clock always provides the timer input. The compare time
is calculated by the following equation:
GATED Mode
In GATED mode, the timer counts only when the timer input signal is in its active state
(asserted), as determined by the TPOL bit in the timer control register. When the timer
input signal is asserted, counting begins. A timer interrupt is generated when the timer
input signal is deasserted or a timer reload occurs. To determine whether the timer input
signal deassertion generated the interrupt, read the associated GPIO input value and
compare to the value stored in the TPOL bit.
The timer counts up to the 16-bit reload value stored in the timer reload high and low byte
registers. The timer input is the system clock. On reaching the reload value, the timer
generates an interrupt, the count value in the timer high and low byte registers is reset to
0001H
Compare Mode Time (s)
interrupt registers.
output alternate function.
and counting resumes (assuming the timer input signal remains asserted). Also, if
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
FFFFH
0001H
). Also, if the timer output alternate function is enabled, the
, the timer resets to
=
(
------------------------------------------------------------------------------------------------------ -
Compare Value Start Value
System Clock Frequency (Hz)
0000H
and continues counting.
Z8 Encore!
)
Product Specification
×
Prescale
®
F083A Series
Timers
76

Related parts for z8f083a