Force PWM Output to "Low Level" and “High Level” in Traveo S6J3XXX Series MCUs – KBA218099
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Version: *A
Translation - Japanese: Traveo S6J3XXXXシリーズMCUのPWM出力を“Lowレベル”および“Highレベル”に強制する - KBA218099 - Community Translated (JA)
Question:
Can the PWM output be forced to "Low level" and “High level” in Traveo™ S6J3XXX series MCUs?
Answer:
Yes. To force the PWM output to "Low level", set the Pulse Output Mask bit (PMSK) of the Timer Control Register (TMCR) to "1". Another option is to set the PWM duty value to "current duty value > cycle value" while outputting the PWM signal, which will force the output to "Low level" when the next underflow event occurs.
To force the PWM output to "High level" (= 100% Duty pulse), set the same values for the PWM Cycle Setting Register (PCSR) and the PWM Duty Setting Register (PDUT). This will force the output to "High level" when the next underflow event occurs.
Note: This KBA applies to the following series of Traveo MCUs:
S6J3110
S6J3120
S6J3200
S6J3300
S6J3350
S6J3360
S6J3370
S6J3400
S6J3510
- Tags:
- auto mcu
- pwm
- s6j3
- s6j3110
- s6j3120
- s6j3200
- s6j3300
- s6j3310
- s6j3320
- s6j3330
- s6j3340
- s6j3350
- s6j3360
- s6j3370
- s6j3510
- traveo