Chapter 13Serial Interface 2XIII - 34 OperationNote: Each in (6), (7), and (8) can be set at once.(7) Set the SC2CTR2 registerControl the output dataSC2CTR2(0x0000A124)bp0: SC2BRKE=0Select the added parity bitSC2CTR2(0x0000A124)bp3: SC2NPE=0bp5-4: SC2PM1-0=00Specify the frame modeSC2CTR2(0x0000A124)bp7-6: SC2FM1-0=11(7) Set the SC2BRKE flag of the SC2CTR2 register to “0” toselect the serial data transmission.Set the SC2PM1-0 flags of the SC2CTR2 register to“00” to select 0 parity and the SC2NPE flag to “0” toenable the parity bit added.Set the SC2FM1-0 flags of the SC2CTR2 register to“11” to select 8 bits + 2 stop bits to the frame mode.(8) Set the SC2CTR1 registerSet the communication styleSC2CTR1(0x0000A121)bp0: SC2CMD=1Select the clock dividingSC2CTR1(0x0000A121)bp3: SC2CKM=1bp2: SC2MST=1Control the pin functionSC2CTR1(0x0000A121)bp4: SC2SBOS=1bp5: SC2SBIS=1bp7: SC2IOM=0(8) Set the SC2CMD flag of the SC2CTR1 register to “1” toselect duplex UART.Set the SC2CKM flag of the SC2CTR1 register to “1” toselect 16 dividing of source clock. Be sure to set theSC2MST flag to “1” and select the clock timer.Set the SC2SBOS and SC2SBIS flags of theSC2CTR1 register to “1” to set the SBO2 pin to theserial data output and the SBI2 pin to the serial datainput.(9) Set the interrupt levelG15ICR(0x0000893C)bp14-12: G15LV2-0=100(9) Set the interrupt level by the G15LV2-0 flags of theG15ICR register.(10) Enable the interruptG15ICR(0x0000893C)bp8: G15IE0=1bp9: G15IE1=1(10) Set the G15IE0 flag of the G15ICR register to “1” andthe G15IE1 flag to “1” to enable the interrupt. When theinterrupt request flag is already set, clear the requestflag.(11) Start the serial transmissionTransmission data→SC2TB(0x0000A130)Reception data→input to SBI2 pin(11) If transmission data is set to the serial interface 2transmission data buffer (SC2TB), transmission isstarted. When transmission is completed, the serial 2transmission interrupt (SC2TIRQ) is generated. Also,reception data is fed to the SBI2 pin; and, the serial 2reception interrupt (SC2RIRQ) is generated.Setup Procedure Description