When I write transmission data in serial transmission, which should I check TXEPT bit or TI bit?
It is possible to check the transmission completion by TXEPT bit. TXEPT bit is cleared to "0" in the transmission and set to "1" on its completion. If the transmission data is written in UiTB register, TI bit is turned to "1" after the data is transmitted to the UART transmission register and it shows UiTB register is empty. When you do continuous transmission, write the transmission data in UiTB register after checking that the TI bit is "1".
|R8C/34E, R8C/34F, R8C/34G, R8C/34H|
|R8C/36E, R8C/36F, R8C/36G, R8C/36H|
|R8C/38E, R8C/38F, R8C/38G, R8C/38H|