Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: ERMEGM; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,638

    Re: Do I need an oscillator?

    That's what I thought, but I just wanted to be sure. Thank you.

    Tony
  2. Replies
    2
    Views
    2,638

    Do I need an oscillator?

    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...
  3. Re: Take this action when these numbers are reached. How?

    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...
  4. Re: Take this action when these numbers are reached. How?

    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
  5. Re: Take this action when these numbers are reached. How?

    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. ...
  6. Take this action when these numbers are reached. How?

    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
  7. Replies
    19
    Views
    24,774

    Re: LAB-XUSB Experimenter Board help

    Thank you for the insight.

    Tony
  8. Replies
    19
    Views
    24,774

    Re: LAB-XUSB Experimenter Board help

    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...
  9. Replies
    19
    Views
    24,774

    Re: LAB-XUSB Experimenter Board help

    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,...
  10. Replies
    19
    Views
    24,774

    Re: LAB-XUSB Experimenter Board help

    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...
  11. Replies
    19
    Views
    24,774

    LAB-XUSB Experimenter Board help

    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...
  12. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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...
  13. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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...
  14. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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...
  15. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    So just one resistor from the input wire going to the input pin? Does this work in even the noisy environment of vehicles?
  16. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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...
  17. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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;...
  18. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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...
  19. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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.
    ...
  20. Replies
    31
    Views
    19,280

    Re: Watt's the wattage when used on a PIC?

    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...
  21. Replies
    31
    Views
    19,280

    Watt's the wattage when used on a PIC?

    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...
  22. Replies
    17
    Views
    8,402

    Re: Shuffling variables

    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....
  23. Replies
    17
    Views
    8,402

    Re: Shuffling variables

    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,...
  24. Replies
    17
    Views
    8,402

    Re: Shuffling variables

    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:
  25. Replies
    17
    Views
    8,402

    Shuffling variables

    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...
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4