Hi,
I found what you suggested to look_at.
When a PIC MCU powers-up, all of the pins are set to input. To use a
pin as an output, the pin or port must be set to an output or a command
must be used that automatically sets a pin to an output.
To set a pin or port to an output (or input), set its TRIS register. Setting a
TRIS bit to 0 makes its corresponding port pin an output. Setting a TRIS
bit to 1 makes its corresponding port pin an input.

So, it is not needed to use tris register !
Am I right ?

Ambrogio

Quote Originally Posted by Acetronics View Post
Hi, Ambrogio

May I suggest you to open your Holy Manual and just read the INPUT and OUTPUT commands pages ... a look to other commands pages will show you that PBP automatically sets inputs/outputs as desired ... or not !

Alain