xpress_embedo
Advanced Member level 4
Hello!! Everyone
I have to play various types tones using PIC18f4550 micro-controller and a piezo-electric buzzer.
Various Types of tones are:
1) Key Accept Tone (Whenever someone presses the key and the key is valid then i have to play a short tone for acceptance)
2) Invalid Key Tone (Whenever someone presses the key and the key is not valid then i have to play a key tone which is annoying)
and more like that.
how can i proceed in this task??
Right now i am learning how to use PWM of PIC and wrote some basic functions for PWM such as PWM Set Frequency, duty cycle, start and stop, which i will use to play tones but after doing this i realize this is not what i wanted as for my project duty cycle and pwm frequency will remain constant through out the life of product.
Which frequency will be suitable for hearing purpose.
In proteus i simulated with 4khz and its very bad.
The reason i choose 4Khz is because i am operating PIC at 48MHz and due to which i am not able to go below 4Khz, am i right or doing something wrong.
I have to play various types tones using PIC18f4550 micro-controller and a piezo-electric buzzer.
Various Types of tones are:
1) Key Accept Tone (Whenever someone presses the key and the key is valid then i have to play a short tone for acceptance)
2) Invalid Key Tone (Whenever someone presses the key and the key is not valid then i have to play a key tone which is annoying)
and more like that.
how can i proceed in this task??
Right now i am learning how to use PWM of PIC and wrote some basic functions for PWM such as PWM Set Frequency, duty cycle, start and stop, which i will use to play tones but after doing this i realize this is not what i wanted as for my project duty cycle and pwm frequency will remain constant through out the life of product.
Which frequency will be suitable for hearing purpose.
In proteus i simulated with 4khz and its very bad.
The reason i choose 4Khz is because i am operating PIC at 48MHz and due to which i am not able to go below 4Khz, am i right or doing something wrong.