MC68HC705SR3 MOTOROLA [Motorola, Inc], MC68HC705SR3 Datasheet - Page 47

no-image

MC68HC705SR3

Manufacturer Part Number
MC68HC705SR3
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller Units
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC705SR3CP
Manufacturer:
MOTOROLA
Quantity:
82
Part Number:
MC68HC705SR3CP
Manufacturer:
MOTCROLA
Quantity:
20 000
Part Number:
MC68HC705SR3CPE
Manufacturer:
FREESCALE
Quantity:
1 488
Part Number:
MC68HC705SR3CPE
Manufacturer:
FREESCA
Quantity:
100
Part Number:
MC68HC705SR3CPE
Manufacturer:
FREESCA
Quantity:
100
Part Number:
MC68HC705SR3CPE
Manufacturer:
FREESCA
Quantity:
100
Part Number:
MC68HC705SR3CPE
Manufacturer:
FREESCALE
Quantity:
20 000
Freescale Semiconductor, Inc.
6
TIMER
This section describes the operation of the 8-bit count-down timer in the MC68HC05SR3.
6.1
Timer Overview
6
The MC68HC05SR3 timer block diagram is shown in Figure 6-1. The timer contains a single 8-bit
software programmable count-down counter with a 7-bit software selectable prescaler. The
counter may be preset under software control and decrements towards zero. When the counter
decrements to zero, the timer interrupt flag (TIF bit in Timer Control Register, TCR) is set. Once
timer interrupt flag is set, an interrupt is generated to the CPU only if the TIM bit in the TCR and
I-bit in the CCR are cleared. When a interrupt is recognized, after completion of the current
instruction, the processor proceeds to store the appropriate registers on the stack and then
fetches the timer interrupt vector from locations $1FF6 and $1FF7.
The counter continues to count after it reaches zero, allowing the software to determine the
number of internal or external clocks since the timer interrupt flag was set. The counter may be
read at any time by the processor without disturbing the count. The contents of the counter
become stable prior to the read portion of a cycle and do not change during the read. The timer
interrupt flag remains set until cleared by the software. If a write occurs before the timer interrupt
is served, the interrupt is lost. The timer interrupt flag may also be used as a scanned status bit in
a non-interrupt mode of operation.
The prescaler is a 7-bit divider which is used to extend the maximum length of the timer. Bit 0, 1,
2 (PR0, PR1, PR2) of TCR are programmed to choose the appropriate prescaler output which is
used as the 8-bit counter clock input. The processor cannot write into or read from the prescaler;
however, its contents can be cleared to all zeros by writing to the PRER bit in the TCR. This will
allow for truncation-free counting.
The input clock for the timer sub-system is selectable from internal, external, or a combination of
internal and external sources. The TCEX and TINE bits in the Timer Control Register selects the
timer input clock.
TPG
MC68HC05SR3
TIMER
MOTOROLA
For More Information On This Product,
6-1
Go to: www.freescale.com

Related parts for MC68HC705SR3