Hi,
I have been using the sound command to generate a tone at 1kHz to drive a speaker via an amp. The command is: sound 3, (116 ,250).
If you refer to my previous post yesterday I now want to try and get a 1kHz continuous tone so have used the pwmout command with a de-clocked processor at 1MHz. The command is: pwmout 3 , 249,500.
When I compare the result between the two the sounds are definitely at different pitch. I have proved to myself that the clock is running at 1MHz by writing a quick timer in my test code.
Can anyone verify that the inputs I am using in the sound command are correct? Without a scope it is difficult for me to determine what the frequencies are.
The note value of 116 was obtained from this post: http://www.picaxeforum.co.uk/showthread.php?t=7634&highlight=sound+frequency
Many thanks.
I have been using the sound command to generate a tone at 1kHz to drive a speaker via an amp. The command is: sound 3, (116 ,250).
If you refer to my previous post yesterday I now want to try and get a 1kHz continuous tone so have used the pwmout command with a de-clocked processor at 1MHz. The command is: pwmout 3 , 249,500.
When I compare the result between the two the sounds are definitely at different pitch. I have proved to myself that the clock is running at 1MHz by writing a quick timer in my test code.
Can anyone verify that the inputs I am using in the sound command are correct? Without a scope it is difficult for me to determine what the frequencies are.
The note value of 116 was obtained from this post: http://www.picaxeforum.co.uk/showthread.php?t=7634&highlight=sound+frequency
Many thanks.