> > Hi! > > >> > 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. > > Oh ok... and when you execute the BCF PORTA,RA0 instruction on the first > line, your supposing that we are already in bank 0 'cause PORTA is in bank 0? Precisely. > > > >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. > > Cool! Well, thanks a lot for your help and all the people who helped me with > that PORTA Question! You're welcome. Hope to see more of your questions on the list. BAJ