renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
192 stars 82 forks source link

AGT: "Start Level High" does not invert output #226

Closed renesas-austin-hansen closed 2 years ago

renesas-austin-hansen commented 2 years ago

Issue

For AGT, when an output pin is set to "Start Level High" the duty cycle is inverted by the driver. This means that the only difference between "Start Level High" and "Start Level Low" is the initial state of the pin; the output waveform is otherwise identical.

Workaround

For the versions listed in the "applies-to-*" labels, to invert output use "Start Level High" and input the duty cycle as (period) - (duty_cycle) - 1.

Migration Needed

When migrating projects to later versions be sure to remove any workarounds when using "Start Level High".