beautypg.com

Atmega162/v – Rainbow Electronics ATmega162V User Manual

Page 131

background image

131

ATmega162/V

2513E–AVR–09/03

• Bit 2:0 – CSn2:0: Clock Select

The three Clock Select bits select the clock source to be used by the Timer/Counter, see
Figure 55 and Figure 56.

If external pin modes are used for the Timer/Counter1, transitions on the T1 pin will
clock the counter even if the pin is configured as an output. This feature allows software
control of the counting..

Table 57. Clock Select Bit Description Timer/Counter1

CS12

CS11

CS10

Description

0

0

0

No clock source. (Timer/Counter stopped).

0

0

1

clk

I/O

/1 (No prescaling)

0

1

0

clk

I/O

/8 (From prescaler)

0

1

1

clk

I/O

/64 (From prescaler)

1

0

0

clk

I/O

/256 (From prescaler)

1

0

1

clk

I/O

/1024 (From prescaler)

1

1

0

External clock source on T1 pin. Clock on falling edge.

1

1

1

External clock source on T1 pin. Clock on rising edge.

Table 58. Clock Select Bit Description Timer/Counter3

CS32

CS31

CS30

Description

0

0

0

No clock source. (Timer/Counter stopped).

0

0

1

clk

I/O

/ 1 (No prescaling)

0

1

0

clk

I/O

/ 8 (From prescaler).

0

1

1

clk

I/O

/ 64 (From prescaler).

1

0

0

clk

I/O

/ 256 (From prescaler).

1

0

1

clk

I/O

/ 1024 (From prescaler).

1

1

0

clk

I/O

/ 16 (From prescaler).

1

1

1

clk

I/O

/ 32 (From prescaler).