CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

int40 to string
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Eddy71ua



Joined: 23 Sep 2009
Posts: 55
Location: Ukraine

View user's profile Send private message Visit poster's website

PostPosted: Tue Jun 20, 2023 12:00 am     Reply with quote

I agree, the number is very large. But modern radio communications operate on very high frequencies. Normal WiFi operates at 5,600,000,000 or so frequencies. And that doesn't fit into 32 bits...
Sad
Ttelmah



Joined: 11 Mar 2010
Posts: 19236

View user's profile Send private message

PostPosted: Tue Jun 20, 2023 12:09 am     Reply with quote

Yes, but you then have to think of the real resolution. Normal crystals
only manage 10ppm. So taking a reading with more than 5 digits is
basically fallacious. Even a TCXO will normally only go to 1ppm. So 6
usable digits. A good OCXO can push you to 0.05PPM, so 7.5 usable
digits of resolution. It is fundamentally pointless to be handling and counting
more digits than actually mean anything. You appear to be trying to
achieve resolution beyond your actually accuracy. Needs thinking about....
Eddy71ua



Joined: 23 Sep 2009
Posts: 55
Location: Ukraine

View user's profile Send private message Visit poster's website

PostPosted: Tue Jun 20, 2023 3:46 am     Reply with quote

As a reference oscillator is used quality TCXO 10 MHz + calibration by GPS-receiver.
temtronic



Joined: 01 Jul 2010
Posts: 9120
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Jun 21, 2023 5:03 am     Reply with quote

I'd still like a 'link' to the actual 'counter code'/ article / hardware. Most frequency counters I've seen/ made over the decades had 'ranges' based upon frequency of interest, so I'm curious as to how your 'counter code' actually samples a 5GHz signal down to the Hz.
Eddy71ua



Joined: 23 Sep 2009
Posts: 55
Location: Ukraine

View user's profile Send private message Visit poster's website

PostPosted: Thu Jun 22, 2023 3:16 am     Reply with quote

I can't show you the code. But nothing revolutionary. The ADF4106 prescaler is used to work with the upper ranges. And of course mathematical processing of the accumulated results.
PrinceNai



Joined: 31 Oct 2016
Posts: 455
Location: Montenegro

View user's profile Send private message

PostPosted: Thu Jun 22, 2023 3:54 am     Reply with quote

I'm not that much interested in the code or hardware. I'd just like to see those five bytes and into what they need to translate. So input and the desired output.
Ttelmah



Joined: 11 Mar 2010
Posts: 19236

View user's profile Send private message

PostPosted: Thu Jun 22, 2023 5:28 am     Reply with quote

This library:
[url]
https://www3.cs.stonybrook.edu/~skiena/algorist/book/programs/bignum.c
[/url]

I have used before, and does compile OK in CCS (be careful, remember
CCS default integer is unsigned, and this requires 'int' to be signed).
temtronic



Joined: 01 Jul 2010
Posts: 9120
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jun 22, 2023 6:15 am     Reply with quote

hmmm, isn't this the exact thing that 'AI' everyone raves about is supposed to be able to do ???

I agree with the Prince, gotta SEE the input data to decide how best to convert to desired output.
Ttelmah



Joined: 11 Mar 2010
Posts: 19236

View user's profile Send private message

PostPosted: Thu Jun 22, 2023 6:21 am     Reply with quote

Yes, some real data about the layout of the bytes is really essential to
answering at all well....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group