ATTINY26L8SU SL383 Atmel, ATTINY26L8SU SL383 Datasheet - Page 75

no-image

ATTINY26L8SU SL383

Manufacturer Part Number
ATTINY26L8SU SL383
Description
MCU 8-Bit ATtiny AVR RISC 2KB Flash 3.3V/5V 20-Pin SOIC T/R
Manufacturer
Atmel
Datasheet
Timer/Counter1 Output
Compare RegisterB – OCR1B
Timer/Counter1 Output
Compare RegisterC – OCR1C
PLL Control and Status
Register – PLLCSR
1477J–AVR–06/07
ware write that sets TCNT1 and OCR1A to the same value does not generate a
compare match.
A compare match will set the compare interrupt flag OCF1A after a synchronization
delay following the compare event.
The Output Compare Register B is an 8-bit read/write register.
The Timer/Counter Output Compare Register B contains data to be continuously com-
pared with Timer/Counter1. Actions on compare matches are specified in TCCR1A. A
compare match does only occur if Timer/Counter1 counts to the OCR1B value. A soft-
ware write that sets TCNT1 and OCR1B to the same value does not generate a
compare match.
A compare match will set the compare interrupt flag OCF1B after a synchronization
delay following the compare event.
The Output Compare Register C is an 8-bit read/write register.
The Timer/Counter Output Compare Register C contains data to be continuously com-
pared with Timer/Counter1. A compare match does only occur if Timer/Counter1 counts
to the OCR1C value. A software write that sets TCNT1 and OCR1C to the same value
does not generate a compare match.
If the CTC1 bit in TCCR1B is set, a compare match will clear TCNT1 and set an Over-
flow Interrupt Flag (TOV1). The flag is set after a synchronization delay following the
compare event.
This register has the same function in normal mode and PWM mode.
• Bit 7..3 – Res: Reserved Bits
These bits are reserved bits in the ATtiny26(L) and always read as zero.
• Bit 2 – PCKE: PCK Enable
The PCKE bit change the Timer/Counter1 clock source. When it is set, the asynchro-
nous clock mode is enabled and fast 64 MHz PCK clock is used as 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. This bit can be set only if PLLE bit is
set. It is safe to set this bit only when the PLL is locked i.e., the PLOCK bit is 1.
• Bit 1 – PLLE: PLL Enable
Bit
$2C ($4C)
Read/Write
Initial Value
Bit
$2B ($4B)
Read/Write
Initial Value
Bit
$29 ($29)
Read/Write
Initial Value
MSB
MSB
R/W
R/W
R
7
0
7
0
7
0
R/W
R/W
R
6
0
6
0
6
0
R/W
R/W
R
5
0
5
0
5
0
R/W
R/W
R
4
0
4
0
4
0
R/W
R/W
R
3
0
3
0
3
0
PCKE
R/W
R/W
R/W
2
0
2
0
2
0
PLLE
R/W
R/W
R/W
0/1
1
0
1
0
1
ATtiny26(L)
PLOCK
LSB
LSB
R/W
R/W
R
0
0
0
0
0
0
PLLCSR
OCR1B
OCR1C
75

Related parts for ATTINY26L8SU SL383