when i get peer with my chip it rings. plz help me out.
when i get peer with my chip it rings. plz help me out.
Hi
The easiest way to make a beep is to use the app_pwm driver in the SDK. You will have to set the PWM period according to the beep frequency you want, and then you can simply set the duty cycle to 50% to produce a square wave at that frequency.
The reload time (in us) relates to frequency like this: reload_us = 1000000 / FREQ
To turn off the sound, just set the duty cycle to 0% or 100%.
For an example of how to use the PWM driver, please have a look at the PWM example in the SDK:
\nRF51 SDK_v9.0.0\examples\peripheral\pwm
Best regards
Torbjørn
thanks.. would you help me to find which buzzer i can use or is there a builtin buzzer?
thanks.. would you help me to find which buzzer i can use or is there a builtin buzzer?