z8f083a ZiLOG Semiconductor, z8f083a Datasheet - Page 83

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
The steps for configuring a timer for PWM SINGLE OUTPUT mode and for initiating the
PWM operation 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 (typically
3. Write to the PWM high and low byte registers to set the PWM value.
4. Write to the timer reload high and low byte registers to set the reload value (PWM
5. If appropriate, enable the timer interrupt and set the timer interrupt priority by writing
6. Configure the associated GPIO port pin for the timer output alternate function.
7. Write to the timer control register to enable the timer and initiate counting.
The PWM period is represented by the following equation:
If an initial starting value other than
registers, use the ONE-SHOT mode equation to determine the first PWM time-out period.
If TPOL bit is set to 0, the ratio of the PWM output high time to the total period is
represented by:
PWM Output High Time Ratio (%)
If TPOL bit is set to 1, the ratio of the PWM output high time to the total period is
represented by:
PWM Output High Time Ratio (%)
PWM Period (s)
0001H
PWM mode, counting always begins at the reset value of
period). The reload value must be greater than the PWM value.
to the relevant interrupt registers.
Disable the timer
Configure the timer for PWM mode
Set the prescale value
Set the initial logic level (high or low) and PWM high/low transition for the timer
output alternate function
). This only affects the first pass in PWM mode. After the first timer reset in
=
--------------------------------------------------------------------------- -
System Clock Frequency (Hz)
Reload Value
0001H
=
=
×
Reload Value PWM Value
----------------------------------------------------------------------- -
Prescale
--------------------------------- -
Reload Value
PWM Value
is loaded into the timer high and low byte
Reload Value
×
Z8 Encore!
100
0001H
Product Specification
.
®
×
F083A Series
100
Timers
71

Related parts for z8f083a