> For the 18f1320 TRISA register, what are the individual direction bits > designated for the register bits 0 to 4? The manual only shows the 4 > bits as alloted to "PORTA Data Direction Register", with no further > direction, i.e. bit 0 >>RA0, and bit 4 >> RA4 ? Hi Carl, you need something like this (I don't use 1320 often and haven't to hand working code I can quote you) banksel trisa movlw b'00100100' ; 0 o/p ;depends on OSC setting ; 0 o/p ; 1 MCLR, pull-up ; 0 o/p, pull-up ; 0 o/p ; 1 i/p ; 1 i/p ; 1 i/p movwf trisa > I want the RA0 to RA2 as analog input Set I/O type in ADCON1 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist