RMT signals synchronization
Posted: Mon Jun 21, 2021 4:44 pm
Hello everyone,
I am trying to generate 2 synchronized signals using the RMT peripheral (timings are critical). I managed to generate the signals properly and they are synchronized and looping forever, however I fail to have a known and repeatable phase shift between the signals.
After the driver install and configuration lines, I start the channels this way:
I guess that the operating system is doing other stuff meanwhile leading to different time elapsed between the 2 signals start.
Is there another way to do this so that the 2 signals are starting at the exact same time or at least shifted by a repeatable time?
Thank you for any help!
I am trying to generate 2 synchronized signals using the RMT peripheral (timings are critical). I managed to generate the signals properly and they are synchronized and looping forever, however I fail to have a known and repeatable phase shift between the signals.
After the driver install and configuration lines, I start the channels this way:
Code: Select all
rmt_write_items(sig1_config.channel, sig1_items, 8, 0);
rmt_write_items(sig2_config.channel, sig2_items, 8, 0);
Is there another way to do this so that the 2 signals are starting at the exact same time or at least shifted by a repeatable time?
Thank you for any help!