Keyboard Shortcuts
Likes
- BITX20
- Messages
Search
Re: Si5351 Programming Flowchart
Pavel Milanes Costa
开云体育Hi to all. The flowchat is a instructive guide for the curious of how to doit without float point math and an expression of the KISS principle. It's just a cheat sheet to learn from. The trick is to understand the way he (like Gerry) find a, b and c not needing floating point math. (for the PLL/VCO Msynths case is) a = int(Fvco/xtal) b = Fvco % xtal (module, aka: rest of the division) c = xtal For example Gerry do a do..while to find a value of b/c that match the allowed size of c, he need it because he is working with the output Msynth dividers not the PLL/VCO Msynth, in his case c = fout and is variable. In the later case (moving the PLL/VCO Msynth, output Msynth dividers are fixed) c is fixed and equal to the Xtal and we know it already then we can do a simple x >> 5 to both b/c to retain maximum accuracy and make it fit on the register. If we do that just set the output Msynth divider to a integer & even value to minimize jitter or phase noise. In Gerry routines he fixes the VCO and moves the output divider Msynth and that make some jitter or phase noise (almost negligible in real applications, I know) and makes 3 outs from just one fixed VCO and does not handles the R values or the DIV_BY4 feature limiting the full range of output frequencies (not needed on his target application, I know).This is just another way of doing things, a way that can be better understood because it uses a simple and elegant image (flowchart), to make life (& code) easier (& smaller)... BTW I found a possible bug that can haunt more than one in the routines of computing MSx_P2. A tip for the "math" experts... and a common fault. As per the data: MSx_P2 = 128 * b - c * floor (128 * b / c) Right? It's very tempting to reduce it but the floor functions is in there... let see... floor is the lower integer for that float number, hum... Floor is on the C of Gcc the compiler used by the arduino project but it implies the use of floating point math hence bigger code, just eliminate it and do the math, let try to reduce it... MSx_P2 = (128 * b) - (c * 128 * b / c) MSx_P2 = (128 * b) - (128 * b) ---> (c is eliminated as it's * and /? in the expression) MSx_P2 = 128 * (b - b) ---> ( hum....) MSx_P2 = 128 * 0 ---> (HUMMMM!!!) MSx_P2 = 0 ---> (WTF !!!!) Doing some math and wall head-hiting you can conclude that the floor function is instructing you to IGNORE the use of fractions and then you get a value in MSx_P2 that it related to the amount of error or rest of division of doing things (math) with integers... hence the floor function... forcing you to use just integers... nice. For example Gerry users in his code this: msxp2 = 128 * msb - 128 * msb / msc * msc; If you play that same function with human and integer rules it play well and result is different from zero, but if you use floating point math it always equals to ZERO! Let's play it with me in full integer math let's say msb = 900 and msc = 1000 msxp2 = 128 * 900 - 128 * 900 / 1000 * 1000; msxp2 = 115200 - 115200 / 1000 * 1000; msxp2 = 115200 - 115 * 1000;?? // <<<<=== here is the floor in action (result in float is 115.200 we get it down to 115, all with the magic of integer math) msxp2 = 115200 - 115000; msxp2 = 200; In this case 200 is a relation of the error of using integer math... interesting, mind you how the chip use it internally For correctness and just to be sure to maintain the best accuracy you must get sure the compiler do the 128*b/c * c in the correct order, that is as per Gerry code fragment: msxp2 = 128 * msb - 128 * msb / msc * msc; Must be forced to execute in the correct order by placing some parenthesis to maintain more accuracy. msxp2 = 128 * msb - ((128 * msb) / msc) * msc; Firmware size impact is unchanged, compiled code is the same (sha256sum) with and without the parenthesis so GCC compiler is doing he job right, beware of others... I mentioned this because I have a ham fellow in university (freshman) that hit his head against this wall a few times, "that's impossible, that has no sense.... MSx_P2 is always zero..." he said... Just my two cents for other that may be in troubles like this understanding the chip. Cheers, Pavel. El 12/02/18 a las 12:07, JuanCarlos
Berberena Gonzalez escribió:
Hi Guys |
Re: Mailbox metal case 3x6x9 inch
#ubitx
KC9SGV
toggle quoted message
Show quoted text
On Feb 12, 2018, at 2:33 PM, Doug W <dougwilner@...> wrote:
|
Re: uBITx For Sale
Stephen Johnson
I can use everything except the DSP filter if still available. Steve, N2FT On Mon, Feb 12, 2018 at 3:09 PM, Glenn AE0Q <ae0q@...> wrote: I just today received my uBITx (ordered on 19 Dec) but things have changed and I don't have time for the project. |
Re: Si5351 Programming Flowchart
Yup, not much point in getting too carried away in creating a VFO for the Bitx40.
toggle quoted message
Show quoted text
Initial accuracy of the si5351bx routines can be calibrated to be quite good by adjusting si5351bx_vcoa But a slight change in temperature and the 25mhz reference will drift a few hz, so stability will be an issue If an application comes up where greater stability is required, the 25mhz (or 27mhz) reference could come from an ocxo or tcxo, or be GPS disciplined, or perhaps you constantly adjust a knob for zero-beat with a known accurate radio station such as wwv. Jerry, KE7ER On Mon, Feb 12, 2018 at 12:56 pm, Pavel Milanes Costa wrote: El 12/02/18 a las 15:35, Jerry Gaffke via Groups.Io escribió: |
Re: Blown by nearby transceiver
#bitx40help
toggle quoted message
Show quoted text
On Feb 12, 2018, at 1:28 PM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:
|
Re: wrong frequency after software change.
#ubitx
That should read ‘rewiring’ Not rewriting! On Tue, 13 Feb 2018 at 9:54 AM, Mike Woods <mhwoods@...> wrote:
|
Re: Si5351 Programming Flowchart
Pavel Milanes Costa
El 12/02/18 a las 15:35, Jerry Gaffke via Groups.Io escribió:
Calculations within the si5351bx routines are much better than than 1ppm accurate, perhaps more like 0.01ppm.If the math/hardware has a better accuracy than the Xtal itself then you have at the output just the stability of the Xtal... right? 73 Pavel CO7WT |
Re: wrong frequency after software change.
#ubitx
Michael The uBITx and the BITx40 have different circuitry.? In particular the uBITx has 2 IF stages (45MHz and 12MHz) whereas the BITx40 only has one at 12 MHz.? Some changes would be required to the software before the uBITx software will work on the BITx40.? Also some rewriting would be required as different pin outs are used (particularly if the BITx40 has been modified with Allard mods. I am working on changing over one of my BITx40s to run on uBITx.? I will report on progress to the group. There is no difference between Raduino devices except the header confuguration.? You should use either the HF Signals BITx4o sketch or the improved sketch from Allard, at least in the short term. Mike ZL1AXG On Tue, 13 Feb 2018 at 6:27 AM, Michael Shreeve <shreevester@...> wrote:
|
Re: Si5351 Programming Flowchart
Calculations within the si5351bx routines are much better than than 1ppm accurate, perhaps more like 0.01ppm.
toggle quoted message
Show quoted text
As I recall, the math was accurate within 0.2hz when doing calculations for a high side vfo on the Bitx40 of 19mhz.? On Mon, Feb 12, 2018 at 09:48 am, Jerry Gaffke wrote: The accuracy of the calculations is down around 1ppm, considerably better than the stability of the 25mhz reference oscillator. |
Re: Blown by nearby transceiver
#bitx40help
Good point, if we're worried about magnetic field coupling then tinfoil won't do much good.
toggle quoted message
Show quoted text
I'm not sure exactly how the power to blow 1/4 Watt resistors would be communicated, was guessing it might be straight magnetic coupling like a transformer, though could be electromagnetic. I doubt it is straight electrostatic, not enough current with no conductor between unless the air ionizes as in a lightning bolt. If electromagnetic (radio waves), a Faraday cage around the radio such as that tinfoil is in order, and this is the sort of shielding usually found in commercial gear.? Such shielding might help resolve the problem of hearing audio tones from the 16mhz Nano oscillator, or noise from nearby computers and power supplies. My rig is stitting out open-faced on a piece of plywood, front and back panels of scrap PC screwed to the plywood, the main board has the standoffs installed upside down so the 4-40 threads are held in place by holes drilled into the wood. Works fine, though I have a quiet environment.? Easy to work on, I can just pick the board up and pop the connectors off. When posting that original tinfoil hat comment my thought was: ? ? "If it can do that to 1/4 Watt resistors,?what can it do to my brain?" Perhaps we will learn that there was a cabled connection, and this is all moot. I spent about 6 hours with cell phone at my ear a couple days ago trying to sort out? some issues with our Verizon cellphone account.? ?I really should have been using a headset. I have heard occasional reports like Raj's though am not aware of a definitive study. Am thinking a 4 Watt transmitter 1/4" from my brain for long periods is best avoided. Jerry, KE7ER On Mon, Feb 12, 2018 at 10:57 am, Arv Evans wrote:
|
RadI2Cino boards temporarily sold out!
#ubitx
Ladies & Gentlemen, the response to this offering has been overwhelming.? The initial run of boards, both bare boards and the option 2 boards with the SMD semiconductors already installed from this initial offering are SOLD OUT.? More boards are on order but due to the Chinese New Year they won't be shipping until around the end of the month.
We ask that you please hold all inquiries and orders until I re-announce the availability of the next batch.? We have decided NOT to allow any pre-ordering to avoid the tremendous overhead involved in keeping track of incoming orders while trying to do other design work.? Thank you very much for your understanding and we are very sorry for the inconvenience.? The RadI2Cino boards will again be available just not immediately. Jim Sheldon - W0EB |
uBITx For Sale
Glenn AE0Q
I just today received my uBITx (ordered on 19 Dec) but things have changed and I don't have time for the project.
I've collected some things I was going to use to build it, all is for sale. uBITx? unopened except for photos? ?$109 Adafruit 10k Log pot (with 1/4" dia shaft) and 2 black knobs (blue stripe)? $5.00 SOTABeams CW DSP Audio Filter? $42 Beautiful aluminum enclosure (2.4" x 6.22" x 7.2" inside dimensions)? $20 See the ebay link for assembled photos of the box. Photos of all attached. Would like to sell all together but not necessary. Glenn AE0Q ![]()
uBITx_Adafruit_pot_knobs_SOTABeams_filter.jpg
![]()
uBITx_Adafruit_pot_knobs.jpg
![]()
uBITx_SOTABeams_filter.jpg
![]()
uBITx_box 002.jpg
![]()
uBITx_box 003.jpg
![]()
uBITx_box 004.jpg
![]()
uBITx_box 005.jpg
![]()
uBITx_box 006.jpg
|
Re: Second batch of uBITX shipping?
#ubitx
开云体育Ordered on 18 Dec.? Shipped 7 Feb.? Received 11 Feb. Mike K5ESS ? From: [email protected] [mailto:[email protected]] On Behalf Of Gary Shriver
Sent: Monday, February 12, 2018 12:58 PM To: [email protected] Subject: Re: [BITX20] Second batch of uBITX shipping? ? When did you order? ? ? From: [email protected] [mailto:[email protected]] On Behalf Of K5ESS ? Got my uBITX yesterday via DHL (yes on Sunday). Didn’t have to sign.? Just a big yellow envelope left at my doorstep. Mike K5ESS ? From: [email protected] [mailto:[email protected]] On Behalf Of Art Howard ? Steve ?I should get mine today I noticed that it's in Minneapolis now. ? Do you know if the package has to be signed for ? Art ? On 12 Feb 2018 7:59 am, "S. Porter" <srporter@...> wrote: Art, I also ordered mine on the 18th and mine is also sitting in Cincinnati for the last day. ?It is indicated that once it hits the USA it is USPS. Was supposed to deliver this last Friday so I figure maybe Tuesday here in Minnesota. ? |
Re: Second batch of uBITX shipping?
#ubitx
Got mine today. ordered December 18th. Arrived at my place via Courier Service? On 26 Jan 2018 2:37 am, "dj0hf" <dj0hf@...> wrote: Ordered on the 16th December - Nothing yet. |
Re: Second batch of uBITX shipping?
#ubitx
It's here...? Ordered on December 18th. On 12 Feb 2018 8:51 am, "Art Howard" <k0kuk.vhf@...> wrote:
|
Re: RadI2Cino - I2C replacement for the uBITX Raduino
#ubitx
Ordering for the option 2 boards is temporarily closed - out of boards to make them with.? The response was far more than expected.? There may be 4 or 5 bare boards (option 1) left but those are rapidly disappearing as well.?
Anticipate more boards in about 15 days but until then the order window is closed. I'll announce when they are again available in this thread here. Jim Sheldon, W0EB |
Re: Second batch of uBITX shipping?
#ubitx
开云体育When did you order? ? ? From: [email protected] [mailto:[email protected]] On Behalf Of K5ESS
Sent: Monday, February 12, 2018 10:33 AM To: [email protected] Subject: Re: [BITX20] Second batch of uBITX shipping? ? Got my uBITX yesterday via DHL (yes on Sunday). Didn’t have to sign.? Just a big yellow envelope left at my doorstep. Mike K5ESS ? From: [email protected] [mailto:[email protected]] On Behalf Of Art Howard ? Steve ?I should get mine today I noticed that it's in Minneapolis now. ? Do you know if the package has to be signed for ? Art ? On 12 Feb 2018 7:59 am, "S. Porter" <srporter@...> wrote: Art, I also ordered mine on the 18th and mine is also sitting in Cincinnati for the last day. ?It is indicated that once it hits the USA it is USPS. Was supposed to deliver this last Friday so I figure maybe Tuesday here in Minnesota. ? |
Re: Blown by nearby transceiver
#bitx40help
Jerry KE7ER While tinfoil (even the tinfoil hat) can lessen exposure to static charges, how much effect does it have on electro-magnetic energy.? Seems that a thick steel chassis (or hat)? might be better for limiting both ES and EM signal levels. Arv? K7HKL _._ On Mon, Feb 12, 2018 at 10:54 AM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote: Jury is still out as to how those parts got blown, and I am genuinely curious. |