Download RX62T Group On-chip Flash Memory Reprogramming in Single
Transcript
RX62T Group On-chip Flash Memory Reprogramming in Single Chip Mode via an UART Interface (Slave) (7) SCI_Rcv1byte Function (a) Functional Overview The SCI_Rcv1byte function performs the reception control for receiving 1 byte of data over SCI0 asynchronous serial communication. (b) Arguments None (c) Return Values Table 17 lists the return values used by this function. Table 17 Return Values SCI_Rcv1byte Function Type unsigned char (d) Description The one byte of receive data from the SCI0 asynchronous serial communication. Flowchart SCI_Rcv1byte Overrun error or framing error? OK No Reception of 1 byte done? Error handling when an overrun error or framing error occurs (error No. 01) NG Indicate_Error_LED Reception of 1 byte finished? Yes Clear RXI0 interrupt status flag to 0. Read receive data from RDR Return receive data Read 1 byte of receive data from RDR of SCI0. Send 1 byte of receive data as return value. End Figure 19 Flowchart (SCI_Rcv1byte) (Slave) R01AN0640EJ0102 Rev.1.02 Mar 04, 2015 Page 34 of 40