Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    54
    Views
    32,402

    Re: Number Sort Algorithm

    This sort just saved my butt, thank you.
    As the PICs get faster, speed is less of a consideration.
  2. Replies
    5
    Views
    1,154

    Re: NCO and DT Interrupts

    OK, thank you. Left panel was a narrow browser window issue. My programming machine has a serial terminal taking up the right third :)
  3. Replies
    5
    Views
    1,154

    Re: NCO and DT Interrupts

    No, only that I no longer have an FSR compile error.
  4. Replies
    5
    Views
    1,154

    Re: NCO and DT Interrupts

    And just found it has 2x FSRs...
  5. Replies
    5
    Views
    1,154

    NCO and DT Interrupts

    NCO on PIC16F1508.

    Interrupts
    This project uses NCO and needs an interrupt to flush the accumulator. For historical reasons I'm using ASM_INTS.BAS. This brain doesn't appear to have an FSR, and I...
  6. Thread: exponent math

    by kenif
    Replies
    4
    Views
    3,657

    Re: exponent math

    Me too.

    Bit late (15 years), but the same problem. I need to generate an exponential decay and PBP has no ^/exp function.

    There are several ways to do this, but none of them are particularly...
  7. Replies
    4
    Views
    4,155

    Re: Cannot compile 16F15345

    Yes, I posted the default. I tried lots of combinations but was trying to get this chip to run at 64 MHZ, when the max is 32.
  8. Replies
    4
    Views
    4,155

    Re: Cannot compile 16F15345

    You guys are right as usual. It had define OSC 64 for historical reasons.
    Here's the story: This is the guts for a lung ventilator.
    I designed all the boards, and do firmware everywhere else, but...
  9. Replies
    4
    Views
    4,155

    Cannot compile 16F15345

    Can't find anything on forum.

    The default config doesn't work, nor any of my attempts to fix it.
    Latest IDE, latest PBP Gold 3.1. Current Microchip everything.
    This board worked fine with a...
  10. Replies
    22
    Views
    14,766

    Re: PWM and audio noise

    What everyone else says, plus:
    Declare a ground star point and make all grounds radiate from that point - no daisy chains.
    You should be able to trace ground noise origin with a scope....
  11. Replies
    6
    Views
    3,951

    Re: I2C fast to slow at runtime

    Thanks, I'll look into that.
  12. Replies
    6
    Views
    3,951

    Re: I2C fast to slow at runtime

    Microchip TC74.
    We used this for the TO-220 packaging - it is screwed to a motor where it is difficult to put a PCB.
  13. Replies
    6
    Views
    3,951

    Re: I2C fast to slow at runtime

    Yes, it works fine. At the moment we have a 900 us read (Honeywell pressure sensor), but at 400k it's about 225 us, and saving the extra time would be useful.
  14. Replies
    6
    Views
    3,951

    I2C fast to slow at runtime

    This project requires a 100k device and a 400k device on the same bus.
    The I2C slow command appears to be compile only.
    Is there a way to change fast to slow and back again at runtime?
    Thanks.
  15. Thread: One line IF

    by kenif
    Replies
    3
    Views
    2,169

    Re: One line IF

    That would be why, then.
    Thanks.
    Another win for the manual :)
  16. Thread: One line IF

    by kenif
    Replies
    3
    Views
    2,169

    One line IF

    Hi,

    Having problems with the one line IF THEN LABEL not returning.
    Is this a call or an absolute jump?

    Thanks guys.
  17. Replies
    7
    Views
    7,387

    Re: Just can't get started

    HIGH and LOW do not require any port setup. They set as output automatically, see the manual.
    You don't need the ANSELs.
  18. Replies
    4
    Views
    2,698

    Re: strange 24lc512 eeprom problem

    If you're on 3V3 try a smaller value pullup, which wouldn't hurt on 5V.
    Check the leading edge with a scope.
    If you have a lot of capacitance on those tracks pullup should be smaller, as low as...
  19. Replies
    23
    Views
    8,176

    Re: A rant about port configurations

    Thanks, Henrik, that did it.
    I'll be back on this project in a couple of days and you saved a lot of brain hurt.
    Ken
  20. Replies
    23
    Views
    8,176

    Re: A rant about port configurations

    Great timing as this exact problem has just consumed about 5 hours and I seem to hit a similar brick wall with every new PIC.

    18F27J53 ~ outputs OK, inputs always read 0.
    I know what the problem...
  21. Re: USB on 18F27J53. Closer but still struggling with this.

    Magic, thank you. Upgraded to PBP3 and it all works on 18F27J53.
    CCP1/2 had to go to CCP4/5/6, and now we have three PWMs over USB (which was the object of using this device).

    As getting USB...
  22. Re: Upgraded to 2.60 ~ now it won't read pin 5, 16F876A.

    Bruce, once again you saved my bacon.
    The real mystery is how this input worked for the last three years... going back through the old code now.

    Thanks,
    Ken.
  23. Upgraded to 2.60 ~ now it won't read pin 5, 16F876A.

    Here's an interesting one.
    Have 3 switches into a 16F876A; 10K pullups, 470pF slugs, active low.
    Pins are high on scope. Existing product, worked forever. Tried new PICs.

    After upgrading to...
  24. Re: USB on 18F27J53. Closer but still struggling with this.

    Tried 4MHz again with same results: Everything else OK but no USB.

    Schematic ~ PIC is wired: 4M on OSC; VUSB cap to gnd; USB on D+, D-; R/C on MCLR.
    Plus LCD (forget which pins) which works...
  25. Re: USB on 18F27J53. Closer but still struggling with this.

    It currently has a 48M crystal (as HS and HSPLL) and it's working great - driving LCD.
    Tried 4M and 20M.
    Don't have 8, 12, 16 ~ time to expand my clock selection.
    Schematic and code when I get a...
Results 1 to 25 of 40
Page 1 of 2 1 2