z8fmc16100 ZiLOG Semiconductor, z8fmc16100 Datasheet - Page 112

no-image

z8fmc16100

Manufacturer Part Number
z8fmc16100
Description
Z8 Encore Motor Control Flash Mcus
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z8fmc16100AKEG
Manufacturer:
LT
Quantity:
151
Part Number:
z8fmc16100AKEG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8fmc16100AKSG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8fmc16100QKEG
Manufacturer:
TOREX
Quantity:
2 000
PS024611-0408
Caution:
Reading the Timer Count Values
Timer 0 High and Low Byte Registers
Follow the steps below for configuring a timer for GATED mode and initiating the count:
1. Write to the Timer Control registers to:
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 appropriate, enable the timer interrupt and set the timer interrupt priority by writing
5. Configure the timer interrupt to be generated only at the input deassertion event, the
6. Configure the associated GPIO port pin for the Timer Input alternate function.
7. Write to the Timer Control 1 register to enable the timer.
8. The timer counts when the Timer Input is equal to the
The current count value in the timers can be read while counting (enabled). This Read has
no effect on timer operation. When the timer is enabled and the Timer High Byte register
is read, the contents of the Timer Low Byte register are placed into a holding register. A
subsequent Read from Timer Low Byte register returns the value in the holding register.
This operation allows accurate Reads of the full 16-bit timer count value while enabled.
When the timer is not enabled, a Read from the Timer Low Byte register returns the actual
value in the counter.
The Timer 0 High and Low Byte (T0H and T0L) registers
the current 16-bit timer count value. When the timer is enabled, a Read from T0H causes the
value in T0L to be stored in a temporary holding register. A Read from T0L always returns
this temporary register when the timer is enabled. When the timer is disabled, Reads from
the T0L are direct from this temporary register.
Writing to the Timer High and Low Byte registers while the timer is enabled is not
recommended. There are no temporary holding registers available for Write operations;
therefore, simultaneous 16-bit Writes are not possible.
(a) Disable the timer.
(b) Configure the timer for GATED mode.
(c) Set the prescale value.
(d) Select the active state of the Timer Input through the
setting only affects the first pass in GATED mode. After the first timer reset in
GATED mode, counting begins at the reset value of
to the relevant interrupt registers.
reload event, or both, by setting the
TICONFIG
field of the Timer Control 0 register.
Z8FMC16100 Series Flash MCU
0001h
(Table 53
TPOL
Reading the Timer Count Values
TPOL
.
Product Specification
bit.
bit.
and
Table
59) contain
100

Related parts for z8fmc16100