| 数据搜索系统,热门电子元器件搜索 |
|
ZUSBOPTSC01ZAC 数据表(PDF) 138 Page - Zilog, Inc. |
|
|
|||||||||||||||||||||||||||||
ZUSBOPTSC01ZAC 数据表(HTML) 138 Page - Zilog, Inc. |
|
138 / 402 page ![]() LIN-UART P R E L I M I N A R Y PS024604-1005 Z8 Encore!® Motor Control Flash MCUs Product Specification 116 6. Read data from the LIN-UART Receive Data Register. If operating in MULTIPRO- CESSOR (9-bit) mode, further actions may be required depending on the Multiproces- sor Mode bits MPMD[1:0]. 7. Return to Step 5 to receive additional data. Receiving Data using the Interrupt-Driven Method The LIN-UART Receiver interrupt indicates the availability of new data (as well as error conditions). Follow these steps to configure the LIN-UART receiver for interrupt-driven operation: 1. Write to the LIN-UART Baud Rate High and Low Byte registers to set the appropriate baud rate. 2. Enable the LIN-UART pin functions by configuring the associated GPIO port pins for alternate function operation. 3. Execute a DI instruction to disable interrupts. 4. Write to the Interrupt control registers to enable the LIN-UART Receiver interrupt and set the appropriate priority. 5. Clear the LIN-UART Receiver interrupt in the applicable Interrupt Request Register. 6. Write to the LIN-UART Control 1 Register to enable MULTIPROCESSOR (9-bit) mode functions, if appropriate. a. Set the MULTIPROCESSOR Mode Select (MPEN) to Enable Multiprocessor mode. b. Set the MULTIPROCESSOR Mode Bits, MPMD[1:0], to select the appropriate address matching scheme. c. Configure the LIN-UART to interrupt on received data and errors or errors only (interrupt on errors only is unlikely to be useful for Z8FMC16100 Series Flash MCU devices without a DMA block), 7. Write the device address to the Address Compare Register (automatic multiprocessor modes only). 8. Write to the LIN-UART Control 0 Register to: a. Set the receive enable bit (REN) to enable the LIN-UART for data reception b. If MULTIPROCESSOR mode is not enabled, enable parity, if appropriate, and select either even or odd parity. 9. Execute an EI instruction to enable interrupts. The LIN-UART is now configured for interrupt-driven data reception. When the LIN- UART Receiver interrupt is detected, the associated interrupt service routine (ISR) per- forms the following: |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |