- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I have a question regarding complex GPIOs:
I created 2 identical PWM signals (same period, same threshold, same everything) using the complex gpio type description.
The signals come out correctly, apart from their phase: they do not have the same phase.
It seems that their phase relation ship is dependent on the order they are initialized in the firmware.
Is it possible to guarantee a zero phase difference between 2 identical complex PWM GPIO signals?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please set a delay between two GPIO to adjust the Phase. We cannot set the zero phase by default.
Sridhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Yes I did that. I guess there is no way of knowing beforehand what timer value should be programmed in the GPIO complex properties to guarantee zero phase offset between 2 complex GPIO output signals of the same frequency?
Or can it be done with more direct low level register programming?
I would guess it involves having 2 counters start at the same clock edge
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please let me know which GPIOs# you are using your design.
Do you want the exact same PWM waveform with same phase on both GPIOs?
Regards,
Sridhar