ML610Q174 User’s ManualChapter 10 PWMFEUL610Q174-01 10-6110.4.2 Functioning P43 Pin (PWM4) as PWM OutputSet the P43MD1 bit (bit 3 of P4MOD1 register) to "1" and the P43MD0 bit (bit 3 of P4MOD0 register) to "0" tospecify PWM4 as the tertiary function of P43.Register name P4MOD1 register (Address: 0F225H)Bit 7 6 5 4 3 2 1 0Bit name P47MD1 P46MD1 P45MD1 P44MD1 P43MD1 P42MD1 P41MD1 P40MD1Setting value * * * * 1 * * *Register name P4MOD0 register (Address: 0F224H)Bit 7 6 5 4 3 2 1 0Bit name P46MD0 P46MD0 P45MD0 P44MD0 P43MD0 P42MD0 P41MD0 P40MD0Setting value * * * * 0 * * *Set the P43C1 bit (P4CON1 register bit 3) to "1", the P43C0 bit (P4CON0 register bit 3) to "1", and the P43DIRbit (P4DIR register bit 3) to "0" to specify the state mode of the P43 pin used for PWM4 as the CMOS output.Register name P4CON1 register (Address: 0F223H)Bit 7 6 5 4 3 2 1 0Bit name P47C1 P46C1 P45C1 P44C1 P43C1 P42C1 P41C1 P40C1Setting value * * * * 1 * * *Register name P4CON0 register (Address: 0F222H)Bit 7 6 5 4 3 2 1 0Bit name P47C0 P46C0 P45C0 P44C0 P43C0 P42C0 P41C0 P40C0Setting value * * * * 1 * * *Register name P4DIR register (Address: 0F221H)Bit 7 6 5 4 3 2 1 0Bit name P47DIR P46DIR P45DIR P44DIR P43DIR P42DIR P41DIR P40DIRSetting value * * * * 0 * * *The P43D bit (P4D register bit 3) data can either be "0" or "1".Register name P4D register (Address: 0F220H)Bit 7 6 5 4 3 2 1 0Bit name P47D P46D P45D P44D P43D P42D P41D P40DSetting value * * * * ** * * ** : Bit not related to the PWM function** : Don’t care