Hi,
FLEXIO0 clock is derived from CORE clock. CORE clock is 120MHZ. As per below screenshot FLEXIO0 clock is 120MHZ.
In FLEXIO_PWM I am confused in below points.
1) PIN0 represents which PIN?
Our understanding is PIN0 means FLEXIO0_D0. PIN0 can be PTD0 or PTA10 or PTD9. Based on which pin is configured as FLEXIO D0 that PIN becomes PIN0. Is my understanding correct?
2) clock prescaler
If we set FLEXIO_PWM_IP_CLK_DIV_256 then it divides clock with 256.
FLEXIO0 clock = 120MHZ.
120MHZ/256 = 468.750KHZ
Is our understanding correct?
3) clock prescaler alternate
I dont see PWM enable dual clock mode option in FLEXIO_MCL/FLEIO_PWM modules.
4) Period/Dutycycle [Ticks]
What is Ticks?
If I set period value 512,
Period = 512/(468.750KHZ) = 0.0010922666666667 = 1.092 msec period pulse will get generate correct?
Duty = 256 -> 50% duty cycle
Thanks,
Y Uma Maheswara Reddy.
Thank you Leo.
Hi,
Thank you so much for your interest in our products and for using our community.
Regarding your questions…
1. Your understanding is correct.
2. It is correct too.
3. There is no dual clock mode for FlexIO_PWM. So there is no need to configure the Clock prescaler Alternate. I will report such issue.
4. Ticks are clock cycles. And yes, with such configuration you get a PWM signal with period 1.092ms and duty cycle of 50%.
Have a nice day!
hello brother....can you share that project to me....becuse i dont know which api i have to call and all......so can you please share me that flexio pwm project to me.