ATTINY12-8SU Atmel, ATTINY12-8SU Datasheet - Page 36

Microcontrollers (MCU) AVR 1K FLASH 64B EE 5V 8MHZ

ATTINY12-8SU

Manufacturer Part Number
ATTINY12-8SU
Description
Microcontrollers (MCU) AVR 1K FLASH 64B EE 5V 8MHZ
Manufacturer
Atmel
Datasheet

Specifications of ATTINY12-8SU

Processor Series
ATTINY1x
Core
AVR8
Data Bus Width
8 bit
Program Memory Type
Flash
Program Memory Size
1 KB
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
6
Number Of Timers
1
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Package / Case
SOIC
3rd Party Development Tools
EWAVR, EWAVR-BL
Development Tools By Supplier
ATAVRDRAGON, ATSTK500
Minimum Operating Temperature
- 40 C
Cpu Family
ATtiny
Device Core
AVR
Device Core Size
8b
Frequency (max)
8MHz
Interface Type
SPI
# I/os (max)
6
Number Of Timers - General Purpose
1
Operating Supply Voltage (typ)
5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
4V
Instruction Set Architecture
RISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
8
Package Type
SOIC EIAJ
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY12-8SU
Manufacturer:
ATMEL
Quantity:
5
I/O Port B
36
ATtiny11/12
All AVR ports have true read-modify-write functionality when used as general digital I/O
ports. This means that the direction of one port pin can be changed without unintention-
ally changing the direction of any other pin with the SBI and CBI instructions. The same
applies for changing drive value (if configured as output) or enabling/disabling of pull-up
resistors (if configured as input).
Port B is a 6-bit bi-directional I/O port.
Three I/O memory address locations are allocated for Port B, one each for the Data
Register – PORTB, $18, Data Direction Register – DDRB, $17, and the Port B Input
Pins – PINB, $16. The Port B Input Pins address is read only, while the Data Register
and the Data Direction Register are read/write.
Ports PB5..3 have special functions as described in the section “Pin Descriptions” on
page 5. If PB5 is not configured as external reset, it is input with no pull-up. On
ATtiny12, it can also output a logical zero, acting as an open-drain output. Note that,
since PB5 only has one possible output value, the output functionality of this pin is con-
trolled by the DDRB register alone. If PB4 and/or PB3 are not used for clock function,
they are I/O pins. All I/O pins have individually selectable pull-ups.
The Port B output buffers on PB0 to PB4 can sink 20 mA and thus drive LED displays
directly. On ATtiny12, PB5 can sink 12 mA. When pins PB0 to PB4 are used as inputs
and are externally pulled low, they will source current (I
activated.
The Port B pins with alternate functions are shown in Table 16:
Table 16. Port B Pins Alternate Functions
When the pins PB2..0 are used for the alternate function, the DDRB and PORTB regis-
ter has to be set according to the alternate function description. When PB5..3 are used
for alternate functions, the values in the corresponding DDRB and PORTB bits are
ignored.
Port Pin
PB0
PB1
PB2
PB3
PB4
PB5
Alternate Functions
AIN0 (Analog Comparator Positive Input)
MOSI (Data Input Line for Memory Downloading)
INT0 (External Interrupt0 Input)
AIN1 (Analog Comparator Negative Input)
MISO (Data Output Line for Memory Downloading)
T0 (Timer/Counter0 External Counter Input)
SCK (Serial Clock Input for Serial Programming)
XTAL1 (Oscillator Input)
XTAL2 (Oscillator Output)
RESET (External Reset Pin)
IL
) if the internal pull-ups are
Device
ATtiny11/12
ATtiny12
ATtiny11/12
ATtiny11/12
ATtiny12
ATtiny11/12
ATtiny12
ATtiny11/12
ATtiny11/12
ATtiny11/12
1006F–AVR–06/07

Related parts for ATTINY12-8SU