mc68hc908kx8 Freescale Semiconductor, Inc, mc68hc908kx8 Datasheet - Page 158

no-image

mc68hc908kx8

Manufacturer Part Number
mc68hc908kx8
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908kx8CDW
Manufacturer:
FSC
Quantity:
364
Part Number:
mc68hc908kx8CDW
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc68hc908kx8CDWE
Manufacturer:
FREESCALE
Quantity:
20 000
Company:
Part Number:
mc68hc908kx8CDWE
Quantity:
588
Part Number:
mc68hc908kx8MDWE
Manufacturer:
MOT
Quantity:
6 238
Company:
Part Number:
mc68hc908kx8VP
Quantity:
13
Timer Interface Module (TIM)
15.4.1 TIM Counter Prescaler
The TIM clock source can be one of the seven prescaler outputs. The prescaler generates seven clock
rates from the internal bus clock. The prescaler select bits, PS2–PS0, in the TIM status and control
register select the TIM clock source.
15.4.2 Input Capture
With the input capture function, the TIM can capture the time at which an external event occurs. When an
active edge occurs on the pin of an input capture channel, the TIM latches the contents of the TIM counter
into the TIM channel registers, TCHxH and TCHxL. The polarity of the active edge is programmable. Input
captures can generate TIM CPU interrupt requests.
15.4.3 Output Compare
With the output compare function, the TIM can generate a periodic pulse with a programmable polarity,
duration, and frequency. When the counter reaches the value in the registers of an output compare
channel, the TIM can set, clear, or toggle the channel pin. Output compares can generate TIM CPU
interrupt requests.
158
$0024
$0025
$0026
$0027
$0028
$0029
$002A
Addr.
Timer Channel 0 Status and
Timer Channel 1 Status and
Timer Channel 0 Register
Timer Channel 0 Register
Timer Channel 1 Register
Timer Channel 1 Register
Control Register (TSC0)
Control Register (TSC1)
Register Low (TMODL)
Timer Counter Modulo
Register Name
See page 165.
See page 165.
See page 168.
See page 168.
See page 165.
See page 168.
See page 168.
High (TCH0H)
High (TCH1H)
Low (TCH0L)
Low (TCH1L)
MC68HC908KX8 • MC68HC908KX2 • MC68HC08KX8 Data Sheet, Rev. 2.1
Figure 15-3. TIM I/O Register Summary (Continued)
Reset:
Reset:
Reset:
Reset:
Reset:
Reset:
Reset:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
CH0F
Bit 15
CH1F
Bit 15
Bit 7
Bit 7
Bit 7
Bit 7
1
0
0
0
0
= Unimplemented
CH0IE
CH1IE
14
14
6
6
1
0
6
0
6
MS0B
13
13
5
5
1
0
5
0
0
5
Indeterminate after reset
Indeterminate after reset
Indeterminate after reset
Indeterminate after reset
MS0A
MS1A
12
12
4
4
1
0
4
0
4
ELS0B
ELS1B
11
11
3
3
1
0
3
0
3
ELS0A
ELS1A
10
10
2
2
1
0
2
0
2
Freescale Semiconductor
TOV0
TOV1
1
1
1
0
9
1
0
9
1
CH0MAX
CH1MAX
Bit 0
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
1
0
0

Related parts for mc68hc908kx8