Searching \ for '[PIC:] 16f628 uart weirdness: TRMT stuck?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/devices.htm?key=16F
Search entire site for: '16f628 uart weirdness: TRMT stuck?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC:] 16f628 uart weirdness: TRMT stuck?'
2003\12\22@041744 by Michael Park

picon face
I'm using the 16f628's built-in uart (fwiw: 4MHz clock, asynchronous 31.25k
baud, 8 bit).
For output, I wait for TXSTA<TRMT> before writing to TXREG. Meanwhile,
incoming serial data is handled by interrupt. This mostly works, but every
once in a while (actually quite often) TXSTA<TRMT> gets stuck on 0 and never
goes to 1(!). Have you ever heard of this problem? Any suggestions welcomed.
It *seems* to occur when serial input and output are happening concurrently,
but that's just my impression. Hope someone can help me out.


--m

_________________________________________________________________
It s our best dial-up Internet access offer: 6 months @$9.95/month. Get it
now!  http://join.msn.com/?page=dept/dialup

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu

2003\12\22@075133 by Olin Lathrop

face picon face
Michael Park wrote:
> For output, I wait for TXSTA<TRMT> before writing to TXREG.

You should wait for PIR1,TXIF instead.  That tells you when TXREG can accept
another byte.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...