Interfacing a buzzer with s32k118 microcontroller and also changing its frequency

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

Interfacing a buzzer with s32k118 microcontroller and also changing its frequency

ソリューションへジャンプ
551件の閲覧回数
SteveSam
Contributor II

Hi, Im new to the embedded world and just getting started...and i would like to know how to interface an buzzer with this board

regards,

Steve

0 件の賞賛
1 解決策
533件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

depending on type of buzzer a direct connection to MCU output is most probably not possible and simple transistor should be used, like below.

PetrS_0-1692685177024.png

If you want to generate PWM signal then choose a pin ideally with FTM functionality. FTM channel can be configured for various output modes with PWM as well. Refer to device RM for more info.

Basic FTM examples can be found within S32 Design Studio.

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
534件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

depending on type of buzzer a direct connection to MCU output is most probably not possible and simple transistor should be used, like below.

PetrS_0-1692685177024.png

If you want to generate PWM signal then choose a pin ideally with FTM functionality. FTM channel can be configured for various output modes with PWM as well. Refer to device RM for more info.

Basic FTM examples can be found within S32 Design Studio.

BR, Petr

0 件の賞賛
526件の閲覧回数
SteveSam
Contributor II
hi, Ive learnt how to generate a pwm signal and change its frequency but the buzzer still does not work...I have a buzzer with 3 pins (vcc,gnd,io ) and i wonder if still have to use a transistor.
0 件の賞賛
499件の閲覧回数
SteveSam
Contributor II
and im using the j4 ptd15 pin for the sample code ftm_pwm_s32k118 with a frequency of 2000u ,3000u changed in flexTimer_pwm_1_PwmConfig please help
0 件の賞賛