I.MX6Q. Help PWM !!

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

I.MX6Q. Help PWM !!

1,135 次查看
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

标签 (2)
0 项奖励
回复
2 回复数

755 次查看
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".

755 次查看
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 项奖励
回复