I want to use both PWMs of the Jetson Nano development board, but in a synchronized manner, to control multiple cameras and LEDs. I try to start signals simultaneously, but it causes a random phase shift.
PWM pulses can be in same phase (configuring same period and duty width) but can’t assure to be in sync.
Even though SW programs enable bits simultaneously, there is HW latency to start generating the pulse. This can go till 255th pulse of the source clock. SW has no control over it.
Possible suggestion: If sw pwm using gpio bit banging can be used in your case. But this needs both the pwm configurations from same gpio block.
Every main pwm pin is generated by a different platform. The first platform has 1 pwm and the second has 4 pwm devices. But the fan control pwm signal is generated by the second one (platform/7000a000.pwm) that is used to generate pwm-1 too. If it’s possible to use the fan pwm signal, is it possible to synchronize fan-pwm and pwm1 ?