mc68hc05l28 Freescale Semiconductor, Inc, mc68hc05l28 Datasheet - Page 66

no-image

mc68hc05l28

Manufacturer Part Number
mc68hc05l28
Description
?exible General-purpose Microcomputer
Manufacturer
Freescale Semiconductor, Inc
Datasheet
6
6.2.3.2 Input capture register 2
The two 8-bit registers that make up the 16-bit input capture register 2 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
input edge bit (IEDG2). The most significant 8 bits are stored in the input capture high 2 register
at $24 and the least significant in the input capture low 2 register at $25.
An interrupt can accompany a capture if the corresponding interrupt enable bit (IC2IE in timer
control register 1 at $2C) is set.
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 synchronisation. 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 2 flag (IC2F) 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 ($24), the counter transfer is inhibited until the LSB ($25)
is also read. This 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
($25) does not inhibit the free-running counter transfer since the two actions occur on opposite
edges of the internal bus clock.
Reset does not affect the contents of the input capture register, except when exiting STOP mode.
MOTOROLA
6-10
Input capture high 2 (ICH2)
Input capture low 2 (ICL2)
Address
$0024
$0025
16-BIT PROGRAMMABLE TIMER
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
MC68HC05L28
bit 0
Unaffected
Unaffected
on reset
State
TPG

Related parts for mc68hc05l28