I used the orin nano’s pwm output to drive the buzzer to play music and it worked fine with no issues. But there is really no way for me to make pwm output an independent waveform (non-periodic output) in CCPLX (Linux) side. As long as the pwm peripheral is enabled, it will continue to output waveforms, that do not meet my need.
I am use Official development board jetson-orin-nano-devkit, Jetpack = 35.4.1.
What I want to do is like this, pwm frequency = 500Khz, and duty be adjustable for encode as logic 0 and logic 1, to dirver the 1-wire bus LEDs(like ws2812).
It seems the 45% duty cycle reflecting it to be 1, and 14% duty cycle reflecting it to be 0 so that you could just configure the duty cycle for your use case.
It’s true use that command can stop pwm. The new issue comes out.
The logic 0 and logic 1 are at uS level, so I need a delay API at the uS(microsecond) level to control the delay then stop the PWM peripherals. Currently, NVIDIA does not have such an API for users to use.
Yes, it seems no API for this use case.
For more advanced use case, it is recommended that the user modify the gpio pin register directly through a c program.