How to control the Si5351 pls ?


+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    303

    Default How to control the Si5351 pls ?

    Good day to all in this forum.
    I will like to know if there is an algorithm capable of controlling the Si5351 frequency generator.
    I really do need just a simple frequency to data_out to set up the correct frequency on the generator...
    Thanks in advance for any assistance.
    Regards,
    Ambro

  2. #2

    Default Re: How to control the Si5351 pls ?

    Did you ever get this working?

  3. #3

    Default Re: How to control the Si5351 pls ?

    Maybe I'll ask a broader question. The SI5351 device can generate a number of independent clocks, from a few Hz to over 100 MHz. Sounds pretty useful as a replacement for a VFO in radio projects. I'm pretty sure I can get it going, but the command structure is quite complicated, and I was wondering if anybody had implemented it in PBP yet? I have no problem with I2C or actually talking to the device, I was just hoping to save time on implementing the commands. There is an Arduino sketch for it, but reverse engineering that is probably more work than just starting from scratch. Has anybody taken a poke at this one?

  4. #4
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    303

    Default Re: How to control the Si5351 pls ?

    good day to all in this forum,

    is there some implementation of PICBASIC code for controlling such a devices up to now ?

    Thanks
    Regards,

  5. #5

    Default Re: How to control the Si5351 pls ?

    The silence remains deafening :-)

  6. #6
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    303

    Default Re: How to control the Si5351 pls ?

    I think nobody has implemented it...

    In the ham radio club everybody is very interested on this item.
    Still hoping.
    iw2fvo,

  7. #7
    Join Date
    Jan 2005
    Location
    France
    Posts
    86

    Default Re: How to control the Si5351 pls ?

    hello here is F1CHF
    did you try a Google search with SI5351
    I see some example
    try
    https://www.google.fr/search?q=SI535...w=1024&bih=679

    Francois

  8. #8

    Default Re: How to control the Si5351 pls ?

    Francois - I did, and have a really good idea how to control it. I can't actually imaging doing anything anymore without online research.
    However, the calculations require floating point math, which PBP does not support. If I want to go Arduino, I can be done this afternoon. There are lots of examples. In fact, I have an Arduino version running.
    If I want to use PBP, it will be many weeks of coding. So I was hoping somebody had an elegant solution for the calculation already worked out that I could use as an example.

  9. #9
    Join Date
    May 2013
    Location
    australia
    Posts
    1,517

    Default Re: How to control the Si5351 pls ?

    This is more entertaining than Free to Air TV

  10. #10
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    303

    Default Re: How to control the Si5351 pls ?

    I see a lot of Arduino / C code on the web ...
    nothing in PBP ! up to now .
    Still hoping.
    regards

  11. #11
    Join Date
    May 2013
    Location
    australia
    Posts
    1,517

    Default Re: How to control the Si5351 pls ?

    Quote Originally Posted by Charlie View Post
    If I want to use PBP, it will be many weeks of coding. So I was hoping somebody had an elegant solution for the calculation already worked out that I could use as an example.
    if you show us the calculations you are trying to achieve and where the results fall short . along with the code/methods you have tried then perhaps more eyes can offer some suggestions . its not absolutely necessary to be interested in or have any use for the chip to enjoy the coding challenges , this seems to be your best shot here imho.
    I assume some sort of effort has been made by those seeking a handout
    This is more entertaining than Free to Air TV

  12. #12

    Default Re: How to control the Si5351 pls ?

    Quote Originally Posted by richard View Post
    i
    I assume some sort of effort has been made by those seeking a handout
    Nice - I love how we are all polite to each other in the forum.

  13. #13
    Join Date
    May 2013
    Location
    australia
    Posts
    1,517

    Default Re: How to control the Si5351 pls ?

    the fp library can be easily incorported into pbp and did the job admirably for this complex calculation
    overheads were minimised by identifing and precalculating as many constants as possible
    i have not provided the pbp code since the op of linked thread is still working on his own solution
    http://support.melabs.com/forum/picb...erature-sensor
    C representation for clarity of calculation strategy

    Code:
    'const float k[]={-611.715,0.032791,-7.2032e-7,9.9704e-12,-5.6892e-17};//k0 to k4 as constants
    'float adc16=36636.0,tres;                 int res    run tot
    'tres  = k[4]*adc16*adc16*adc16*adc16;//  -102.49    -102.49
    'tres += k[3]*adc16*adc16*adc16;//         490.27     387.78
    'tres += k[2]*adc16*adc16;//              -966.81    -579.03
    'tres += k[1]*adc16;//                    1201.33     622.3
    'tres += k[0];//                          -611.715     10.585
    'result             //                      10.59
    despite the sarcasm if someone provides a formula/method and some figures, who knows i might play along.
    i really can't be bothered reading the data sheet and coming up to speed for a device i won't use ever.
    its your call.

    pic of usual crappy ds version of formula attached
    Attached Images Attached Images   
    Last edited by richard; - 12th December 2018 at 12:52.
    This is more entertaining than Free to Air TV

Similar Threads

  1. sms to control pic..pls help...
    By Ziki in forum mel PIC BASIC Pro
    Replies: 53
    Last Post: - 12th April 2010, 21:19
  2. Help me pls
    By darylbrown2005 in forum mel PIC BASIC
    Replies: 3
    Last Post: - 7th March 2009, 19:40
  3. Help Me Pls,sampling!!!!!!!
    By hazda in forum mel PIC BASIC
    Replies: 1
    Last Post: - 24th August 2008, 14:11
  4. pls help me
    By london in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th November 2007, 08:02
  5. VERY Urgent. Pls Help ME...
    By weberclas in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd December 2004, 00:18

Members who have read this thread : 23

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts