![Sino Wealth SH69K55A Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/sino-wealth/sh69k55a/sh69k55a_manual_1283061048.webp)
SH69P55A/K55A
48
Note:
- If the I/O port (PORTG.0) is selected as the PWM output, the I/O functions and pull-high resistor are disabled.
- The PWM could keep on working in the HALT mode, and would stop automatic when the “STOP” instruction is executed.
PWM clock t
PWM
01
02
03
04
7D
7E
7F
05
80
EF
F0
01
02
03
04
PWM output
(PWMS = 0)
PWM output duty cycle = 7FH X t
PWM
PWM output
(PWMS = 1)
PWM output period cycle = F0H X t
PWM
[PP.7, PP.0] = F0H
[PD.7, PD.0] = 7FH
[PDF.1, PDF.0] = 00H
PWM Output Example
PWM clock t
PWM
01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 01 02 03 04 05 06 07 08
Write [PP.7, PP.0] = 0DH
Write [PD.7, PD.0] = 07H
PWM output
(PWMS = 0)
Period cycle = 0FH X t
PWM
Duty cycle
= 06H X t
PWM
Period cycle = 0DH X t
PWM
Duty cycle
= 06H X t
PWM
Duty cycle
= 07H X t
PWM
PWM Output Period or Duty Cycle Changing Example