Z8F16800144ZCOG Zilog, Z8F16800144ZCOG Datasheet - Page 108

KIT DEV FOR Z8F642 MCU 44 PIN

Z8F16800144ZCOG

Manufacturer Part Number
Z8F16800144ZCOG
Description
KIT DEV FOR Z8F642 MCU 44 PIN
Manufacturer
Zilog
Series
Z8 Encore!®r
Type
MCUr
Datasheets

Specifications of Z8F16800144ZCOG

Contents
Hardware, Software and Documentation
For Use With/related Products
Z8F642
For Use With
269-4661 - KIT ACC ETHERNET SMART CABLE
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
269-4678
PS025011-1010
Follow the steps below for configuring a timer for PWM Single Output mode and
initiating the PWM operation:
1. Write to the Timer Control 1 register to:
2. Write to the Timer Control 2 register to choose the timer clock source.
3. Write to the Timer Control 0 register to set the timer interrupt configuration field
4. Write to the Timer High and Low Byte registers to set the starting count value
5. Write to the Timer PWM0 High and Low Byte registers to set the PWM value.
6. Write to the Timer Reload High and Low Byte registers to set the Reload value (PWM
7. If desired, enable the timer interrupt and set the timer interrupt priority by writing to
8. Configure the associated GPIO port pin for the Timer Output alternate function.
9. 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 
timeout 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:
PWM Output High Time Ratio (%)
TICONFIG.
(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.
PWM Output High Time Ratio (%)
PWM Period (s)
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
=
). This only affects the first pass in PWM mode. After the first timer
-------------------------------------------------------------------------- -
Timer Clock Frequency (Hz)
Reload Value Prescale
P R E L I M I N A R Y
=
=
0001H
Reload Value - PWM Value
------------------------------------------------------------------------ -
----------------------------------- -
Reload Value
PWM Value
is loaded into the Timer High and Low Byte
Reload Value
100
Z8 Encore! XP
Product Specification
100
0001H
®
F1680 Series
.
Timers
94

Related parts for Z8F16800144ZCOG