pull down a pwm pin in s32k142

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

pull down a pwm pin in s32k142

Jump to solution
890 Views
elb1
Contributor III

Hello,

Is it possible to make an internal pull down for a pin that is configured as pwm

 

Thank you

0 Kudos
Reply
1 Solution
848 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @elb1 

It is not necessary to disable the PWM, you can change the duty cycle from 100% to 0%. 

FTM has a register that allows this change FTMn->CONTROLS[n].CnV 

View solution in original post

0 Kudos
Reply
4 Replies
807 Views
elb1
Contributor III

Thank you that have resolved the problem

0 Kudos
Reply
862 Views
elb1
Contributor III

Hello, thank you for your response,

I am trying to control a low side driver, so if i want to enable it i set 100% of pwm signal, and if i want to disable it i stop pwm:
(base->SC &= ~(1u << (16 + channel)))
so once i stop it the pin doesn't go to gnd, but instead it goes to high impedance.

0 Kudos
Reply
849 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @elb1 

It is not necessary to disable the PWM, you can change the duty cycle from 100% to 0%. 

FTM has a register that allows this change FTMn->CONTROLS[n].CnV 

0 Kudos
Reply
873 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @elb1 

It is not possible. If you let me know what you are trying to implement, I can see if there is an alternative solution. 

 

B.R.

VaneB

0 Kudos
Reply