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
Bookmarks