参数资料
型号: HD6433837L
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 5 MHz, MICROCONTROLLER, PQFP100
封装: TQFP-100
文件页数: 93/194页
文件大小: 2303K
代理商: HD6433837L
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页当前第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页
182
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
19.7.1
Sending Frames with 5 to 8 Data Bit
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 UDRn 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,
U2Xn bit or by XCKn depending on mode of operation.
The following code examples show a simple USART transmit function based on polling of the
Data Register Empty (UDREn) Flag. When using frames with less than eight bits, the most sig-
nificant bits written to the UDRn 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 UDREn 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.
19.7.2
Sending Frames with 9 Data Bit
If 9-bit characters are used (UCSZn = 7), the ninth bit must be written to the TXB8 bit in UCS-
RnB before the low byte of the character is written to UDRn. The following code examples show
a transmit function that handles 9-bit characters. For the assembly code, the data to be sent is
assumed to be stored in registers R17:R16.
Assembly Code Example (1)
USART_Transmit:
; Wait for empty transmit buffer
sbis
UCSRnA,UDREn
rjmp
USART_Transmit
; Put data (r16) into buffer, sends the data
out
UDRn,r16
ret
C Code Example
void
USART_Transmit( unsigned char data )
{
/* Wait for empty transmit buffer */
while
( !( UCSRnA & (1<<UDREn)) )
;
/* Put data into buffer, sends the data */
UDRn = data;
}
相关PDF资料
PDF描述
HD6433837SH 8-BIT, MROM, 5 MHz, MICROCONTROLLER, PQFP100
HD64463 MULTIFUNCTION PERIPHERAL, PBGA387
HD6473258CP10 8-BIT, OTPROM, MICROCONTROLLER, PQCC68
HD74AC174T D FLIP-FLOP, PDSO16
HD74HC149FP HC/UH SERIES, 8-BIT ENCODER, PDSO20
相关代理商/技术参数
参数描述
HD6433837S 制造商:未知厂家 制造商全称:未知厂家 功能描述:H8/3834 Series H8/3837 HD6433837.HD6433837S.HD64473837. H8/3836 HD6433836.HD6433836S H8/3835 HD6433835.HD6433835S H8/3834 HD6433834.HD633834S.HD6473834 H8/3833 HD6433833.HD6433833S H8/3832 HD6433832S Hardware Manual
HD6433837SD 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:single-chip microcomputers
HD6433837SE 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:single-chip microcomputers
HD6433837SF 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:single-chip microcomputers
HD6433837SH 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:single-chip microcomputers