> > Hello! > > > bcf porta,ra0 > > bsf status,RP0 ; Change bank 1 > > bsf trisa,0 > > bcf status,RP0 ; Change back to bank 0 > > Why do you change back to bank 0 after? Because you want to make sure that future accesses to the ports and registers are in bank 0. It's good programming practice. > > > > Does it send the signal to the pin at the > > > same moment that I set in the TRISA register pin RA0 as > > > output? > > > > > >Yes, of course. > > But what if I set the direction first with the TRIS register like Ed Tood > told me in his last message and then I set the output latch? Then whatever value is in the output latch when you set the TRIS register will appear on the pin briefly until it's changed. By setting the latch first, there's no possibility of a glitch. BAJ