Chapter 14A/D ConverterOperation XIV - 39An example setup procedure, with a description of each step is shown below.Setup Procedure Description(1) Set the AD0: Stop the A/D converteroperationAN0CTR0(0x0000A400)bp7: AN0EN=0 bp5: AN0TRG=0Set the AD1: Stop the A/D converteroperationAN1CTR0(0x0000A440)bp7: AN1EN=0 bp5: AN1TRG=0Set the AD2: Stop the A/D converteroperationAN2CTR0(0x0000A480)bp7: AN2EN=0 bp5: AN2TRG=0(1) Set the AN0EN flag and the AN0TRG flag of the A/D0conversion control register 0 (AN0CTR0) to “0” to stopthe A/D conversion.Set the AN1EN flag and the AN1TRG flag of the A/D1conversion control register 0 (AN1CTR0) to “0” to stopthe A/D conversion.Set the AN2EN flag and the AN2TRG flag of the A/D2conversion control register 0 (AN2CTR0) to “0” to stopthe A/D conversion.(2) Set the AD0: Disable the AD0 completeinterruptG26ICR(0x00008968)bp8: G26IE0=0 bp9: G26IE1=0Set the AD1: Disable the AD1 completeinterruptG27ICR(0x0000896C)bp8: G27IE0=0 bp9: G27IE1=0Set the AD2: Disable the AD2 completeinterruptG28ICR(0x00008970)bp8: G28IE0=0(2) Set the IE flags of the G26ICR, G27ICR and G28ICRregisters to “0” to disable the AD0, 1 and 2 conversioncomplete interrupts.(3) Set the PWM0 and 1 (3) Set PWM0 and 1.* Do not execute PWM start at this point.PWMMD0 (0x0000A300), PWMMD1 (0x0000A330)bp: TCENn=0