Changing Direction


Page 31
INDEX


Any of the lines of a PIC chip can be changed from Input to Output or vice versa, during the running of a program. This makes the chip very versatile however there are a number of limitations you must take into account before performing this operation. 
The limitations are all hardware. 
Before changing the direction of a line you need to work out which line will be the easiest to work with. 
You must remember that both the input and output hardware will be connected to the line at all times and these items must not interfere with the operation of the circuit in any way. 
A fair amount of technical expertise is needed to understand the consequences of interference, both at the DC level and AC level. 
 

NEXT