tris


Closed Thread
Results 1 to 4 of 4

Thread: tris

  1. #1
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default tris

    Hi, stupid question (i should know the answer by now)

    when im setting up the tris's which end is 0? is porta.0 10000000 or 00000001?

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    TRISA = %00000001 would set PORTA.0 to an input.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    ahh, so it works like normal binary then.

    thanx

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Yep. Normal binary...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. TRIS setting for the DS1302
    By Dennis in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 3rd March 2010, 01:14
  2. How to use TRIS on a ICD programs
    By timseven in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th August 2009, 01:12
  3. tris question for the 16f876
    By lecoind in forum General
    Replies: 10
    Last Post: - 12th September 2008, 21:35
  4. Tris Register use.
    By tsanders in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2006, 15:12
  5. Is LCDOUT setting always al TRIS ?
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th June 2005, 17:02

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