参数资料
型号: ATTINY2313A-MUR
厂商: Atmel
文件页数: 37/172页
文件大小: 0K
描述: MCU AVR 2K FLASH 20MHZ 20QFN
产品培训模块: tinyAVR Introduction
标准包装: 6,000
系列: AVR® ATtiny
核心处理器: AVR
芯体尺寸: 8-位
速度: 20MHz
连通性: I²C,SPI,UART/USART
外围设备: 欠压检测/复位,POR,PWM,WDT
输入/输出数: 18
程序存储器容量: 2KB(1K x 16)
程序存储器类型: 闪存
EEPROM 大小: 128 x 8
RAM 容量: 128 x 8
电压 - 电源 (Vcc/Vdd): 1.8 V ~ 5.5 V
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 20-WFQFN 裸露焊盘
包装: 带卷 (TR)
131
8246B–AVR–09/11
ATtiny2313A/4313
change the state of the receive buffer FIFO and consequently the TXB8, FE, DOR and UPE bits,
which all are stored in the FIFO, will change.
The following code example shows a simple USART receive function that handles both nine bit
characters and the status bits.
Note:
Assembly Code Example(1)
USART_Receive:
; Wait for data to be received
sbis
UCSRA, RXC
rjmp
USART_Receive
; Get status and 9th bit, then data from buffer
in
r18, UCSRA
in
r17, UCSRB
in
r16, UDR
; If error, return -1
andi
r18,(1<<FE)|(1<<DOR)|(1<<UPE)
breq
USART_ReceiveNoError
ldi
r17, HIGH(-1)
ldi
r16, LOW(-1)
USART_ReceiveNoError:
; Filter the 9th bit, then return
lsr
r17
andi
r17, 0x01
ret
C Code Example(1)
unsigned int
USART_Receive( void )
{
unsigned char
status, resh, resl;
/* Wait for data to be received */
while
( !(UCSRA & (1<<RXC)) )
;
/* Get status and 9th bit, then data */
/* from buffer */
status = UCSRA;
resh = UCSRB;
resl = UDR;
/* If error, return -1 */
if
( status & (1<<FE)|(1<<DOR)|(1<<UPE) )
return
-1;
/* Filter the 9th bit, then return */
resh = (resh >> 1) & 0x01;
return
((resh << 8) | resl);
}
相关PDF资料
PDF描述
VE-BWX-IX CONVERTER MOD DC/DC 5.2V 75W
ADG451BR IC SWITCH QUAD SPST 16SOIC
ATTINY44A-MUR MCU AVR 4KB FLASH 20MHZ 20QFN
VE-BW0-IX CONVERTER MOD DC/DC 5V 75W
ADG513BNZ IC SWITCH QUAD SPST 16DIP
相关代理商/技术参数
参数描述
ATTINY2313A-PU 功能描述:8位微控制器 -MCU 2K FLASH 128B EE 128B SRAM 1 UART RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ATTINY2313A-SU 功能描述:8位微控制器 -MCU 2K FLASH 128B EE 128B SRAM 1 UART RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ATTINY2313A-SUR 功能描述:8位微控制器 -MCU AVR 2K FLSH 128B EE 128B SRAM 1UART20MHz RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ATTINY2313V 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY2313V_06 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with 2K Bytes In-System Programmable Flash