Click here to Skip to main content
13,093,097 members (69,210 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 13:36pm

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2017
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