Intel 8XC196MC, 8XC196MD, 8XC196MH manual T1CONTROL

Models: 8XC196MD 8XC196MH 8XC196MC

1 579
Download 579 pages 24.12 Kb
Page 530
Image 530

REGISTERS

T1CONTROL

T1CONTROL

Address:

1F78H

 

Reset State:

00H

The timer 1 control (T1CONTROL) register determines the clock source, counting direction, and count rate for timer 1.

7

CE

UD

M2

M1

 

 

 

 

0

M0

P2

P1

P0

 

 

 

 

Bit

Bit

 

 

 

 

Function

 

Number

Mnemonic

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

CE

Counter Enable

 

 

 

 

 

This bit enables or disables the timer. From reset, the timers are

 

 

disabled and not free running.

 

 

 

 

0

= disables timer

 

 

 

 

 

1

= enables timer

 

 

 

 

 

 

 

 

 

 

6

UD

Up/Down

 

 

 

 

 

 

This bit determines the timer counting direction, in selected modes (see

 

 

mode bits, M2:0).

 

 

 

 

 

0

= count down

 

 

 

 

 

1

= count up

 

 

 

 

 

 

 

 

 

5:3

M2:0

EPA Clock Direction Mode Bits

 

 

 

 

These bits determine the timer clocking source and direction control

 

 

source.

 

 

 

 

 

 

M2

M1

M0

Clock Source

Direction Source

 

 

0

 

0

0

FXTAL1/4

UD bit (T1CONTROL.6)

 

 

X

 

0

1

T1CLK pin

UD bit (T1CONTROL.6)

 

 

0

 

1

0

FXTAL1/4

T1DIR pin

 

 

0

 

1

1

T1CLK pin

T1DIR pin

 

 

1

 

1

1

quadrature clocking using T1CLK and T1DIR

 

 

 

If an external clock is selected, the timer counts on both the rising

 

 

 

 

and falling edges of the clock.

 

 

 

 

 

 

 

2:0

P2:0

EPA Clock Prescaler Bits

 

 

 

 

These bits determine the clock prescaler value.

 

 

 

P2

P1

P0

Prescaler Divisor

Resolution

 

 

0

 

0

0

divide by 1 (disabled)

250 ns

 

 

0

 

0

1

divide by 2

 

500 ns

 

 

0

 

1

0

divide by 4

 

1 µs

 

 

0

 

1

1

divide by 8

 

2 µs

 

 

1

 

0

0

divide by 16

 

4 µs

 

 

1

 

0

1

divide by 32

 

8 µs

 

 

1

 

1

0

divide by 64

 

16 µs

 

 

1

 

1

1

enable T1RELOAD

 

 

 

At 16 MHz. Use the formula on page 11-6 to calculate the resolution

 

 

 

 

at other frequencies.

 

 

 

 

 

 

 

 

 

 

 

C-53

Page 530
Image 530
Intel 8XC196MC, 8XC196MD, 8XC196MH manual T1CONTROL