Help in trying to set pins functions


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Help in trying to set pins functions

    Thanks for the input, I do not understand CONFIG bits and PLL is enabling, where can I find how to do this? I have look at lots of basic code and have not seen any reference to CONFIG bits so don't know where to start. I still can not workout how to set all the ports to digital when I try to use ANSELA, ANSELB, ANSELE I can not get the code to compile just get the following errors C:\PBP\PBPPIC14.LIB 463 : Symbol not previously defined (ANSEL) and Error[113] C:\PBP\PBPPIC14.LIB 449 : Symbol not previously defined (ANSELH)...

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Help in trying to set pins functions

    My bad perhaps, ANSELE is not implemented in the 28pin devices (722, 723, 726), only in the larger variants in the family. ANSELA and ANSELB should work though.

    PBP has a default CONFIG for each device which it uses if you don't tell it otherwise. You can either override the CONFIG in your programmer software or put the changes in your code (recommended). If you have PBP3 the open the manual and look at the #CONFIG directive, that's what you use to override the defaults. If you have an older version you need to either edit/change the default config OR comment it out and add your own in your code. For more info on that, take a look at this thread.

    /Henrik.

Similar Threads

  1. String types and functions AND Functions with arguments
    By PickyBiker in forum PBP Wish List
    Replies: 3
    Last Post: - 1st January 2015, 09:00
  2. functions
    By Charles Linquis in forum PBP Wish List
    Replies: 2
    Last Post: - 9th November 2009, 04:13
  3. FUNCTIONS in PBP
    By Mostafa in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th June 2007, 08:20
  4. functions
    By BigWumpus in forum PBP Wish List
    Replies: 1
    Last Post: - 13th June 2006, 17:05
  5. Functions
    By AndyP in forum PBP Wish List
    Replies: 4
    Last Post: - 6th May 2005, 12:00

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