z8f083a ZiLOG Semiconductor, z8f083a Datasheet - Page 87

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
and counting resumes. The INPCAP bit in TxCTL1 register is set to indicate, the timer
interrupt is caused by an input Capture event.
If no Capture event occurs, the timer counts up to 16-bit compare value stored in the timer
reload high and low byte registers. On reaching the reload value, the timer generates an
interrupt, the count value in the timer high and low byte registers is reset to
counting resumes. The INPCAP bit in TxCTL1 register is cleared to indicate the timer
interrupt is not caused by an input Capture event.
The steps for configuring a timer for CAPTURE RESTART mode and for 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 (typically
3. Write to the timer reload high and low byte registers to set the reload value.
4. Clear the timer PWM high and low byte registers to 0000H. This allows user software
5. Enable the timer interrupt, if appropriate, and set the timer interrupt priority by writing
6. Configure the associated GPIO port pin for the timer input alternate function.
7. Write to the timer control register to enable the timer and initiate counting.
In CAPTURE mode, the elapsed time between the timer start and the Capture event is
calculated using the following equation:
Capture Elapsed Time (s)
0001H
to determine if interrupts are generated by either a Capture event or a reload. If the
PWM high and low byte registers still contain 0000H after the interrupt, the interrupt
were generated by a reload.
to the relevant interrupt registers. By default, the timer interrupt is generated for both
input Capture and Reload events. You configure the timer interrupt to be generated
only at the input Capture event or the Reload event by setting TICONFIG field of the
TxCTL1 register.
Disable the timer.
Configure the timer for CAPTURE RESTART mode. Setting the mode also
involves writing to TMODEHI bit in TxCTL1 register.
Set the prescale value.
Set the capture edge (rising or falling) for the timer input.
).
=
(
----------------------------------------------------------------------------------------------------
Capture Value Start Value
System Clock Frequency (Hz)
Z8 Encore!
)
Product Specification
×
Prescale
®
F083A Series
0001H
and
Timers
75

Related parts for z8f083a