ML610Q174 User’s ManualChapter 10 PWMFEUL610Q174-01 10-6410.4.5 Functioning P53 Pin (PWM6) as PWM OutputSet the P53MD1 bit (bit 3 of P5MOD1 register) to "1" and the P53MD0 bit (bit 3 of P5MOD0 register) to "0" tospecify PWM6 as the tertiary function of P53.Register name P5MOD1 register (Address: 0F22DH)Bit 7 6 5 4 3 2 1 0Bit name - - - - P53MD1 P52MD1 P51MD1 P50MD1Setting value - - - - 1 * * *Register name P5MOD0 register (Address: 0F22CH)Bit 7 6 5 4 3 2 1 0Bit name - - - - P53MD0 P52MD0 P51MD0 P50MD0Setting value - - - - 0 * * *Set the P53C1 bit (P5CON1 register bit 3) to "1", the P53C0 bit (P5CON0 register bit 3) to "1", and the P53DIRbit (P5DIR register bit 3) to "0" to specify the state mode of the P53 pin used for PWM6 as the CMOS output.Register name P5CON1 register (Address: 0F22BH)Bit 7 6 5 4 3 2 1 0Bit name - - - - P53C1 P52C1 P51C1 P50C1Setting value - - - - 1 * * *Register name P5CON0 register (Address: 0F22AH)Bit 7 6 5 4 3 2 1 0Bit name - - - - P53C0 P52C0 P51C0 P50C0Setting value - - - - 1 * * *Register name P5DIR register (Address: 0F229H)Bit 7 6 5 4 3 2 1 0Bit name - - - - P53DIR P52DIR P51DIR P50DIRSetting value - - - - 0 * * *The P53D bit (P5D register bit 3) data can either be "0" or "1".Register name P5D register (Address: 0F228H)Bit 7 6 5 4 3 2 1 0Bit name - - - - P53D P52D P51D P50DSetting value - - - - ** * * ** : Bit not related to the PWM function** : Don’t careNote:Set up the bit of each port register in the same way as 10.4.1-10.4.5 about PWM4 output (PWM4) is assigned toP20(Port2) or PF3(PortF) or PF4(PortF) as the tertiary function or the PWM5 output (PWM5) is assigned toP21(Port2) or PF5(PortF) as the tertiary function, or the PWM6 output (PWM6) is assigned to PF6(PortF) as thetertiary function.