Freescale Semiconductor MC68HC08KH12 manual TIM Block Diagram, 163

Models: MC68HC08KH12

1 262
Download 262 pages 21.58 Kb
Page 163
Image 163

11.4 Functional Description

Figure 11-1shows the structure of the TIM. The central component of the TIM is the 16-bit TIM counter that can operate as a free-running counter or a modulo up-counter. The TIM counter provides the timing reference for the input capture and output compare functions. The TIM counter modulo registers, TMODH:TMODL, control the modulo value of the TIM counter. Software can read the TIM counter value at any time without affecting the counting sequence.

The two TIM channels are programmable independently as input capture or output compare channels.

INTERNAL BUS

PTE0/TCLK

TCLK

 

 

 

 

 

INTERNAL

PRESCALER SELECT

PRESCALER

 

 

BUS CLOCK

 

 

 

 

 

TSTOP

PS1

PS0

TRST

PS2

 

 

 

 

16-BIT COUNTER

 

TOF

 

 

 

16-BIT COMPARATOR

 

TOIE

 

 

 

TMODH:TMODL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOV0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CHANNEL 0

 

 

 

ELS0B

 

ELS0A

 

 

 

 

 

CH0MAX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-BIT COMPARATOR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCH0H:TCH0L

 

 

 

 

 

 

 

 

 

CH0F

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-BIT LATCH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MS0A

 

 

 

 

 

 

CH0IE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MS0B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOV1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CHANNEL 1

 

 

 

ELS1B

 

ELS1A

 

 

 

 

 

CH1MAX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-BIT COMPARATOR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCH1H:TCH1L

 

 

 

 

 

 

 

 

 

CH1F

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-BIT LATCH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MS1A

 

 

 

 

 

 

CH1IE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTERRUPT

LOGIC

PTE1

LOGIC

INTERRUPT

LOGIC

PTE2

LOGIC

INTERRUPT

LOGIC

PTE1/TCH0

PTE2/TCH1

 

Figure 11-1. TIM Block Diagram

MC68HC(7)08KH12 Rev. 1.1

Advance Information

 

 

 

 

Freescale Semiconductor

163

Page 163
Image 163
Freescale Semiconductor MC68HC08KH12 manual TIM Block Diagram, 163