how to configure the PWM output signals in S32K432?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to configure the PWM output signals in S32K432?

1,321 Views
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??

Tags (1)
0 Kudos
Reply
4 Replies

1,292 Views
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 Kudos
Reply

1,281 Views
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 Kudos
Reply

1,274 Views
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.

432 Views
anakha
Contributor III

@VaneB 
How could define B1 in RTD?

0 Kudos
Reply