Confusion and possible bug on 16f876


Results 1 to 14 of 14

Threaded View

  1. #6
    Join Date
    May 2005
    Posts
    33


    Did you find this post helpful? Yes | No

    Default information..

    just wat i've experimented lately... if u dnt set the tris register as in setting it to output it wont output high by doign portb.x = 1

    i foudn thsi out frm the matrix keypad example of lab-x1.

    for example if u do this:

    portb = $ff
    trisb = %10101010



    u get the even bits high... correct me if i'm wrong
    i've always tot tht u haf to set the tris b4 outputting something and this discovery has been very useful.

    sorry guys if u already knew bout this. just an info for those who doesnt
    Last edited by nimonia; - 20th May 2005 at 16:35.

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