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
I thought this would ensure all bytes were transmitted?
while TXSTA.1 = 0
wend
I don't see why a 16F1937 could not do this reliably...?
I'm using a 16F1937, and I've done this successully in the past on this PIC model.
Check this out, it's always after the last HSEROUT:
TXSTA.5 = 1 ' TXEN: Transmit...
does the AI have a big grin on its face when it tries to pass that off as pbp code ?https://www.picbasic.co.uk/forum/images/icons/icon12.pnghttps://www.picbasic.co.uk/forum/images/icons/icon12.png
richard Today, 09:06
Re: IOC flag triggered when PIC is unplugged...?
I 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 Today, 18:30Ioannis