ATtiny85 Atmel Corporation, ATtiny85 Datasheet - Page 93

no-image

ATtiny85

Manufacturer Part Number
ATtiny85
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATtiny85

Flash (kbytes)
8 Kbytes
Pin Count
8
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
# Of Touch Channels
3
Hardware Qtouch Acquisition
No
Max I/o Pins
6
Ext Interrupts
6
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
4
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.5
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
5
Pwm Channels
6
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATtiny85-15SZ
Manufacturer:
ATMEL
Quantity:
30
Part Number:
ATtiny85-20PU
Manufacturer:
CUI
Quantity:
1 000
Part Number:
ATtiny85-20SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATtiny85V-10SH
Manufacturer:
Intel
Quantity:
62
Part Number:
ATtiny85V-10SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
12.3.2
2586N–AVR–04/11
GTCCR – General Timer/Counter1 Control Register
Table 12-5.
The Stop condition provides a Timer Enable/Disable function.
• Bit 6 – PWM1B: Pulse Width Modulator B Enable
When set (one) this bit enables PWM mode based on comparator OCR1B in Timer/Counter1
and the counter value is reset to $00 in the CPU clock cycle after a compare match with OCR1C
register value.
• Bits 5:4 – COM1B[1:0]: Comparator B Output Mode, Bits 1 and 0
The COM1B1 and COM1B0 control bits determine any output pin action following a compare
match with compare register B in Timer/Counter1. Since the output pin action is an alternative
function to an I/O port, the corresponding direction control bit must be set (one) in order to con-
trol an output pin.
In Normal mode, the COM1B1 and COM1B0 control bits determine the output pin actions that
affect pin PB4 (OC1B) as described in
mode.
Table 12-6.
Bit
0x2C
Read/Write
Initial value
COM1B1
CS13
0
0
1
1
0
0
0
0
1
1
1
1
1
1
1
1
Timer/Counter1 Prescale Select (Continued)
TSM
Comparator B Mode Select in Normal Mode
R/W
COM1B0
7
0
0
1
0
1
CS12
1
1
1
1
0
0
0
0
1
1
1
1
PWM1B
R/W
6
0
Description
Timer/Counter Comparator B disconnected from output pin OC1B.
Toggle the OC1B output line.
Clear the OC1B output line.
Set the OC1B output line
COM1B1
CS11
R/W
0
0
1
1
0
0
1
1
0
0
1
1
5
0
Table
COM1B0
R/W
4
0
12-6. Note that OC1B is not connected in normal
CS10
0
1
0
1
0
1
0
1
0
1
0
1
FOC1B
W
3
0
Asynchronous
Clocking Mode
PCK/8
PCK/16
PCK/32
PCK/64
PCK/128
PCK/256
PCK/512
PCK/1024
PCK/2048
PCK/4096
PCK/8192
PCK/16384
FOC1A
W
2
0
ATtiny25/45/85
PSR1
R/W
1
0
Synchronous
Clocking Mode
CK/8
CK/16
CK/32
CK/64
CK/128
CK/256
CK/512
CK/1024
CK/2048
CK/4096
CK/8192
CK/16384
PSR0
R/W
0
0
GTCCR
93

Related parts for ATtiny85