Hi,
I am merging a PWM_driver example with a ble-peripheral-blinky example to generate PWM signals with user-defined arbitrary phase-shift and duty cycle.
I am done with the ble part that I can set arbitrary duty cycles using an android application.
However, the problem is that no matter if I use | 0x8000 or the NRF_DRV_PWM_PIN_INVERTED flag, the polarity of my pin does not change and I cannot see any polarity change in the oscilloscope. I am using an nrf52840 dongle.
I plan two build two PWM signals that the user is able to change not only the duty cycle of that but also make an arbitrary phase-shift between the two signals.
Could you guys help me with the polarity problem?
Besides, any suggestion regarding the phase shift and how to build that would be appreciated.
Also, if there is a command to define a dead-time between the PWM signals using PWM_driver, that would be awesome.
Thanks,




