PDA

View Full Version : tris



The Master
- 28th July 2007, 20:29
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?

Bruce
- 28th July 2007, 21:07
TRISA = %00000001 would set PORTA.0 to an input.

The Master
- 28th July 2007, 21:13
ahh, so it works like normal binary then.

thanx :)

Bruce
- 28th July 2007, 22:28
Yep. Normal binary...;o}