drivers: half_bridge: drive outputs low when stopped
The advtim and gptim drivers left the outputs floating while the half bridge was stopped, so the state of the MOSFETs only depended on the pull-down resistors at the gate driver inputs. - advtim: Enable the off-state selection for idle mode (OSSI), so that both outputs are driven to their idle level (low) while the main output is disabled. - gptim: Keep the output channels enabled and switch between PWM mode and forced output levels to start and stop. The forced low-side state uses forced output levels as well. The HRTIM driver already drives the idle level of disabled outputs. The requirement is added to the API documentation. External pull-down resistors are still required for the time during reset and before the driver is initialized. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7a1a1b02b5
commit
4debb311b2
@@ -71,6 +71,9 @@ static inline int half_bridge_start(const struct device *dev)
|
||||
/**
|
||||
* Stop the PWM generation, i.e. switch off both high-side and low-side switches
|
||||
*
|
||||
* Drivers must actively drive both outputs to their off state instead of leaving them floating.
|
||||
* The same applies after initialization, before the PWM generation is started.
|
||||
*
|
||||
* This also ends the state entered with half_bridge_force_low_side().
|
||||
*
|
||||
* @param dev Half-bridge device
|
||||
|
||||
Reference in New Issue
Block a user