Quote Originally Posted by hell_pk View Post
why is this code not working on 18F1320.any ideas!!!!

Code:
P1A  var PORTB.3    ' ECCP pin defines . 
P1B  var PORTB.2    
P1C  var PORTB.6    
P1D  var PORTB.7    
TMR2IF  var PIR1.1 ' TMR2 interrupt flag



    P1A=1        'Tristate
    P1B=1        ' Tristate
    P1C=1        ' Tristate
    P1D=1        'Tristate
Those are changing the PORT value, not it's input/output state.

Try TRISB.x for P1A-D.
<br>