I.MX6Q. Help PWM !!

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

I.MX6Q. Help PWM !!

1,088 Views
grégorycascio
Contributor I

hello everybody,

I am in possession of a card from Emtrion (Dimm MX6) with a freescale processor IMX6Q

I am trying to program a PWM with a variable duty cycle (freq=4KHz), but i do not know how.


if anyone can help me write the code to control the PWM or give me informations to get there.


Thank you in advance

Best regaurd

Labels (2)
0 Kudos
Reply
2 Replies

708 Views
Yuri
NXP Employee
NXP Employee

Please use the Platform SDK as an example. Take a look at Chapter 27 (Configuring the PWM driver) of "iMX6_Firmware_Guide.pdf".

https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&location=null&fpsp=1&WT_TYPE=Sn...

As for Linux, please take a look at  Chapter 41 (Pulse-Width Modulator (PWM) Driver)
of "i.MX_6Dual6Quad_Linux_Reference_Manual.pdf".

708 Views
grégorycascio
Contributor I

thank you for your response


I started to browse the files you told me, but my C ability are limited and I do not totally understand the test programs (pwm_test.c ...).

Can you tell me how to run a program or the steps to follow (for example: pwm_test.c) ?


Thank you in advance

Best regard


0 Kudos
Reply