跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

(PWM Output) How do you set PWM output to "L"? [2005/03/01]

Latest Updated:03/01/2005

Question:

(PWM Output)  How do you set PWM output to "L"? [2005/03/01]

Answer:

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.

(#104809)

Suitable Products
3803H
3803L
3850A
3858