Complex GPIO phase relation with 2 identical complex GPIOs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SaGi_4116301
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

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

0 Likes
3 Replies
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

Please set a delay between two GPIO to adjust the Phase. We cannot set the zero phase by default.

Sridhar

0 Likes

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

0 Likes

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

0 Likes