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:06as best i can see the data sheet indicates that what u are trying should be ok
9753
could hserout pacing be too slow to buffer tx data, and not really triggering back-back transmissions ?
if...
16F1937
Gutted my program to try to figure this out.
#CONFIG
__CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF &...
Hello.
I know there is a library for BME280 via SPI, but most recent modules are I2C only. Is there a way to adapt that code to I2C bus?
9752
I asked AI to generate code for I2C, but it won't...
That was my original goal, to reduce cost, complexity and real estate.
I gotta admit, PPS, was a neat bonus. I was truly impressed with the 16F18877.
to get away from all the needless 7416 chips plus the flexibility of pps as a bonus https://www.picbasic.co.uk/forum/images/icons/icon7.png
richard Yesterday, 06:03I know that now.
The 74HC14 with Bourns' debounce was doing very well. I'm rewiring that back in now to redo testing.
Re: Framing error if I disable transmitter after shift register is empty?
The last byte DOES get transmitted.
Demon Today, 17:30TXSTA.5 = 1 ' TXEN: Transmit Enable bit
hserout ["1"]
pause 1
hserout ["2"]
pause 1
hserout ["3"]
pause 1