On 22/09/2010 4:27 PM, Matt Callow wrote: > You've not restated the Q as: > 'But why bother clearing PORTx when clearing LATx is really clearing the = port?' > > Which is a completely different Q, (which I don't have an answer for!) Sorry, a typo crept in there. I did mean PORTx when I said TRISx earlier. So to be clarify, I don't understand why Microchip are setting LATx=20 *and* PORTx during initialisation in their example. Setting PORTx seems=20 to be totally redundant in devices that have LATx registers. 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 .