ATTINY12 ATMEL Corporation, ATTINY12 Datasheet - Page 45

no-image

ATTINY12

Manufacturer Part Number
ATTINY12
Description
8-bit AVR Microcontroller with 1K Byte Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY12-8PC
Manufacturer:
ATM
Quantity:
27 705
Part Number:
ATTINY12-8PC
Manufacturer:
AD
Quantity:
56
Part Number:
ATTINY12-8PC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY12-8SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY12-8SI
Manufacturer:
ATMEL
Quantity:
1 729
Part Number:
ATTINY12-8SU
Manufacturer:
ATMEL
Quantity:
5
Part Number:
ATTINY128SC
Manufacturer:
ATMEL
Quantity:
7 373
Company:
Part Number:
ATTINY12L-4PC
Quantity:
50
Part Number:
ATTINY12L-4SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY12L-4SU
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ATTINY12V-1SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Alternate Functions of Port B
1006D–AVR–07/03
All port B pins are connected to a pin change detector that can trigger the pin change
interrupt. See “Pin Change Interrupt” on page 27 for details. In addition, Port B has the
following alternate functions:
• RESET - Port B, Bit 5
When the RSTDISBL fuse is unprogrammed, this pin serves as external reset. When
the RSTDISBL fuse is programmed, this pin is a general input pin. In ATtiny12, it is also
an open-drain output pin.
• XTAL2 - Port B, Bit 4
XTAL2, oscillator output. When this pin is not used for clock purposes, it is a general I/O
pin. Refer to section “Pin Descriptions” on page 5 for details.
• XTAL1 - Port B, Bit 3
XTAL1, oscillator or clock input. When this pin is not used for clock purposes, it is a gen-
eral I/O pin. Refer to section “Pin Descriptions” on page 5 for details.
• T0/SCK - Port B, Bit 2
This pin can serve as the external counter clock input. See the timer/counter description
for further details. If external timer/counter clocking is selected, activity on this pin will
clock the counter even if it is configured as an output. In ATtiny12 and serial program-
ming mode, this pin serves as the serial clock input, SCK.
• INT0/AIN1/MISO - Port B, Bit 1
This pin can serve as the external interrupt0 input. See the interrupt description for
details on how to enable this interrupt. Note that activity on this pin will trigger the inter-
rupt even if the pin is configured as an output. This pin also serves as the negative input
of the on-chip Analog Comparator. In ATtiny12 and serial programming mode, this pin
serves as the serial data input, MISO.
• AIN0/MOSI - Port B, Bit 0
This pin also serves as the positive input of the on-chip Analog Comparator. In ATtiny12
and serial programming mode, this pin serves as the serial data output, MOSI.
During Power-down Mode, the schmitt triggers of the digital inputs are disconnected on
the Analog Comparator input pins. This allows an analog voltage close to V
present during power-down without causing excessive power consumption.
ATtiny11/12
CC
/2 to be
45

Related parts for ATTINY12