On 22/09/2010 4:53 PM, ivp wrote: >> Why bother clearing TRISB > All the PICs I've used have their pins set to inputs on power-up, > ie TRIS is all '1'. From what I know, this is true for every family. > CLRF TRIS sets them all to output Sorry Joe, as per my other reply, the TRIS was a typo. I meant PORTx. :-[ > I don't think any PICs with LAT need BANKSEL The PIC16F1934 has PORTx in bank 0, TRISx in bank 1, LATx in bank 2,=20 ANSELx in bank 3. David... --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .