On 29/11/2010 10:23 AM, Jan-Erik Soderholm wrote: > Then maybe "I am using INDF0 for reading the receive buffer." > should have been saying "...writing into the receive buffer". :-) > > And it should be OK as long as you re-load INDF0 at each entry > of the ISR with the proper receive-position in the buffer. > > The read-position in the buffer will be saved and restored > by the context save/restore the hardware does at an interrupt. Sorry, yes, I meant "writes the receive buffer in ISR". Other (non ISR)=20 routines read the same buffer. Reading and writing of the buffer is=20 locked by flags. 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 .