欢迎访问ic37.com |
会员登录 免费注册
发布采购

HD6433846XXXH 参数 Datasheet PDF下载

HD6433846XXXH图片预览
型号: HD6433846XXXH
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器\n [Microcontroller ]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 524 页 / 1465 K
品牌: ETC [ ETC ]
 浏览型号HD6433846XXXH的Datasheet PDF文件第321页浏览型号HD6433846XXXH的Datasheet PDF文件第322页浏览型号HD6433846XXXH的Datasheet PDF文件第323页浏览型号HD6433846XXXH的Datasheet PDF文件第324页浏览型号HD6433846XXXH的Datasheet PDF文件第326页浏览型号HD6433846XXXH的Datasheet PDF文件第327页浏览型号HD6433846XXXH的Datasheet PDF文件第328页浏览型号HD6433846XXXH的Datasheet PDF文件第329页  
Simultaneous transmit/receive  
Figure 10-20 shows an example of a flowchart for a simultaneous transmit/receive operation. This  
procedure should be followed for simultaneous transmission/reception after initializing SCI3.  
Start  
Sets bits SPC31 and  
SPC32 to 1 in SPCR  
1. Read the serial status register (SSR) and  
Read bit TDRE  
1
check that bit TDRE is set to 1, then write  
transmit data to the transmit data register  
(TDR). When data is written to TDR, bit  
TDRE is cleared to 0 automatically.  
in SSR  
No  
TDRE = 1?  
Yes  
2. Read SSR and check that bit RDRF is set  
to 1. If it is, read the receive data in RDR.  
When the RDR data is read, bit RDRF is  
cleared to 0 automatically.  
Write transmit  
data to TDR  
3. When continuing data transmission/reception,  
finish reading of bit RDRF and RDR before  
receiving the MSB (bit 7) of the current frame.  
Before receiving the MSB (bit 7) of the current  
frame, also read TDRE = 1 to confirm that a  
write can be performed, then write data to TDR.  
When data is written to TDR, bit TDRE is cleared  
to 0 automatically, and when the data in RDR is  
read, bit RDRF is cleared to 0 automatically.  
Read bit OER  
in SSR  
Yes  
OER = 1?  
No  
4. If an overrun error has occurred, read bit OER  
in SSR, and after carrying out the necessary  
error processing, clear bit OER to 0. Transmis-  
sion and reception cannot be resumed if bit  
OER is set to 1.  
Read bit RDRF  
in SSR  
2
See figure 10-18 for details on overrun error  
processing.  
No  
RDRF = 1?  
Yes  
Read receive data  
in RDR  
Overrun error  
processing  
4
Continue data  
transmission/reception?  
Yes  
3
Notes: 1. When switching from transmission to simultaneous  
transmission/reception, check that SCI3 has finished transmitting and  
that bits TDRE and TEND are set to 1, clear bit TE to 0, and then set  
bits TE and RE to 1.  
No  
Clear bits TE and  
RE to 0 in SCR3  
2. When switching from reception to simultaneous transmission/reception,  
check that SCI3 has finished receiving, clear bit RE to 0, then check  
that bit RDRF and the error flags (OER, FER, and PER) are cleared to  
0, and finally set bits TE and RE to 1.  
End  
Figure 10-20 Example of Simultaneous Data Transmission/Reception Flowchart  
(Synchronous Mode)  
310  
 复制成功!