ATTINY20-XU Atmel, ATTINY20-XU Datasheet - Page 49

MCU AVR 2KB FLASH 12MHZ 14TSSOP

ATTINY20-XU

Manufacturer Part Number
ATTINY20-XU
Description
MCU AVR 2KB FLASH 12MHZ 14TSSOP
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY20-XU

Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
12
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Processor Series
ATtiny
Core
AVR
Data Bus Width
8 bit
Data Ram Size
128 B
Interface Type
SPI, TWI
Maximum Clock Frequency
12 MHz
Number Of Programmable I/os
12
Number Of Timers
2
Operating Supply Voltage
3.3 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
Operating Temperature Range
- 40 C to + 85 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY20-XU
Manufacturer:
Atmel
Quantity:
904
10.2.7
10.3
8235B–AVR–04/11
Alternate Port Functions
Program Example
The following code example shows how to set port B pin 0 high, pin 1 low, and define the port
pins from 2 to 3 as input with a pull-up assigned to port pin 2. The resulting pin values are read
back again, but as previously discussed, a nop instruction is included to be able to read back the
value recently assigned to some of the pins.
Note:
Most port pins have alternate functions in addition to being general digital I/Os. In
below is shown how the port pin control signals from the simplified
be overridden by alternate functions.
Assembly Code Example
...
; Define pull-ups and set outputs high
; Define directions for port pins
ldi
ldi
ldi
out
out
out
; Insert nop for synchronization
nop
; Read port pins
in
...
See
“Code Examples” on page
r16,(1<<PUEB2)
r17,(1<<PB0)
r18,(1<<DDB1)|(1<<DDB0)
PUEB,r16
PORTB,r17
DDRB,r18
r16,PINB
6.
Figure 10-2 on page 45
ATtiny20
Figure 10-6
can
49

Related parts for ATTINY20-XU