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

cross mob
Amr-khaled-Aziz
Level 1
Level 1
First like given 10 sign-ins 5 replies posted
Hello, I need to generate an accurate signal of frequency 7200 or 10800 hz with 50% duty cycle but with high accuracy. I tried several approaches but all yielded about +180 us delay every sec which is too much for my use case. Is there a reason for this or a better solution to achieve this? Thanks.
0 Likes
1 Solution
Nambi
Moderator
Moderator
Moderator
500 replies posted 50 likes received 5 likes given

Hi,

We have different examples for PWM generation with different IPs. Can you try these as base and let us know your observation? Which of these modules are you using at your end? What is the "+180us" delay you are referring to? Could you share the expected and observed waveform?

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/GTM_ATOM_PWM_1_KIT_TC397_T...
https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/CCU6_PWM_Generation_1_KIT_...
https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/GPT12_PWM_Generation_1_KIT...

Best Regards.

View solution in original post

0 Likes
3 Replies
Nambi
Moderator
Moderator
Moderator
500 replies posted 50 likes received 5 likes given

Hi,

We have different examples for PWM generation with different IPs. Can you try these as base and let us know your observation? Which of these modules are you using at your end? What is the "+180us" delay you are referring to? Could you share the expected and observed waveform?

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/GTM_ATOM_PWM_1_KIT_TC397_T...
https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/CCU6_PWM_Generation_1_KIT_...
https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/GPT12_PWM_Generation_1_KIT...

Best Regards.

0 Likes

Hello @Nambi,

I tried all three resulting in about the same performance.

In addition to manipulating each example to generate a 1-second waveform or running the original example, counting the pulses, and observing the captured time as shown below.

pulseview_R0SYsj9UHl.png

I am using PulseView software with a logical analyzer to measure the resultant waveform. I noticed that the logical analyzer induces an extra about +80 us therefore the rest +180us ~(260-80) is coming from the ECU.

This is confirmed by measuring directly using a peco-scope which showed a delay of about +180us again.

The expected waveform is to be below +-50us delay.

I hope this answers your inquiries.

BR.

0 Likes