PWM Driver Debugging Guide
The X5 has two types of controllers: one is the standard PWM, with 4 groups, each having 2 output channels, for a total of 8 PWM outputs. The other is LPWM, with 2 groups, each having 4 PWM outputs, primarily used for supporting synchronized exposure of sensors.
- The default supported frequency range for PWM is from 0.05Hz to 100MHz, and the duty cycle register (RATIO) has a precision of 16 bits. The period valid time ranges from 10ns to 21s, and the duty cycle valid time ranges from 10ns to 21s.
- The default supported frequency range for LPWM is from 1Hz to 500KHz, with no duty cycle register. There is only a high-level duration register (HIGH), where the HIGH register configuration unit is in microseconds (us), and the duty cycle valid time ranges from 1us to 4ms.
- LPWM is designed for sensor synchronization and is not a general-purpose PWM. For pure PWM functionality, it is recommended to use PWM.