I have upgrade from Pic Flowcode V.3 to V.4 but not able to post in V.4 forum?????
But my question is, I need help to create a program where I am able to create a sound on 1750 hz when I use an inputbuttom and be able to change the frq.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.
In flowcode 3 examples (TUT_24.FCF found in Flowcode V3/Examples directory) there is a basic way to produce tones.
It will get you started and will work with V4.
This I mean by press a buttum is, when I press on an Input I get a sound on 1750hz on an output. But to change the tone I would do it in the program. Its only an examble I need. Is it possible to make the tone without Interrupt?
Yes its possible to make a tone without an interrupt however if you do not use an interrupt then all your program will be able to do is to make the tone.
eg
while 1
{
output 1
delay
output 0
delay
}
By changing the length of the delays you change the frequency of the output tone.
You may be able to fit a bit more functionality into the loop but the more you add the less control over the tone you will have. Eg. anything that blocks the program for any length of time will cause problems.