z16f2811 ZiLOG Semiconductor, z16f2811 Datasheet - Page 114

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
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. When using the timer output function, configure the associated GPIO port pin for the
7. Write to the timer control 1 register to enable the timer.
PWM SINGLE and DUAL OUTPUT Modes
In PWM SINGLE OUTPUT mode, the timer outputs a PWM output signal through a
GPIO Port pin. In PWM DUAL OUTPUT mode, the timer outputs a PWM output signal
and also its complement through two GPIO port pins. The timer first counts up to the
16-bit PWM match value stored in the timer PWM high and low byte registers. When the
timer count value matches the PWM value, the timer output toggles. The timer continues
counting until it reaches the Reload value stored in the timer reload high and low byte
registers. When it reaches the Reload value, the timer generates an interrupt. The count
value in the timer high and low byte registers is reset to
The timer output signal begins with value =
timer value matches the PWM value. The timer output signal returns to
timer reaches the Reload value and is reset to
In PWM DUAL OUTPUT mode, the timer also generates a second PWM output signal,
timer output complement (TOUT). A programmable deadband is configured (
to delay (0 to 128 system clock cycles) the Low to a High (inactive to active) output
transitions on these two pins. This configuration ensures a time gap between the
deassertion of one PWM output to the assertion of its complement.
Follow the steps below to configure a timer for PWM SINGLE or DUAL OUTPUT mode
and initiate the PWM 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 (typically
3. Write to the PWM high and low byte registers to set the PWM value.
to the relevant interrupt registers.
(COUNTER mode).
timer output alternate function.
0001H
first timer reset in PWM mode, counting always begins at the reset value of
Disable the timer.
Configure the timer for the selected PWM mode.
Set the prescale value.
Set the initial logic level (High or Low) and PWM High or Low transition for the
timer output alternate function with the TPOL bit.
Set the deadband delay (DUAL OUTPUT mode) with the
). The starting count value only affects the first pass in PWM mode. After the
P R E L I M I N A R Y
TPOL
0001H
and then transits to
.
0001H
and counting resumes.
Product Specification
ZNEO
PWMD
TPOL
TPOL
field.
, when the
Z16F Series
PWMD
after the
0001H
Timers
field)
.
100

Related parts for z16f2811