PIC16F777 - setup


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Location
    cape town, south africa
    Posts
    19

    Default PIC16F777 - setup

    Hi All,

    I hope someone can end these hours of frustration. I try very hard to find relevant threads before adding my problems to the list, but I am at a loss;

    I'm trying to use a PIC16F777, with three HPWM and all other pins set to digital I/O's.

    It's the config registers that get me - I've read the datasheet, but just don't understand how to translate that to PBP!

    Thanks!

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: PIC16F777 - setup

    DT

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


    Did you find this post helpful? Yes | No

    Default Re: PIC16F777 - setup

    I think it's more about CCP register than config fuses.

    Sure enough, there's code example in here showing how to use the three channels.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default Re: PIC16F777 - setup

    Steve

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

  5. #5
    Join Date
    Mar 2011
    Location
    cape town, south africa
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Re: PIC16F777 - setup

    Quote Originally Posted by Darrel Taylor View Post
    Thanks Darrel,

    I have been through this - but it's still not clear to me;

    The files in my assembler's folder are *.epc, so not exactly what is discussed in the post you have forwarded. For instance, in my PIC16F777 file is the following;

    ConfigLoc=0
    ConfigBase=0x3fff
    ConfigMask=0x31ff
    GroupName="Oscillator"
    GroupMask=0x0013
    ItemName="EXTRC ClockOut"
    ItemValue=0x0013
    ItemName="EXTRC"
    ItemValue=0x0012
    ItemName="INTRC ClockOut"
    ItemValue=0x0011
    ItemName="INTRC"
    ItemValue=0x0010
    ItemName="EC"
    ItemValue=0x0003
    ItemName="HS"
    ItemValue=0x0002
    ItemName="XT"
    ItemValue=0x0001
    ItemName="LP"
    ItemValue=0x0000

    I assume the "group mask" is the setting used if not otherwise defined. I do not understand how to change these in the @ define statement. Thanks for your help!

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: PIC16F777 - setup

    The .epc files are part of the melabs programmer folder.
    Those are for the epic, U2 and field programmers only, they have nothing to do with your PicBasic Pro program.

    The assembler is in
    c:\program files\microchip\mpasm suite - 32-bit systems
    c:\program files (x86)\microchip\mpasm suite - 64-bit systems
    DT

  7. #7
    Join Date
    Mar 2011
    Location
    cape town, south africa
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Re: PIC16F777 - setup

    Indeed!

    Many many thanks guys!

Members who have read this thread : 1

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