Tris Register use.


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    The TRIS Command in question is an assembly level command and not a PBP command.

    With the 877, if you write “TRISA=7”, for example, you are not using the TRIS command but loading the TRISA register directly. PBP takes care of all these issue for you so no worries.

    ASM Equivalent of what TRISA=7 does
    MOVLW 007h
    MOVWF TRISA

    ASM Equivalent using TRIS command - PBP does not do this (and this may not be supported on the 877?)
    MOVLW 007h
    TRIS PORTA
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    Join Date
    Oct 2006
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Thanks for clearing that up for me!!

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  2. Can anyone help a newcomer?
    By scopit in forum Schematics
    Replies: 18
    Last Post: - 20th October 2009, 09:23
  3. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  4. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07
  5. MX7705 or AD7705 experience
    By FM11 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th January 2006, 21:54

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