Z8F160x Zilog, Z8F160x Datasheet - Page 83
Z8F160x
Manufacturer Part Number
Z8F160x
Description
Z8 Encore / Microcontrollers with Flash Memory and 10 Bit A/D Converter
Manufacturer
Zilog
Datasheet
1.Z8F160X.pdf
(246 pages)
- Current page: 83 of 246
- Download datasheet (2Mb)
PS017610-0404
2. Write to the Timer High and Low Byte registers to set the starting count value. This
3. Write to the Timer Reload High and Low Byte registers to set the Reload value.
4. If desired, enable the timer interrupt and set the timer interrupt priority by writing to
5. Configure the associated GPIO port pin for the Timer Input alternate function.
6. Write to the Timer Control register to enable the timer.
7. Assert the Timer Input signal to initiate the counting.
Capture/Compare Mode
In Capture/Compare mode, the timer begins counting on the first external Timer Input
transition. The desired transition (rising edge or falling edge) is set by the TPOL bit in the
Timer Control Register. The timer input is the system clock.
Every subsequent desired transition (after the first) of the Timer Input signal captures the
current count value. The Capture value is written to the Timer PWM High and Low Byte
Registers. When the Capture event occurs, an interrupt is generated, the count value in the
Timer High and Low Byte registers is reset to
If no Capture event occurs, the timer counts up to the 16-bit Compare value stored in the
Timer Reload High and Low Byte registers. Upon reaching the Compare value, the timer
generates an interrupt, the count value in the Timer High and Low Byte registers is reset to
0001H and counting resumes.
The steps for configuring a timer for Capture/Compare mode and initiating the count 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
3. Write to the Timer Reload High and Low Byte registers to set the Compare value.
4. If desired, enable the timer interrupt and set the timer interrupt priority by writing to
–
–
only affects the first pass in Gated mode. After the first timer reset in Gated mode,
counting always begins at the reset value of
the relevant interrupt registers.
–
–
–
–
(typically
the relevant interrupt registers.
Configure the timer for Gated mode.
Set the prescale value.
Disable the timer
Configure the timer for Capture/Compare mode.
Set the prescale value.
Set the Capture edge (rising or falling) for the Timer Input.
0001H
).
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
0001H
0001H
, and counting resumes.
.
Z8 Encore!
Timers
®
65
Related parts for Z8F160x
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Z8 Encore!? Microcontroller With Flash Memory And 10-bit A/d Converter
Manufacturer:
ZiLOG Semiconductor
Datasheet:
Part Number:
Description:
Z8 Encore! Xp F64xx Series
Manufacturer:
ZiLOG Semiconductor
Datasheet:
Part Number:
Description:
Z8 Encore Motor Control Flash Mcus
Manufacturer:
ZiLOG Semiconductor
Datasheet:
Part Number:
Description:
Z8 Encore XP-R F08xA Series with eXtended Peripherals
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
Part Number:
Description:
Z8 Encore Microcontrollers with Flash Memory and 10-Bit A/D Converter
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
Part Number:
Description:
Z8 Encore-R Motor Control Flash MCUs
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
Part Number:
Description:
Z8 Encore-R Motor Control Series
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
Part Number:
Description:
Z8 MCU MICROCONTROLLERS
Manufacturer:
ZILOG [Zilog, Inc.]
Datasheet:
Part Number:
Description:
Z8 MCU MICROCONTROLLERS
Manufacturer:
Zilog.
Datasheet:
Part Number:
Description:
Communication Controllers, ZILOG INTELLIGENT PERIPHERAL CONTROLLER (ZIP)
Manufacturer:
Zilog, Inc.
Datasheet:
Part Number:
Description:
KIT DEV FOR Z8 ENCORE 16K TO 64K
Manufacturer:
Zilog
Datasheet:
Part Number:
Description:
KIT DEV Z8 ENCORE XP 28-PIN
Manufacturer:
Zilog
Datasheet:
Part Number:
Description:
DEV KIT FOR Z8 ENCORE 8K/4K
Manufacturer:
Zilog
Datasheet:
Part Number:
Description:
KIT DEV Z8 ENCORE XP 28-PIN
Manufacturer:
Zilog
Datasheet: