PICBASIC PRO program displays to 3 x 7 segments LED display the result of pulse count on PORTA.4 pin/sec. Based on a 16F84A. Schematic included. Written by Steve Monfette counter.zip |
I asked to make corrections and he(or it?) created new code, this time with SWORD type variables
when I asked what kind is SWORD variables is, it answered that these are variables not supported by...
Yeah, I thought the problem went away. I'll edit them back.
Demon Today, 02:35Oh crap, I didn't see that. :sad:
Demon Today, 02:34you have now declared the thread solved when it is not!
the problem is only temporally masked and will rear its ugly head when you enable another transmitter
there is another issue with that chip
from data sheet async reception chapter
9762
no , it will look like it works but the pin is now hard driven high , not tristated at all
UsartTX var LatC.6
UsartTX = 1
TXSTA.5 = 0
Framing error is gone on PIC #2
WOOT!
Should I set LatC.6 to 1 when I disable the transmitter? :confused:
I thought the pull-ups were supposed to handle that?
so there is the problem
TRISC = % 10000000
portc pin 6 is set as an output
the latc.6 value is undefined but obviously 0
when tx module is disabled the pin reverts to be an output driven low...
Mainloop is in post #22.
Complete code PIC #1:
#CONFIG
__CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF &...
PICBASIC PRO program displays to 3 x 7 segments LED display the result of pulse count on PORTA.4 pin/sec. Based on a 16F84A. Schematic included. Written by Steve Monfette counter.zip |
Re: BME280 via I2C?
good luck getting the ternary operator to work with pbp
richard Today, 04:55good luck getting pbp subroutines to return a value
just tick the box in the compile options