That's what I thought, but I just wanted to be sure. Thank you.
Tony
Type: Posts; User: ERMEGM; Keyword(s):
That's what I thought, but I just wanted to be sure. Thank you.
Tony
Hello All,
I haven't finalized the design, but I'm thinking I will be using the 16F819. I have a module that I'm making that will do certain functions when certain inputs are activated, but I...
Due to the complexity of the rest of the code, I have the main code setting the pause time. The three gosub commands I have written will be immediate, so as not to interfere with the timing cycle of...
if (counter = 2 )| (counter = 4) |,,,,, etc then
led1 = 1
else
led1 = 0
endif
That's the simplest way huh? I guess being tired didn't matter. Thanks for the help.
Tony
Unfortunately, this is part of a bigger piece of code and right now, I am jumping from a section of code via gosub and running through three gosub subroutines before heading back to the main code. ...
Is there a way to select an action when a specific number is reached in a counter?
For example, if I write:
counter = 0
loophere:
if counter = 21 then counter = 0
Thank you for the insight.
Tony
Well, that was it. I tried changing the case of define to uppercase, but PBP kept changing it back to lowercase. Never did anything with the OSC. Not sure if it's a programming flaw or done...
It IS confusing. As I said, I made the change to the LCD program that just says Hello World over and over again, but it doesn't work on the keypad program.
I'm still learning this type of code,...
Well, changing the config did it, but only for the LCD sample program where it just repeats saying Hello World. On this key press program, I am getting mixed results. Sometimes it's a single line...
Hello,
I bought the following product and am trying to run a sample program on it provided by their website. I have a PIC16F874A installed and can't seem to get the sample programs to work. All...
That is the exact setup I have. I am using the ILD205 instead for the opto and the LS4148 for the reverse polarity protection. I have a diode on the positive input as well. The design of the board...
I was being conservative for any over voltages from the vehicle, hence the Zener. I just found another circuit with the same #2 VD setup as above. 2.2k to ground and 33k to the output yields 1.7...
My original question asked if I had it right or if I needed to make the resistors bigger. Suggestions were made to make the voltage smaller. My question is that with 2.5 volts, will that trigger...
So just one resistor from the input wire going to the input pin? Does this work in even the noisy environment of vehicles?
Here is what I am speaking of. The left schematic is the one we are all talking about. The right schematic is one that I have seen a couple of times now. Still a high value on the top and smaller...
That is correct. The PIC will be powered. I want it to be able to see an input when 12 volts is applied. The program is busy doing a bunch of other things, but it will check that input like this;...
Thanks for the replies. I don't work much with Zeners, so hence why I'm asking. I have been using optocouplers to trigger this part of the circuit, but they are expensive compared to a couple...
It doesn't replace the optocoupler. I would rather have the opto, however, after a recent string of failures, I am trying to minimize my repairs and use something more reliable like resistors.
...
Thanks for the replies. My application is for a PCB being installed in a vehicle. The voltage is usually 13.8 volts. As I had some problems with some of my optocouplers being bad and had to...
Hi Guys,
As the titles alludes to, I am trying to figure out what size resistor I need when using a voltage divider on a PIC as an input trigger.
My circuit is being powered by a voltage...
That's awesome, however, I have one question. What is (=!)? Can you please translate to English what the line "pin_mode =!pin_mode" means. That's the only part I'm having a problem with right now....
Yes I know this. I was having difficulty because I was trying to think of a way to do it in a manner that the pic would understand. Our brains can easily process this and substitute that values,...
It must be strictly code. The following code is just a small, simple example of pulsing four outputs.
a var portb.0
b var portb.1
c var portb.2
d var portb.3
action:
OK, spent the better part of the night sorting through threads, but haven't found exactly what I was looking for. The process seems simple, but the pic finds it very complex. Here's what I'm trying...