(PWM Output) How do you set PWM output to "L"? [2005/03/01]
There are two methods:
- When you want to output "L" after the current PWM cycle is output
Write "00h" to the PWM register. "L" level output will start from the next PWM cycle.
- When you want to output "L" immediately, irregardless of the PWM cycle
Set the output data of the shared PWM output and pin port to "0", the direction register to "1", and the PWM function enable bit to "0" (disable). "L" level output will start immediately.
When PWM function is in use after setting the initial settings of the port as described above, setting the PWM function enable bit to "0" will switch the output level to "L" from the next cycle.