On the 18 pin device it appears that RA7 is also input only !
http://ww1.microchip.com/downloads/e...doc/30487c.pdf
Also, and whilst no expert on your settings you have
you have set PORTB as output apart from RB2 but appear to have buttons which are normally inputs ( taking pin high or low) on RB1, RB3, RB0 and RB4 ?, but appear to have set it correctly with TRISB = %00001111Code:TRISB = %00001111 'SET PORTB RB2(RX) as input, others to OUTPUT TRISA = %00000000 'SET PORTA AS OUTPUTS porta = 63 PAUSE 1000 'LeftBtn Var PORTB.1 'RiteBtn Var PORTB.3 'StopBtn VAR PORTB.0 'RadioEn var PortB.4




Bookmarks