S32k312 PWM Output code

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

S32k312 PWM Output code

228 Views
NITHYANANTHVS
Contributor II

Hi @Senlent 

I need PWM code for below channels.

EMIOS 0INTERRUPT
CH0EMIOS0_5_IRQn = 66
CH1EMIOS0_5_IRQn = 66
CH2EMIOS0_5_IRQn = 66
CH3EMIOS0_5_IRQn = 66
CH4EMIOS0_4_IRQn = 65
CH5EMIOS0_4_IRQn = 65
CH6EMIOS0_4_IRQn = 65
EMIOS 1INTERRUPT
CH7EMIOS1_4_IRQn = 73
CH14EMIOS1_2_IRQn = 71
CH15EMIOS1_2_IRQn = 71
CH19EMIOS1_1_IRQn = 70

 

Here I'm configuring 11 channels for PWM output. Can you check whether the interrrupt which I used was correct or not. 

I need minimum frequency of 50 Hz and maximum of 16KHz frequency and dutycycle 40% to 70%. 

SDK 3.0

Version 3.5

Please send me the code as soon as possible because it will help me to know the mistakes in my code.

Awaiting for your response.

Note: If I configure one channel it was working and we could able to see the correct frequency & duty cycles in the scope, but if I configure more than one channel, the last one only working as expected. The first two channels are not working.   

Thank you 

 

Labels (1)
0 Kudos
1 Reply

207 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@NITHYANANTHVS

Please don't create the same question again.

I already responded to your question yesterday and also provided a demo for your reference.The purpose of our community is to help customers solve the problems they encounter. We cannot directly help you complete your project needs. This is not our original intention.

So I hope you will take the time to read the data sheet and the code we provide you, instead of requiring us to help you understand every step.

0 Kudos