Forum >How To Change Output Voltage of Pin 13 to 60-110 mHz in roughly 0.05 in a Loop
ArduinoGeneral

How To Change Output Voltage of Pin 13 to 60-110 mHz in roughly 0.05 in a Loop

userHead MelvinOdellTucker 2014-05-08 07:59:37 1694 Views1 Replies
Currently I am not using a MISO (Master In Slave Out) Pin but I am using Pin 11 as MOSI (Master Out Slave In), Pin 13 as SCK (Serial Clock) and Pin 8 as SS (Slave Select), My question is how do I set the drive frequency to 60.00 MHz on Pin 13 do a analogRead() on Pin A0 and then set the drive frequency to 60.05 MHz on Pin 13 and do another analogRead() on Pin A0. This is a loop I would like to run from 60-110 mHz in roughly 0.05 mHz increments. is this possible if so can you provide a simple example of how I can do this in a loop. So basically I would like to set the output voltage of Pin 13 to 60-110 mHz in roughly 0.05 mHz increments.

Note:
60-110 mHz in roughly 0.05 mHz increments (10 bit / 1024 divisions over that range)
2014-05-08 22:17:34 Hi MelvinOdellTucker, I am a little bit confused and you may explain or point me in the right direction once more.
You are talking about setting the frequency of pin 13 to 60MHz.

For that question I need to verify what board you are using. Is it an Arduino Leonardo with 16MHz? If so then I am afraid that you are not able to achieve an output of 60MHz so easy as for that you would need a frequency multiplier.

Please check your setup and try to confirm your questions before we proceed with the rest of your post.
userHeadPic lumi