But the 2nd RX PIC receives perfectly. It's the 1st TX PIC that gives a framing error. And yet the 2nd RX gives an ACK using the HSEROUT structure, and it can DISABLE transmitter just fine.
I...
I'll be adding several more PICs on the network later, along with a tri-state BUSY line. The BUSY line will determine which PIC will be permitted to TRANSMIT at any given time. And that's why I...
Demon Today, 21:49checking your stuff........ if you use interrupts (DT ints), for RX interrupts, you would not use PB hserin in the int routine. Rather get the characters in your routine and store them in the...
amgen Today, 21:44I'm not sure exactly what you intend to do, but TRMT gets asserted half-way into the STOP bit, so if you immediately disable the TX then the STOP bit will be half the time and generate a framing...
tumbleweed Today, 21:12It's getting even dumber by the minute. :D
TX code on 1st 16F1937:
#CONFIG
__CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF &...
I suppose so. This is from the datasheet for TXSTA register:
Demon Today, 20:22I would not give up on the 18877 chip. Sometimes the view seems great but has pitfalls and all you need is to sleep on this. Next day will come the aha moment!
Ioannis
DT-INTS should close with a @INT_RETURN since this macro restores some registers.
Ioannis
If you want, you may include that label in case the I2C device fails to communicate. So you can give the user a message that something was wrong.
Ioannis
Re: Framing error if I disable transmitter after shift register is empty?
Question: why do people use TX INT?
Demon Today, 22:00I can understand why you want to use RX INT, cause you don't know when the data will be incoming, but I do know when the data is being transmitted.
I'm just...