TRISA, TRISB setting ?


Results 1 to 8 of 8

Threaded View

  1. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Ambrogio

    I' ve taken the good habit ALWAYS to set ALL my Inputs/Outputs with TRIS statements AND aet their respective default level in the first lines of my programs.
    of course, all SFR's and variables too ...

    Whether PBP ( or any other high level language ) does it for me or not ... so, I'm REALLY sure of what will happen. Especially @ Power-up.

    But you can do as you want ... there's no absolute rule !!!

    If PB=1 then... If PB=0 then...
    no automatic input setting here ... sooooo you could read an output state !!!

    Alain
    Last edited by Acetronics2; - 10th January 2011 at 16:08.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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