One question regarding the TRIS instruction: Are all ports on a 40-pin device covered by it? ie: TRIS PORTA TRIS PORTB TRIS PORTC TRIS PORTD TRIS PORTE On Mon, 4 Oct 1999 15:37:25 +0100, Michael Rigby-Jones wrote: >> -----Original Message----- >> From: Dave Johnson [SMTP:djohnson@SIRIUS.COM] >> Sent: Monday, October 04, 1999 2:22 PM >> To: PICLIST@MITVMA.MIT.EDU >> Subject: To Tris or not to Tris (was Re: CHANGE TRISB) >> >> Paul B. Webster VK2BZC wrote: >> >> > Indeed, even safer, >> > >> > movlw b'11100001' >> > tris PORTA >> I thought the "tris" instructions were being phased out, I remember >> reading a recommendation not to use them, anyone know the scoop on this? >> >> Dave Johnson >> >They are being phased out on new devices. Any existing device that has the >TRIS instruction will always have it. Microchip recomend not using it >purely to make the code more portable to a newer device. However, if it's >there and it makes your life easier (which is does) then I see no reason not >to use it. > >Mike Rigby-Jones >