Up until now, I've only used the older (lower end?) PICs I think I understand the difference between PORTx and LATx, but in one=20 data sheet Microchip show port B being initialised like so: BANKSEL PORTB CLRF PORTB BANKSEL LATB CLRF LATB BANKSEL ANSELB CLRF ANSELB BANKSEL TRISB CLRF TRISB Why bother clearing TRISB when you would be only writing to LATB anyway? 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 .