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

Z8F2401VN020SC 参数 Datasheet PDF下载

Z8F2401VN020SC图片预览
型号: Z8F2401VN020SC
PDF下载: 下载PDF文件 查看货源
内容描述: Z8喝采微控制器与闪存和10位A / D转换器 [Z8 Encore Microcontrollers with Flash Memory and 10-Bit A/D Converter]
分类和应用: 转换器闪存微控制器
文件页数/大小: 246 页 / 1767 K
品牌: ZILOG [ ZILOG, INC. ]
 浏览型号Z8F2401VN020SC的Datasheet PDF文件第97页浏览型号Z8F2401VN020SC的Datasheet PDF文件第98页浏览型号Z8F2401VN020SC的Datasheet PDF文件第99页浏览型号Z8F2401VN020SC的Datasheet PDF文件第100页浏览型号Z8F2401VN020SC的Datasheet PDF文件第102页浏览型号Z8F2401VN020SC的Datasheet PDF文件第103页浏览型号Z8F2401VN020SC的Datasheet PDF文件第104页浏览型号Z8F2401VN020SC的Datasheet PDF文件第105页  
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x  
Z8 Encore!®  
83  
7. Write to the UART Control 0 register to:  
Set the receive enable bit (REN) to enable the UART for data reception  
Enable parity, if desired, and select either even or odd parity.  
8. Execute an EI instruction to enable interrupts.  
The UART is now configured for interrupt-driven data reception. When the UART  
Receiver interrupt is detected, the associated interrupt service routine (ISR) should per-  
form the following:  
9. Check the UART Status 0 register to determine the source of the interrupt - error,  
break, or received data.  
10. If the interrupt was due to data available, read the data from the UART Receive Data  
register. If operating in Multiprocessor (9-bit) mode, first read the Multiprocessor  
Receive flag (MPRX) to determine if the data was directed to this UART before  
reading the data.  
11. Clear the UART Receiver interrupt in the applicable Interrupt Request register.  
12. Execute the IRET instruction to return from the interrupt-service routine and await  
more data.  
Receiving Data using the Direct Memory Access Controller (DMA)  
The DMA and UART can coordinate automatic data transfer from the UART Receive  
Data register to general-purpose Register File RAM. This reduces the eZ8 CPU process-  
ing overhead required to support UART data reception. The UART Receiver interrupt  
must then only notify the eZ8 CPU of error conditions. Follow these steps to configure the  
UART and DMA for automatic data handling:  
1. Write to the DMA control registers to configure the DMA to transfer data from the  
UART Receive Data register to general-purpose Register File RAM.  
2. Write to the UART Baud Rate High and Low Byte registers to set the desired baud  
rate.  
3. Enable the UART pin functions by configuring the associated GPIO Port pins for  
alternate function operation.  
4. Write to the Interrupt control registers to enable the UART Receiver interrupt and set  
the desired priority.  
5. Write to the UART Control 1 register to:  
Enable Multiprocessor (9-bit) mode functions, if desired.  
Disable the UART interrupt for received data by clearing RDAIRQ to 0.  
PS017610-0404  
UART  
 复制成功!