how to configure the PWM output signals in S32K432?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to configure the PWM output signals in S32K432?

1,944 次查看
mogilipuri_harish
Contributor II

hello team

 

1. how to configure the PWM output signals? we need to configure the PWM output signal with 75% duty cycle with 16Khz

2.which pin we can configure for this operation??

标记 (1)
0 项奖励
回复
4 回复数

1,915 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @mogilipuri_harish 

Included in the S32K3 RTD are some examples of configuring a PWM using FlexIO and EMIOS.

 

B.R.

VaneB

0 项奖励
回复

1,904 次查看
mogilipuri_harish
Contributor II

hello

1.can we generate the 16khz PWM signal with using Output PWM Buffered (OPWMB) pin (eMIOS_0_CH[0]_X) in S32k312 or s32k342?

2. for PWM (16kHZ) output can use GPIO pins?

 

0 项奖励
回复

1,897 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @mogilipuri_harish 

eMIOS is clocked by CORE_CLK(up to 160Mhz). eMIOS divides this clock by the global prescaler (MCR[GPRE] + 1) and routes the resulting prescaled clock output to the channel internal prescaler (Cn[UCPRE] + 1). Thus channel internal counter counts (CORE_CLK/global prescaler/internal prescaler) clock.

For example if the channel is running in OPWFMB mode, its PWM frequency is calculated as:

PWM frequency = CORE_CLK / global prescaler / internal prescaler / (B1+1)

Where B1 is the value of the B register.

 

Please refer to device RM for description of eMIOS modes.

1,055 次查看
anakha
Contributor III

@VaneB 
How could define B1 in RTD?

0 项奖励
回复