i.MX51 buzzer driver using IO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX51 buzzer driver using IO

847件の閲覧回数
alsaleem
Contributor I

Hi,

Is there a way to output a variable frequency signal (audio range, 200-4K) square wave from i.MX51 to drive an external buzzer?

 

Thanks.

タグ(1)
0 件の賞賛
3 返答(返信)

681件の閲覧回数
JerryFan
NXP Employee
NXP Employee
That's right, PWM is designed for brightness tuning, but it can also be used flexibly.  Actually, the PERIOD can be programmed (see Chapter 47.2.2.5, mx51RM for the detail.)  and  the frequency is much accurate that GPIO way. Anyway, if the accuracy  is not important, such as for a buzzer, the GPIO method should be OK.
0 件の賞賛

681件の閲覧回数
alsaleem
Contributor I

The driver only allows to set the pulse width not frequency (fixed on initialization) using brightness. How do I change the PWM frequency?

Thanks.

0 件の賞賛

681件の閲覧回数
JerryFan
NXP Employee
NXP Employee
PWM was recommended for this case. It is more accurate and need less arm core's involvement.
0 件の賞賛