2008137_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2008137_en-US

2008137_en-US

S32K311 FLEXIO PWM pulse generation

Hi,

FLEXIO0 clock is derived from CORE clock. CORE clock is 120MHZ. As per below screenshot FLEXIO0 clock is 120MHZ.

UmaMaheswaraReddy_1-1733381814615.png

In FLEXIO_PWM I am confused in below points.

UmaMaheswaraReddy_2-1733382478439.png

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?

UmaMaheswaraReddy_3-1733382803725.png

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

UmaMaheswaraReddy_0-1733388030696.png


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.

Re: S32K311 FLEXIO PWM pulse generation

Thank you Leo.

Re: S32K311 FLEXIO PWM pulse generation

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%.

_Leo__0-1733431088877.png

Have a nice day!

Re: S32K311 FLEXIO PWM pulse generation

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.

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-24-2025 07:14 AM
更新者: