Control a Radio PLL with a PIC


Closed Thread
Results 1 to 40 of 54

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Seems like the basic idea. Not sure what language that is but the idea looks about right
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Jun 2011
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Quote Originally Posted by cncmachineguy View Post
    Seems like the basic idea. Not sure what language that is but the idea looks about right
    Uh Oh. Thought it was PBP. What did I do wrong?

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Ray, I stand corrected. I was thinking peek came from a different language, but I see it is a valid pbp command, though according to the book not recommended.

    As for the movelf, well I think that is some ask haunting you. In pbp you would just use
    Code:
    plldataout =plldata
    So yes I still think that's the basic idea.
    Oh yea, loop is a reserved word in latest release of pbp, so not a good choice for your label.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  4. #4
    Join Date
    Jun 2011
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Yes, I corrected that. Thanks.
    Where do I find the reserved words? Looked through the manual. Couldn't find them.

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    can't answer that one, I must say I have ony read it here MANY times, so I assume it to be true. I think it might be in the front or the back in a section talking about differences from previous versions or differences from BS2. Not sure.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Jun 2011
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    I'm trying to assign 4 pins from PORTA as the CHSEL f/register as follows;

    CHSEL = PORTA.1.2.3.4
    Get this error;
    C:\PBP\PLL-CPU.BAS ERROR Line 24: Bad variable modifier: .1.2.3.4
    I've tried different variations on this (1-4) (1234) etc. but with the same results.
    What is the correct syntax for doing this? I only want to use these 4 pins.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Quote Originally Posted by RayL113 View Post
    I'm trying to assign 4 pins from PORTA as the CHSEL f/register as follows;

    CHSEL = PORTA.1.2.3.4
    Get this error;
    C:\PBP\PLL-CPU.BAS ERROR Line 24: Bad variable modifier: .1.2.3.4
    I've tried different variations on this (1-4) (1234) etc. but with the same results.
    What is the correct syntax for doing this? I only want to use these 4 pins.
    You need to use BitWise masks for that

    chsel = (PORTA>>1) & $0F

    you'll need to use that line each time you want to read from PORTA.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Quote Originally Posted by RayL113 View Post
    Where do I find the reserved words? Looked through the manual. Couldn't find them.
    Look in appendix C in your manual.

    http://melabs.com/resources/pbpmanual/
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  9. #9
    Join Date
    Jun 2011
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Control a Radio PLL with a PIC

    Quote Originally Posted by rsocor01 View Post
    Look in appendix C in your manual.

    http://melabs.com/resources/pbpmanual/
    Thanks, looked right over that.

Members who have read this thread : 0

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