摘要 |
PROBLEM TO BE SOLVED: To secure processing time except for serial receiving during serial receiving of a CPU and to separate processing with error detection in the interruption program of the CPU after serial receiving. SOLUTION: While serially receiving plural bytes, received data are stored in a FIFO 107 and after the receiving end interruption of plural bytes occurs and a receiving error decision inside the FIFO 107 is performed, the received data are read out. By deciding the values of a framing error flag 104 and a parity error flag 105 which are not cleared until reading-out after setting, the presence/absence of a receiving error in the data stored in the FIFO is investigated. Thus, processing with the error detection in the interruption program can be separated and the processing time except for serial receiving of the CPU can be secured during serial receiving. |