Add support for complimentary channel output and deadtime. #900
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch enables output on the complimentary channels (TIMx_CHyN).
Timers 1 and 8 have complimentary channels available (on the pyboard, for timer 1, only complimentary channels are available).
When available (Timers 1 and 8, Channels 1-3) deadtime can also be inserted when the channels
transition. For the pyboard, TIM8_CH1/CH1N and TIM8_CH2/CH2N can
take advantage of this.
Using deadtime is extremely useful when you're using the complimentary channnels to directly drive the top and bottom halves of an H-Bridge. The deadtime allows both the top and bottom to be inactive when transittioning. Otherwise you wind up with short periods of time when Vcc is shorted to ground (while the MOFETs are switching).