PIC PORT 'special' pins


Closed Thread
Results 1 to 2 of 2
  1. #1
    barkerben's Avatar
    barkerben Guest

    Default PIC PORT 'special' pins

    Hi,

    I had a quick question about 'special' pins on the PIC, such as the interrupt pins, or the USART pins.

    If we are not making use of these special features, we can forget the pins are different from any others. If we are using them, and have enabled all the neccesary control registers, then does it matter, for instance, whether we set the pins to high or low, input or output?

    In other words, once the special status of the pin has been enabled, does this overide anything else we try to do to it.

    Should I set the TRIS registers just to be safe to ensire that I can't, for instance, send the pin high that is being used to receive hardware usart, or is this all done automatically somewhere anyway...?


    Cheers,


    Ben

  2. #2
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: PIC PORT 'special' pins

    Hi Ben,
    Each special function pin / port will have different attributes. The only way to be sure of proper operation is to read and re-read the specs for the specific part.
    Then - if you're like me - you'll kill off a few chips while 'experimenting', before figuring out how it's pins / ports should be configured :-O

    I always (attempt to) set every special function register to a 'known' state at the beginning of any code to try and avoid any conflicts later on in the code.

    Arch

Similar Threads

  1. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 11:34
  3. PIC - 8 Pins - 6 Output Pins ?
    By DanPBP in forum Off Topic
    Replies: 0
    Last Post: - 22nd October 2007, 01:23
  4. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 23:35
  5. How can i control pic input pins order?
    By tanero in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th August 2005, 13:46

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