z16f2811 ZiLOG Semiconductor, z16f2811 Datasheet - Page 117

no-image

z16f2811

Manufacturer Part Number
z16f2811
Description
High Performance Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z16f2811AL20AG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20SG
Manufacturer:
VISHAY
Quantity:
9 487
Part Number:
z16f2811AL20SG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20SG
Manufacturer:
ZILOG
Quantity:
20 000
Part Number:
z16f2811FI20AG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811FI20EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811FI20SG
Manufacturer:
Zilog
Quantity:
155
PS022006-0207
Capture Elapsed Time (s)
Compare Mode Time (s)
4. Enable the timer interrupt, if appropriate, and set the timer interrupt priority by writing
5. Configure the associated GPIO port pin for the timer input alternate function.
6. Write to the timer control 1 register to enable the timer. In CAPTURE and CAPTURE
In CAPTURE modes, the elapsed time from timer start to Capture event is calculated
using the following equation (start value = 1):
COMPARE Mode
In COMPARE mode, the timer counts up to the 16-bit Compare value stored in the timer
reload high and low byte registers. After reaching the compare value, the timer generates
an interrupt and counting continues (the timer value is not reset to
output alternate function is enabled, the timer output pin changes state (from Low to High
or High to Low).
If the timer reaches
Follow the steps below to configure timer for COMPARE mode and initiate the count:
1. Write to the timer control registers 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, if appropriate, and set the timer interrupt priority by writing
5. When using the timer output function, configure the associated GPIO port pin for the
6. Write to the timer control 1 register to enable the timer and initiate counting.
The compare time is calculated by the following equation (Start Value = 1):
to the relevant interrupt registers.
RESTART modes, the timer begins counting. In CAPTURE COMPARE mode the
timer does not start counting until the first appropriate input transition occurs.
to the relevant interrupt registers.
timer output alternate function.
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.
FFFFH
=
P R E L I M I N A R Y
=
, the timer rolls over to
(
----------------------------------------------------------------------------------------------------------------
(
------------------------------------------------------------------------------------------------------------- -
Compare Value Start Value + 1
Capture Value Start Value + 1
System Clock Frequency (Hz)
System Clock Frequency (Hz)
0000H
and continues counting.
Product Specification
)
)
ZNEO
×
0001H
×
Prescale
Prescale
). If the timer
Z16F Series
Timers
103

Related parts for z16f2811