If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #72
Joined: Thu Feb 09 2006, 08:29AM
Location: UK St. Albans
Posts: 1659
Not sure whether this should go into general science, computing or chatting as we don't have a maths category, but I figure this is the closest.
I get pi44ed off with DDS chips that provide only 2^N resolution, so I've built a synthesiser which has an Arbitrary Modulus Accumulator. This leads to my problem, I can't get my head round how to specify an exact resolution that can be obtained with it. I suspect there are some useful integer theorems which would allow me to generalise rather than to examine every one of the 2^46 possible settings, unfortunately the only one I know about is modulus arithmetic (which is helpful in working out any given setting).
The accumulator I'm using is 2^22 long, this is then augmented with another acumulator (m) which can be any integer up to 2^24 long. The total length of this composite accumulator is therefore m.2^22, where m<= 2^24. I accumulate an integer R, where for reasons I won't go into, m.2^22 < R < 2.m.2^22, (that is R/(m.2^22) is between 1.000 and 1.9999) so that my output frequency is given by fout = (clock*m*2^22)/R, which is somewhere between 50% and 100% of clock, where clock has lots of factors of 2 and 5 in it.
Now the problem is not given some required output frequency, to find the R and m that generates it exactly, or the best R and m for the smallest error, those are fairly straightforward. The problem is not to find an expression that will give all exact output frequencies. The problem is to find a simple expression that gives a nice subset of the exact output frequencies that can be generated by this setup, and a proof for that.
For instance with a clock frequency of 108.38MHz, I know that there are frequencies specified to 0.1Hz which cannot be generated exactly. However I have not yet found any frequencies which are multiples of 10Hz, or 10Hz/3, which I cannot make exactly. Which leads me to suspect that all frequencies of the form N.10Hz/Q, where N is an integer, Q is a small integer, and N and Q are chosen such that R ends up in the right range, can be generated exactly. But I don't want to do an exhaustive search through all zillions of possible settings and don't see a way to prove it theoretically.
Registered Member #65
Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
The theories state any number is a compound of several primes of exponent n that can generate all members of set Z. If two given numbers are decomposed into a given set of primes describing the numbers there are several operations may be performed in component form. For instance, if one was to take the ceiling of the n exponents of each prime component the least common multiple is generated (the floor would yield the greatest common factor.) If what your asking for is a discrete solution in Z not R it sounds like a discreet non-homogeneous weak inductive solution.
One cannot be specific and vague at the same time can they? There may be some complications with discussing related subject matter in this area – please clarify your exact problem in pseudo-code or commented notation for easier reading.
Registered Member #72
Joined: Thu Feb 09 2006, 08:29AM
Location: UK St. Albans
Posts: 1659
Ha! the teddy-bear effect strikes again! Just describing the problem clearly enough to post it got me shaken out of my thinking rut and to the solution. Sorry to have bothered you.
and it turned out 10Hz/3 was wrong.
How do I lock this thread, or do I need to pm a mod?
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.