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.