ATtiny2313 Atmel Corporation, ATtiny2313 Datasheet - Page 30

no-image

ATtiny2313

Manufacturer Part Number
ATtiny2313
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATtiny2313

Flash (kbytes)
2 Kbytes
Pin Count
20
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
# Of Touch Channels
4
Hardware Qtouch Acquisition
No
Max I/o Pins
18
Ext Interrupts
18
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.12
Eeprom (bytes)
128
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
4
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATtiny2313-20
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATtiny2313-20MI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATtiny2313-20MU
Manufacturer:
原装ATMEL
Quantity:
20 000
Part Number:
ATtiny2313-20PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATtiny2313-20PU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny2313-20PU
Quantity:
6 000
Company:
Part Number:
ATtiny2313-20PU
Quantity:
53
Part Number:
ATtiny2313-20SI
Manufacturer:
AT
Quantity:
95
Part Number:
ATtiny2313-20SU
Manufacturer:
ATMEL
Quantity:
441
Part Number:
ATtiny2313-20SU
Manufacturer:
AT
Quantity:
1 212
Part Number:
ATtiny2313A-MMH
Manufacturer:
SAMSUNG
Quantity:
101
Part Number:
ATtiny2313A-MU
Manufacturer:
ATMEL
Quantity:
313
Company:
Part Number:
ATtiny2313A-MU
Quantity:
20 000
Company:
Part Number:
ATtiny2313A-PU
Quantity:
1 800
Power
Management
and Sleep
Modes
MCU Control Register
– MCUCR
Idle Mode
30
ATtiny2313
Sleep modes enable the application to shut down unused modules in the MCU, thereby saving
power. The AVR provides various sleep modes allowing the user to tailor the power consump-
tion to the application’s requirements.
To enter any of the three sleep modes, the SE bit in MCUCR must be written to logic one and a
SLEEP instruction must be executed. The SM1 and SM0 bits in the MCUCR Register select
which sleep mode (Idle, Power-down, or Standby) will be activated by the SLEEP instruction.
See
the MCU wakes up. The MCU is then halted for four cycles in addition to the start-up time, exe-
cutes the interrupt routine, and resumes execution from the instruction following SLEEP. The
contents of the register file and SRAM are unaltered when the device wakes up from sleep. If a
reset occurs during sleep mode, the MCU wakes up and executes from the Reset Vector.
Figure 11 on page 22
tion. The figure is helpful in selecting an appropriate sleep mode.
The Sleep Mode Control Register contains control bits for power management.
• Bits 6, 4 – SM1..0: Sleep Mode Select Bits 1 and 0
These bits select between the five available sleep modes as shown in
Table 13. Sleep Mode Select
Note:
• Bit 5 – SE: Sleep Enable
The SE bit must be written to logic one to make the MCU enter the sleep mode when the SLEEP
instruction is executed. To avoid the MCU entering the sleep mode unless it is the programmer’s
purpose, it is recommended to write the Sleep Enable (SE) bit to one just before the execution of
the SLEEP instruction and to clear it immediately after waking up.
When the SM1..0 bits are written to 00, the SLEEP instruction makes the MCU enter Idle mode,
stopping the CPU but allowing the UART, Analog Comparator, ADC, USI, Timer/Counters,
Watchdog, and the interrupt system to continue operating. This sleep mode basically halts
clk
Idle mode enables the MCU to wake up from external triggered interrupts as well as internal
ones like the Timer Overflow and UART Transmit Complete interrupts. If wake-up from the Ana-
log Comparator interrupt is not required, the Analog Comparator can be powered down by
setting the ACD bit in the Analog Comparator Control and Status Register – ACSR. This will
reduce power consumption in Idle mode.
Bit
Read/Write
Initial Value
CPU
Table 13
SM1
0
0
1
1
and clk
1. Standby mode is only recommended for use with external crystals or resonators.
FLASH
for a summary. If an enabled interrupt occurs while the MCU is in a sleep mode,
PUD
R/W
7
0
SM0
, while allowing the other clocks to run.
0
1
0
1
presents the different clock systems in the ATtiny2313, and their distribu-
SM1
R/W
6
0
Sleep Mode
Idle
Power-down
Standby
Power-down
R/W
SE
5
0
SM0
R/W
0
4
ISC11
R/W
3
0
ISC10
R/W
2
0
ISC01
R/W
1
0
Table
ISC00
R/W
0
0
13.
MCUCR
2543L–AVR–08/10

Related parts for ATtiny2313