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 ? I want the RA0 to RA2 as analog input, RA4 as digital output (unused), and RA5 MCLR tied high. I am thinking TRISA = 0b0001111. Is that correct, or do I have LSB/MSB backwards? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist