I'm mostly worried about the 16F887a. The version I have supports the 877a and I would like to try compiling with it and see what happens.
Type: Posts; User: GatorGuy; Keyword(s):
I'm mostly worried about the 16F887a. The version I have supports the 877a and I would like to try compiling with it and see what happens.
Pure Gold! Thank you!
I'm still learning Picbasic but could you give me an example of setting a simple flag? Something like Zone1Alarm = True when triggered then Zone1Alarm = false when cleared.
Quick reply CNC. Thank you.
What about setting a variable in the EEPROM that is checked when sent to Alarm1 and if it is already set return to Watch? Have it monitor for pin low as well as high and clear the value in memory if...
Currently the pic we are working with monitors pin status and sends a simple string out when one of them is pulled high. The problem I am having now is that the pic repeats the proper code over and...
If we wanted to switch to a PIC that is not supported by the current PBP version, is it possible to write our own BAS and INC files for the new pic? Obviously the files can be created but is there...
Thank you for the help. So far it is still not working(I have not tried everything suggested though). I will try to add the pull down resistors as well. I already have the working PCB but I should...
I am having trouble getting a program to run If statements when a pin goes high.
I have a 16f628a for testing using three pins for outputs and four for inputs. Pins PortA.0 - PortA.3 are set low...
Hserin [DEC3 INC]
HSerout ["You entered: ", INC, 10, 13]
IF INC = 111 THEN GOTO Think
IF INC = 222 THEN GOTO TURNON
IF INC = 333 THEN GOTO TURNOFF
This worked great. However, it is sending...
Anther issue I am having is that the pic will hang up after sending data now and then. It almost always hangs if I send something like 12345.
I have a pic connected through a RS232 and the transmit seems to be working fine but I am having issues with sending the pic commands(at least its not doing what I want it to).
:SetTxRx ...
Not yet, it turned out to be a programmer error that I wasn't catching. At first it was giving a valid program response then I noticed that it still had an old program on the pic I was using. ...
Thank you! I will give this a try.
When I use single letters or numbers it works like a charm but I would like to use longer strings such as "A23". Anything longer then one character and I get errors. Is this a limitation of...
I tired that, it gets bad expression errors on the if inc = "something" line.
When using HSERIN, this code seems to receive the data okay but I can only get numbers to work when using if..then statements. I know I am just overlooking something so any help would be great.
...
Quick EEPROM question while I'm at it. How reliable is the EEPROM memory? I want that value to stay there once the user selects it no matter how many shutdowns/powerups there are.
Thanks for the ideas. I found an easy way now:
This isnt the code but gives the idea.
READ 0, blah
startup:
if blah = "1" then goto 1
if blah = "2" then goto 2
WRITE 0, "1" 'if it...
I need to read the first bit of the EEPROM and store that value into a variable. That part is easy, however, I need the program to do something if the EEPROM is empty such as the first time the pic...
I will look at upgrading. Do you happen to work for them? :)
Does anyone have the BAS/INC files for the 16F505 PIC? I just noticed that I don't have it.
Don't feel bad, I looked over it and didn't see that either! haha.
I would like to make one variable an alias for more then one pin. So far I have not been able to make it work. Here is an example of what I have tried. There are more but this gives the idea. ...