ATTINY2313V-10SI Atmel, ATTINY2313V-10SI Datasheet - Page 118
![IC AVR MCU FLASH 2K 1.8V 20SOIC](/photos/6/80/68042/453-20-soic_sml.jpg)
ATTINY2313V-10SI
Manufacturer Part Number
ATTINY2313V-10SI
Description
IC AVR MCU FLASH 2K 1.8V 20SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Specifications of ATTINY2313V-10SI
Core Processor
AVR
Core Size
8-Bit
Speed
10MHz
Connectivity
SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
18
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATTINY2313V-10SI
Manufacturer:
ATMEL
Quantity:
560
Part Number:
ATTINY2313V-10SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
- Current page: 118 of 226
- Download datasheet (4Mb)
Data Transmission
– The USART
Transmitter
Sending Frames with
5 to 8 Data Bit
118
ATtiny2313
The USART Transmitter is enabled by setting the Transmit Enable (TXEN) bit in the UCSRB
Register. When the Transmitter is enabled, the normal port operation of the TxD pin is overrid-
den by the USART and given the function as the Transmitter’s serial output. The baud rate,
mode of operation and frame format must be set up once before doing any transmissions. If syn-
chronous operation is used, the clock on the XCK pin will be overridden and used as
transmission clock.
A data transmission is initiated by loading the transmit buffer with the data to be transmitted. The
CPU can load the transmit buffer by writing to the UDR I/O location. The buffered data in the
transmit buffer will be moved to the Shift Register when the Shift Register is ready to send a new
frame. The Shift Register is loaded with new data if it is in idle state (no ongoing transmission) or
immediately after the last stop bit of the previous frame is transmitted. When the Shift Register is
loaded with new data, it will transfer one complete frame at the rate given by the Baud Register,
U2X bit or by XCK depending on mode of operation.
The following code examples show a simple USART transmit function based on polling of the
Data Register Empty (UDRE) flag. When using frames with less than eight bits, the most signifi-
cant bits written to the UDR are ignored. The USART has to be initialized before the function can
be used. For the assembly code, the data to be sent is assumed to be stored in Register R16
Note:
The function simply waits for the transmit buffer to be empty by checking the UDRE flag, before
loading it with new data to be transmitted. If the Data Register Empty interrupt is utilized, the
interrupt routine writes the data into the buffer.
Assembly Code Example
C Code Example
USART_Transmit:
void USART_Transmit( unsigned char data )
{
}
; Wait for empty transmit buffer
sbis UCSRA,UDRE
rjmp USART_Transmit
; Put data (r16) into buffer, sends the data
out
ret
/* Wait for empty transmit buffer */
while ( !( UCSRA & (1<<UDRE)) )
/* Put data into buffer, sends the data */
UDR = data;
1. The example code assumes that the part specific header file is included.
For I/O Registers located in extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI”
instructions must be replaced with instructions that allow access to extended I/O. Typically
“LDS” and “STS” combined with “SBRS”, “SBRC”, “SBR”, and “CBR”.
UDR,r16
;
(1)
(1)
2543L–AVR–08/10
Related parts for ATTINY2313V-10SI
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATTINY2313-20PI](/photos/6/80/68043/313-20-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SI](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATtiny2313](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATTINY2313-20MI](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
ATMEL Corporation
Datasheet:
![ATTINY2313-20MU](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20MLF
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20PU](/photos/6/80/68043/313-20-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SU](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20PJ](/photos/6/80/68043/313-20-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SJ](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SUR](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20MUR](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20WQFN
Manufacturer:
Atmel
Datasheet:
![ATTIny2313-16MI](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
8-bit AVR Microcontroller with 2K Bytes In-System Programmable Flash
Manufacturer:
ATMEL Corporation
Datasheet:
![attiny2313v](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Attiny2313 8-bit With 2k Bytes Of In-system Programmable Flash
Manufacturer:
ATMEL Corporation
Datasheet: