Z8F16800144ZCOG Zilog, Z8F16800144ZCOG Datasheet - Page 111

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 CAPTURE mode and initiating the
count:
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 Reload High and Low Byte registers to set the Reload value.
6. Clear the Timer PWM High and Low Byte registers to
7. If required, enable the timer interrupt and set the timer interrupt priority by writing to
8. Configure the associated GPIO port pin for the Timer Input alternate function.
9. Write to the Timer Control 1 register to enable the timer and initiate counting.
In CAPTURE mode, the elapsed time from timer start to Capture event can be calculated
using the following equation:
CAPTURE RESTART Mode
In CAPTURE RESTART 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 counts timer clocks up to the 16-bit
Reload value. 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 count value in the Timer High and Low Byte
registers is reset to
register is set to indicate the timer interrupt is due to an input capture event.
TICONFIG.
(typically
software to determine if interrupts were generated by either a capture event or a
reload. If the PWM High and Low Byte registers still contain
interrupt, then the interrupt was generated by a Reload.
the relevant interrupt registers. By default, the timer interrupt will be generated for
both input capture and reload events. If required, configure the timer interrupt to be
generated only at the input capture event or the reload event by setting TICONFIG
field of the Timer Control 0 register.
Capture Elapsed Time (s)
Disable the timer
Configure the timer for CAPTURE mode
Set the prescale value
Set the Capture edge (rising or falling) for the Timer Input
0001H
0001H
).
and counting resumes. The INPCAP bit in Timer Control 0
P R E L I M I N A R Y
=
-----------------------------------------------------------------------------------------------------------
Capture Value - Start Value
Timer Clock Frequency (Hz)
Z8 Encore! XP
 Prescale
0000H
Product Specification
. This allows user
0000H
®
after the
F1680 Series
Timers
97

Related parts for Z8F16800144ZCOG