Click here to Skip to main content
11,920,353 members (49,905 online)
Rate this:
Please Sign up or sign in to vote.
See more: serialport PIC
Chip is PIC24FJ256GB210

This happens 4 times okay...

        Btst    U3STA, #UTXBF           ;Got space ?
        BRA     NZ, Wait_On_UART_3_TXBF ;No, wait some more
                                        ;*** Fourth time thru, never gets
                                        ;*** past the previous loop
        Mov     W1, U3TXREG             ;Byte to send out came in to this sub in W1
        Return                          ;That's all

Thereafter, the UTXBF bit stays stuck in the 1 position. It will never clear again.

Does anyone have any experience in what may cause this ?

It's a dual processor board with another PIC connected to the other side of the UART.

I'm initializing it to use no flow control, without RTS/CTS enabled.

The other two UARTs are working okay.

What could be keeping UTXBF stuck in the 1 position ?

Give it enough cycles, and that thing is supposed to be empty, whether or not the bytes make it to their final destination or not.


Thanks if anybody has ever solved this.
Posted 15-Feb-13 14:36pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 415
1 phil.o 170
3 F-ES Sitecore 130
4 RyanDev 120
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,805
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web03 | 2.8.151120.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100