Well, I finally gave up on this code. I had the same problem with another variation of this code and fixed that one. But the first is still a head -scratcher. I'm sure it has nothing to do with ADC...
Type: Posts; User: Del Tapparo; Keyword(s):
Well, I finally gave up on this code. I had the same problem with another variation of this code and fixed that one. But the first is still a head -scratcher. I'm sure it has nothing to do with ADC...
Auto_Whistle:
'Check for auto whistle (shares V_Bat input)
'ADCIN Batt_Whis_ADCIN,V_Mon
'if ((V_Mon < ADC_Low) and (Whistle_Off_Flag = 0) and (Percent < 50)) then <<<<<<<...
Has anyone written any PIC Basic Pro code for this device? So far I haven't found any complete documentation for what the key fob is outputting, and I have little experience with serial protocols....
I get it now ....
In my case, all of the reassigned inputs use the PULSIN command. I simply assign a variable to the pin portion of the PULSIN command, separate from the resulting input data...
Yes, there are many ways to achieve this within the loop of the main program. I was trying avoid having to make pin decisions every time I wanted to collect data. I just want to reassign the pins at...
I would like to reassign I/O pins to specific variables based on the state of an input pin. Can I do this? e.g.
If Input = 1 then
Variable1 = PORTB.1
else
Variable1 = PORTB.2
endif
But...
Problem was resolved by reassigning I/O. Good tips though. Thanks to all. I learned something (always a good thing).
Yes indeed! That is my problem. RA4 is a Schmitt trigger input and my Rx puts out 3V pulses with the PIC running at 5V. Thank you very much for saving me a bunch more time and headache.
...
Is there any good reason that I can't get the RA4 input to work with PULSIN? I am using a PIC18F1220 with a 20MHZ resonator. PULSIN works fine on any PORTB pin, but won't fly on RA4. RA4 works as a...
http://www.cypress.com/?id=1379
Has anyone interfaced the CyFi 2.4GHZ RF modules to a PIC using PIC Basic?
I found it. I had a Byte variable storing the result of a calculation using a Word variable. It worked in my case, because I knew the bounds of the calculation, but hence, the warning. Thanks for...
Can someone please tell me what this means?
Warning[202] ... file location ... 152 : Argument out of range
This doesn't seem to tell me where the error is. It isn't in line 152, so where is it?
Simple question: If I turn on code protection for the program memory of a PIC, this will obviously not allow program memory to be read. Can I still write to it? (e.g. If I want to update the software...
How do I write to the User ID memory locations (2000h-2003h) on a PIC 12F683? Poke, PokeCode, Write, and WriteCode don't seem to be the answer. Do I need to insert assembly code in the PBP code?
OK. ANSEL register is the trick. I needed digital inputs, and it was configured for analog! I found the info in the data sheet. Thanks again Mister e!
Thanks for the reply. This is exactly what I needed. Actually, shortly after my last post, I found a link, http://www.melabs.com/support/config_defaults.htm that sorted it all out for me. Why this...
My head hurts!
I am trying to learn how to set the configuration bits. I try to use the MPLAB configuration bits window, but I can't get it to stick in the chip. I am using PICKIT 2 programming...
I bought the Microchip PicKit 2 programmer. I am struggling to figure things out now. I can load the code (into my PIC 12F6823), but nothing works. I suspect it has something to do with the...
No wonder I can't figure it out. The PIC-AXE 08M chip IS a PICF683! I've been looking at the wrong data sheet. Thank you.
I current use a PIC-AXE 08M chip (PIC12F629). Pic-Axe allows me to choose either 4MHZ or 8MHZ internal oscillator. It isn't obvious to me to see how to do this in PIC BASIC PRO. I don't want to use...
I am in the process of researching all the hardware and software to do development using Pic Basic Pro. I see a programmer for sale on e-bay called a "USB Microchip PIC programmer" for about $35. It...
Thanks for the quick response. That solves one problem. I'm just exploring PIC Basic Pro, so I'm sure this is just the beginning.
Do all PICs support SERIN timeout? Or do I need to look for certain hardware features?