參數(shù)資料
型號(hào): MQ80C52TXXX-25:RD
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CQFP44
封裝: CERAMIC, QFP-44
文件頁數(shù): 96/170頁
文件大?。?/td> 25028K
185
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
Note:
The function simply waits for data to be present in the receive buffer by checking the RXCn Flag,
before reading the buffer and returning the value.
19.8.2
Receiving Frames with 9 Data Bits
If 9-bit characters are used (UCSZn=7) the ninth bit must be read from the RXB8n bit in UCS-
RnB before reading the low bits from the UDRn. This rule applies to the FEn, DORn and UPEn
Status Flags as well. Read status from UCSRnA, then data from UDRn. Reading the UDRn I/O
location will change the state of the receive buffer FIFO and consequently the TXB8n, FEn,
DORn and UPEn 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.
Assembly Code Example
USART_Receive:
; Wait for data to be received
sbis
UCSRnA, RXCn
rjmp
USART_Receive
; Get and return received data from buffer
in
r16, UDRn
ret
C Code Example
unsigned char
USART_Receive( void )
{
/* Wait for data to be received */
while
( !(UCSRnA & (1<<RXCn)) )
;
/* Get and return received data from buffer */
return
UDRn;
}
相關(guān)PDF資料
PDF描述
MC80C52XXX-30:D 8-BIT, MROM, 30 MHz, MICROCONTROLLER, CDIP40
MC80C52XXX-30SHXXX 8-BIT, MROM, 30 MHz, MICROCONTROLLER, CDIP40
MD80C52EXXX-12/883:D 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CDIP40
MD80C52TXXX-12/883:D 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CDIP40
MD80C52TXXX-16:D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CDIP40
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MQ82370-20 制造商:Rochester Electronics LLC 功能描述:- Bulk
MQ8238020 制造商:Intel 功能描述:CONTROLLER: OTHER
MQ82380-20 制造商:Rochester Electronics LLC 功能描述:- Bulk
MQ82380-20/R 制造商:Rochester Electronics LLC 功能描述:
MQ82592 制造商:Rochester Electronics LLC 功能描述:- Bulk