z8f1621 ZiLOG Semiconductor, z8f1621 Datasheet - Page 96
![no-image](/images/no-image-200.jpg)
z8f1621
Manufacturer Part Number
z8f1621
Description
High Performance 8-bit Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet
1.Z8F1621.pdf
(297 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
z8f1621AN020EG
Manufacturer:
Zilog
Quantity:
356
Company:
Part Number:
z8f1621AN020SG
Manufacturer:
Zilog
Quantity:
918
Company:
Part Number:
z8f1621PM020SG
Manufacturer:
Zilog
Quantity:
673
Company:
Part Number:
z8f1621VN020SG
Manufacturer:
Zilog
Quantity:
6
- Current page: 96 of 297
- Download datasheet (9Mb)
PS019921-0308
Follow the steps below for configuring a timer for PWM mode and initiating the PWM
operation:
1. Write to the Timer Control 1 register to:
2. Write to the Timer High and Low Byte registers to set the starting count value
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 desired, enable the timer interrupt and set the timer interrupt priority by writing to
6. Configure the associated GPIO port pin for the Timer Output alternate function.
7. Write to the Timer Control 1 register to enable the timer and initiate counting.
The PWM period is given by the following equation:
If an initial starting value other than
registers, the ONE-SHOT mode equation must be used to determine the first PWM time-
out period.
If TPOL is set to 0, the ratio of the PWM output High time to the total period is given by:
If TPOL is set to 1, the ratio of the PWM output High time to the total period is given by:
CAPTURE Mode
In CAPTURE mode, the current timer count value is recorded when the desired external
Timer Input transition occurs. The Capture count value is written to the Timer PWM High
and Low Byte Registers. The timer input is the system clock. The TPOL bit in the Timer
Control 1 register determines if the Capture occurs on a rising edge or a falling edge of the
Timer Input signal. When the Capture event occurs, an interrupt is generated and the timer
continues counting.
PWM Period (s)
PWM Output High Time Ratio (%)
PWM Output High Time Ratio (%)
–
–
–
–
(typically
reset in PWM mode, counting always begins at the reset value of
period). The Reload value must be greater than the PWM value.
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
0001H
=
------------------------------------------------------------------------
System Clock Frequency (Hz)
). This only affects the first pass in PWM mode. After the first timer
Reload Value
=
=
×
Prescale
--------------------------------
Reload Value
Reload Value PWM Value
-------------------------------------------------------------------- -
0001H
PWM Value
Reload Value
is loaded into the Timer High and Low Byte
×
–
100
Z8 Encore! XP
×
Product Specification
100
0001H
®
F64XX Series
.
Timers
82
Related parts for z8f1621
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![z8f1601](/images/no-image3.png)
Part Number:
Description:
Z8 Encore!? Microcontroller With Flash Memory And 10-bit A/d Converter
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![z8f2421pm020e](/images/no-image3.png)
Part Number:
Description:
Z8 Encore! Xp F64xx Series
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![z8fmc16100](/images/no-image3.png)
Part Number:
Description:
Z8 Encore Motor Control Flash Mcus
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![Z8F082A28100KIT](/images/no-image3.png)
Part Number:
Description:
Z8 Encore XP-R F08xA Series with eXtended Peripherals
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
![Z8F1602](/images/no-image3.png)
Part Number:
Description:
Z8 Encore Microcontrollers with Flash Memory and 10-Bit A/D Converter
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
![Z8FMC04100](/images/no-image3.png)
Part Number:
Description:
Z8 Encore-R Motor Control Flash MCUs
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
![Z8FMC16MCU](/images/no-image3.png)
Part Number:
Description:
Z8 Encore-R Motor Control Series
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
![Z86C8316PEC](/images/no-image3.png)
Part Number:
Description:
Z8 MCU MICROCONTROLLERS
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
![Z8F160x](/images/manufacturer_photos/0/7/729/zilog_tmb.jpg)
Part Number:
Description:
Z8 Encore / Microcontrollers with Flash Memory and 10 Bit A/D Converter
Manufacturer:
Zilog
Datasheet:
![Z86C83](/images/no-image3.png)
Part Number:
Description:
Z8 MCU MICROCONTROLLERS
Manufacturer:
Zilog.
Datasheet:
![ez80f915005modg](/images/no-image3.png)
Part Number:
Description:
Ez80f91 Mini Enet Module
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![z90231](/images/no-image3.png)
Part Number:
Description:
Z90233, Z90234, And Z90231 Ezvision 200 Television Controller
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![z90212](/images/no-image3.png)
Part Number:
Description:
Digital Television Controllers
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![z90209](/images/no-image3.png)
Part Number:
Description:
Television Controllers
Manufacturer:
ZiLOG Semiconductor
Datasheet:
![z90102](/images/no-image3.png)
Part Number:
Description:
40-pin Low-cost Digital Television Controller
Manufacturer:
ZiLOG Semiconductor
Datasheet: