mc68hc05bs8 Freescale Semiconductor, Inc, mc68hc05bs8 Datasheet - Page 49

no-image

mc68hc05bs8

Manufacturer Part Number
mc68hc05bs8
Description
Mc68hc05 Family Of Low-cost Single-chip Microcontrollers.
Manufacturer
Freescale Semiconductor, Inc
Datasheet
The two 8-bit registers that make up the 16-bit input capture register, are read-only, and are used
to latch the value of the free-running counter after the corresponding input capture edge detector
senses a valid transition. The level transition that triggers the counter transfer is defined by the
corresponding input edge bit (IEDG). Reset does not affect the contents of the input capture
register.
The result obtained from an input capture will be one greater than the value of the free-running
counter on the rising edge of the internal bus clock preceding the external transition. This delay is
required for internal synchronization. Resolution is one count of the free-running counter, which is
four internal bus clock cycles.
The free-running counter contents are transferred to the input capture register on each valid signal
transition whether the input capture flag (ICF) is set or clear. The input capture register always
contains the free-running counter value that corresponds to the most recent input capture.After a
read of the input capture register MSB ($14), the counter transfer is inhibited until the LSB ($15)
is also read. This characteristic causes the time used in the input capture software routine and its
interaction with the main program to determine the minimum pulse period. A read of the input
capture register LSB ($15) does not inhibit the free-running counter transfer since they occur on
opposite edges of the internal bus clock.
6.1.4
The TCR is a read/write register containing five control bits. Four bits control interrupts associated
with each of the four flag bits found in the Timer Status register. The other bit controls which edge
is significant to the input capture edge detector. The Timer Control register and the free-running
counter are the only sections of the timer affected by reset.
Definition of each bit is as follows:
ICIE - Input Capture Interrupt Enable
OCIE - Output Compare Interrupt Enable
MC68HC05BS8
1 (set)
0 (clear) –
1 (set)
0 (clear) –
TCR
Timer Control Register
Input Capture interrupt enabled.
Input Capture interrupt disabled.
Output Compare interrupt enabled.
Output Compare interrupt disabled.
Address bit 7
$0012
ICIE
OCIE
bit 6
TIMERS
TOIE
bit 5
bit 4
bit 3
bit 2
IEDG
bit 1
OLVL 0000 00u1
bit 0
on reset
State
TPG
6

Related parts for mc68hc05bs8