Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
AVR / datasheets / attiny_261_461_861.pdf
Скачиваний:
55
Добавлен:
20.03.2015
Размер:
2.26 Mб
Скачать

ATtiny261/461/861

15.1Register Description

15.1.1PLLCSR – PLL Control and Status Register

Bit

7

6

5

4

3

2

1

0

 

0x29 (0x49)

LSM

-

-

-

-

PCKE

PLLE

PLOCK

PLLCSR

 

 

 

 

 

 

 

 

 

 

Read/Write

R/W

R

R

R

R

R/W

R/W

R

 

Initial value

0

0

0

0

0

0

0/1

0

 

• Bit 7- LSM: Low Speed Mode

The Low Speed mode is selected, if the LSM bit is written to one, and then the fast peripheral clock is scaled down from 64 MHz to 32 MHz. As default the LSM bit is reset to zero, the Low Speed Mode is disabled and the fast peripheral clock is 64 MHz. The Low Speed Mode must be set, if the supply voltage is below 2.7 volts, because the Timer/Counter1 is not running fast enough on low voltage levels. It is recommended that the Timer/Counter1 is stopped whenever the LSM bit is written.

• Bit 6:3- Res : Reserved Bits

These bits are reserved bits in the ATtiny261/461/861 and always read as zero.

• Bit 2- PCKE: PCK Enable

The PCKE bit change the Timer/Counter1 clock source. When it is set, the asynchronous clock mode is enabled and fast 64 MHz (or 32 MHz in Low Speed Mode) PCK clock is used as a Timer/Counter1 clock source. If this bit is cleared, the synchronous clock mode is enabled, and system clock CK is used as Timer/Counter1 clock source. It is safe to set this bit only when the PLL is locked i.e the PLOCK bit is 1. Note that the PCKE bit can be set only, if the PLL has been enabled earlier. The PLL is enabled when the CKSEL fuses have been programmed to 0x0001 (the PLL clock mode is selected) or the PLLE bit has been set to one.

• Bit 1- PLLE: PLL Enable

When the PLLE is set, the PLL is started and if needed internal RC-oscillator is started as a PLL reference clock. If PLL is selected as a system clock source the value for this bit is always 1.

• Bit 0- PLOCK: PLL Lock Detector

When the PLOCK bit is set, the PLL is locked to the reference clock. The PLOCK bit should be ignored during initial PLL lock-in sequence when PLL frequency overshoots and undershoots, before reaching steady state. The steady state is obtained within 100 µs. After PLL lock-in it is recommended to check the PLOCK bit before enabling PCK for Timer/Counter1.

15.1.2TCCR1B – Timer/Counter1 Control Register B

Bit

7

6

5

4

3

2

1

0

 

0x2F (0x4F)

-

PSR1

DTPS11

DTPS10

CS13

CS12

CS11

CS10

TCCR1B

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

 

Initial value

0

0

0

0

0

0

0

0

 

Bit 7 - Res: Reserved Bit

Bit 6 - PSR1 : Prescaler Reset Timer/Counter1

89

2588B–AVR–11/06

When this bit is set (one), the Timer/Counter prescaler (TCNT1 is unaffected) will be reset. The bit will be cleared by hardware after the operation is performed. Writing a zero to this bit will have no effect. This bit will always read as zero.

• Bits 3:0 - CS13, CS12, CS11, CS10: Clock Select Bits 3, 2, 1, and 0

The Clock Select bits 3, 2, 1, and 0 define the prescaling source of Timer/Counter1.

Table 15-1. Timer/Counter1 Prescale Select

 

 

 

 

Asynchronous

Synchronous

CS13

CS12

CS11

CS10

Clocking Mode

Clocking Mode

 

 

 

 

 

 

0

0

0

0

T/C1 stopped

T/C1 stopped

 

 

 

 

 

 

0

0

0

1

PCK

CK

 

 

 

 

 

 

0

0

1

0

PCK/2

CK/2

 

 

 

 

 

 

0

0

1

1

PCK/4

CK/4

 

 

 

 

 

 

0

1

0

0

PCK/8

CK/8

 

 

 

 

 

 

0

1

0

1

PCK/16

CK/16

 

 

 

 

 

 

0

1

1

0

PCK/32

CK/32

 

 

 

 

 

 

0

1

1

1

PCK/64

CK/64

 

 

 

 

 

 

1

0

0

0

PCK/128

CK/128

 

 

 

 

 

 

1

0

0

1

PCK/256

CK/256

 

 

 

 

 

 

1

0

1

0

PCK/512

CK/512

 

 

 

 

 

 

1

0

1

1

PCK/1024

CK/1024

 

 

 

 

 

 

1

1

0

0

PCK/2048

CK/2048

 

 

 

 

 

 

1

1

0

1

PCK/4096

CK/4096

 

 

 

 

 

 

1

1

1

0

PCK/8192

CK/8192

 

 

 

 

 

 

1

1

1

1

PCK/16384

CK/16384

 

 

 

 

 

 

The Stop condition provides a Timer Enable/Disable function.

90 ATtiny261/461/861

2588B–AVR–11/06

Соседние файлы в папке datasheets