z16f2811 ZiLOG Semiconductor, z16f2811 Datasheet - Page 111

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
3. Write to the timer reload high and low byte registers to set the reload value.
4. Enable the timer interrupt, if required, and set the timer interrupt priority by writing to
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 timer period is calculated by the following equation (start value = 1):
TRIGGERED ONE-SHOT Mode
In TRIGGERED ONE-SHOT mode, the timer operates as follows:
1. The timer is non-active until a trigger is received. The timer trigger is taken from the
2. Following the trigger event, the timer counts system clocks up to the 16-bit Reload
3. After reaching the Reload value, the timer outputs a pulse on the timer output pin,
4. The timer now idles until the next trigger event. Trigger events, which occur while the
Follow the steps below to configure timer 0 in TRIGGERED ONE-SHOT mode and
initiate operation:
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 reload value.
4. Enable the timer interrupt, if required, and set the timer interrupt priority by writing to
One-Shot Mode Time-Out Period (s)
the relevant interrupt registers.
timer output alternate function.
timer input pin. The TPOL bit in the timer control 1 register selects whether the trigger
occurs on the rising edge or the falling edge of the timer input signal.
value stored in the timer reload high and low byte registers.
generates an interrupt, and resets the count value in the timer high and low byte
registers to
The TPOL bit also sets the polarity of the output pulse.
timer is responding to a previous trigger is ignored.
the relevant interrupt registers.
Disable the timer
Configure the timer for TRIGGERED ONE-SHOT mode
Set the prescale value
Set the initial output level (High or Low) via the TPOL bit for the timer output
alternate function
Set the INTERRUPT mode
0001H
. The duration of the output pulse is a single system clock.
P R E L I M I N A R Y
=
(
----------------------------------------------------------------------------------------------------------
Reload Value Start Value + 1
System Clock Frequency (Hz)
Product Specification
ZNEO
Z16F Series
)
×
Prescale
Timers
97

Related parts for z16f2811