Ken Webster wrote: > Thomas C. Sefranek wrote: > >>> Does bit 4 being a 0 at power up indicate the buffer is full? > >> > >>No, it means that the USART hasn't been turned on yet. > >> > >>> If so, who filled it? (And when will it empty?) > >>> if not, why is bit 4 a 0? > >> > >>TXREG started out empty. Turning on the USART (SPEN) turns > >>on TXIF so that it will generate an interrupt and get loaded. > > > >Well I too believed this until I couldn't get any action from > >the TX pin PORTC bit 6. So I looked at the code on the MPLAB, > >and sure enough EVEN AFTER turning on the SPEN the flag bit > >is STILL ZERO indicating buffer full! > > Are you remembering to also turn on TXSTA:TXEN to enable the USART transmit > module? > Yes, but thanks anyway. > > Cheers, > > Ken -- * | __O Thomas C. Sefranek tcs@cmcorp.com |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41, 448.625 MHz http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org