If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
External clock
6 posts
• Page 1 of 1
External clock
Ok gang,
I have another crazy question for you all to ponder. I am working on another crazy device, but it needs a clock in the megahertz range. Since I can not generate this high frequency internally, is it possible to bring it in externally? Would it then even work if I can bring in the high frequency clock?
Thanks all!
Later then, BobF.....
I have another crazy question for you all to ponder. I am working on another crazy device, but it needs a clock in the megahertz range. Since I can not generate this high frequency internally, is it possible to bring it in externally? Would it then even work if I can bring in the high frequency clock?
Thanks all!
Later then, BobF.....
- BobF
- Posts: 598
- Joined: Mon Apr 20, 2015 9:54 pm
Re: External clock
I believe the limit is the sample rate Bob, so typically 44.1khz would be the maximium.
Cheers
Spogg
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: External clock
In theory you can oversample the streams into megahertz range. One way to do this is using "loop" in code component. All the oversampled code must be inside that loop or you need to setup some buffers to transfer data between components.
That said, MHz is just 3 orders of magnitude from frequencies at which processors operate. That means you only have a few hundred instructions per sample (at best) before you run out of time. It will probably be even less, because your RAM access may become a bottleneck.
Typically, this kind of processing is done using GPU if it's possible to write it down the operations on samples as parallel instead of sequential.
That said, MHz is just 3 orders of magnitude from frequencies at which processors operate. That means you only have a few hundred instructions per sample (at best) before you run out of time. It will probably be even less, because your RAM access may become a bottleneck.
Typically, this kind of processing is done using GPU if it's possible to write it down the operations on samples as parallel instead of sequential.
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: External clock
Thanks for the comments guys!
Say KG_is_back, if I could get away with say 100K to 500K would that be better and do you have an example I would understand?
What I need is a square wave clock frequency of 100K Hz to 500K Hz if possible!
Thanks again for your help, BobF.....
Say KG_is_back, if I could get away with say 100K to 500K would that be better and do you have an example I would understand?
What I need is a square wave clock frequency of 100K Hz to 500K Hz if possible!
Thanks again for your help, BobF.....
- BobF
- Posts: 598
- Joined: Mon Apr 20, 2015 9:54 pm
Re: External clock
wait... so you are trying to output analog clock (presumably via soundcard DA output)? Presumably to drive some sort of external device? I'm afraid that is not practically possible. Even if you would have a soundcard beefy enough to output that, the actual analog output on most soundcards is actually low-passed at about 20kHz. If you need MHz speed square-wave clock I suggest going the analog route. It should be possible to find such clocks that have frequency controlled via micro-controller.
If what you are trying to do is the other way around - using MHz analog clock as an input, the same problems apply. Except in this case the clock would be basically pointless - your operating system can't respond quickly enough to make out anything useful out of it, other than taking it in as regular audio stream input.
I again would suggest going an analog route. Find a device that converts frequency of input signal into DC voltage (presumably a low/high pass filter attached to a high-frequency rectifier of some sort) and use some analog pin to readout the value by your computer.
If what you are trying to do is the other way around - using MHz analog clock as an input, the same problems apply. Except in this case the clock would be basically pointless - your operating system can't respond quickly enough to make out anything useful out of it, other than taking it in as regular audio stream input.
I again would suggest going an analog route. Find a device that converts frequency of input signal into DC voltage (presumably a low/high pass filter attached to a high-frequency rectifier of some sort) and use some analog pin to readout the value by your computer.
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: External clock
Hello KG,
Sorry this is late, been busy taking care of my granddaughter.
Here is what I have been working on, see attached.
Guess I will just self it for now.
Thanks for all your help, BobF.....
Sorry this is late, been busy taking care of my granddaughter.
Here is what I have been working on, see attached.
Guess I will just self it for now.
Thanks for all your help, BobF.....
- Attachments
-
- SigmaDeltaMod.png (10.46 KiB) Viewed 16515 times
- BobF
- Posts: 598
- Joined: Mon Apr 20, 2015 9:54 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 74 guests