alan.b.pearce@stfc.ac.uk wrote: > Also write to the LATA, LATB, LATC and LATD registers when doing output, > but read from the PORT registers when doing input. > =20 Hi Alan, I changed to LATx instructions for output, fixed the silly error with=20 the TRIS setting and it now works! movlw 0x00 movwf TRISA movwf TRISB movwf TRISC movwf TRISD movlw b'10101010' movwf LATA movwf LATB movwf LATC movwf LATD Thanks to everyone (even Olin!) for their replies. I should be right for=20 now. 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 .