It'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
Obviously it will not compile when you define variables like this
Dim dig_T1 As Word, dig_P1 As Word, dig_H1 As Byte, dig_H2 As Integer
Use the correct PBP syntax and try again.
Ioannis
The Shift register you mentioned is the 2 Bytes Buffer?
Ioannis
Even on the latest PBP version the DEFINES are there for the LCD setup.
I realized now that you confused the LCD_anypin of Darrel's setup with the original LCD setup of PBP.
Two different...
The last byte DOES get transmitted.
TXSTA.5 = 1 ' TXEN: Transmit Enable bit
hserout ["1"]
pause 1
hserout ["2"]
pause 1
hserout ["3"]
pause 1
Re: Framing error if I disable transmitter after shift register is empty?
I'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:12