| Electronic Components Datasheet Search |
|
H8/3021 Datasheet(PDF) 392 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3021 Datasheet(HTML) 392 Page - Renesas Technology Corp |
|
392 / 712 page ![]() 11. Serial Communication Interface Rev.2.00 Mar. 22, 2007 Page 368 of 684 REJ09B0352-0200 Receiving Serial Data (Asynchronous Mode): Figure 11.7 shows a sample flowchart for receiving serial data and indicates the procedure to follow. Start receiving Read RDRF flag in SSR RDRF = 1? Read receive data from RDR, and clear RDRF flag to 0 in SSR PER FER ORER = 1? Clear RE bit to 0 in SCR Finished receiving? End Error handling (continued on next page) 1 4 No Yes Yes No No Yes 1. 2., 3. 4. 5. SCI initialization: the receive data function of the RxD pin is selected automatically. Receive error handling and break detection: if a receive error occurs, read the ORER, PER, and FER flags in SSR to identify the error. After executing the necessary error handling, clear the ORER, PER, and FER flags all to 0. Receiving cannot resume if any of the ORER, PER, and FER flags remains set to 1. When a framing error occurs, the RxD pin can be read to detect the break state. SCI status check and receive data read: read SSR, check that RDRF is set to 1, then read receive data from RDR and clear the RDRF flag to 0. Notification that the RDRF flag has changed from 0 to 1 can also be given by the RXI interrupt. To continue receiving serial data: check the RDRF flag, read RDR, and clear the RDRF flag to 0 before the stop bit of the current frame is received. Read ORER, PER, and FER flags in SSR 2 5 Initialize ∨∨ 3 Figure 11.7 Sample Flowchart for Receiving Serial Data (1) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |