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
    6
    Views
    7,756

    Re: I2C LCD help needed

    Thanks, I'll try this.

    > As it came it was 0x27 Dec 39 but I had to double it for pbp to 0x4e dec 78.
    $27 is the code not counting the R/W bit. Some people shift this one bit and add the R/W bit...
  2. Replies
    6
    Views
    7,756

    I2C LCD help needed

    During the pandemic I had to lay out boards using the chips to hand, in this case 16F1503.
    Not enough pins for a parallel LCDout, so I used I2C LCDs intended for Arduino. How difficult could it be?...
  3. Replies
    54
    Views
    56,214

    Re: Number Sort Algorithm

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

    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 :)
  5. Replies
    5
    Views
    3,236

    Re: NCO and DT Interrupts

    No, only that I no longer have an FSR compile error.
  6. Replies
    5
    Views
    3,236

    Re: NCO and DT Interrupts

    And just found it has 2x FSRs...
  7. Replies
    5
    Views
    3,236

    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...
  8. Thread: exponent math

    by kenif
    Replies
    4
    Views
    9,080

    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...
  9. Replies
    4
    Views
    12,037

    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.
  10. Replies
    4
    Views
    12,037

    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...
  11. Replies
    4
    Views
    12,037

    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...
  12. Replies
    22
    Views
    32,149

    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....
  13. Replies
    6
    Views
    6,349

    Re: I2C fast to slow at runtime

    Thanks, I'll look into that.
  14. Replies
    6
    Views
    6,349

    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.
  15. Replies
    6
    Views
    6,349

    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.
  16. Replies
    6
    Views
    6,349

    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.
  17. Thread: One line IF

    by kenif
    Replies
    3
    Views
    3,119

    Re: One line IF

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

    by kenif
    Replies
    3
    Views
    3,119

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

    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.
  20. Replies
    4
    Views
    3,660

    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...
  21. Replies
    23
    Views
    11,960

    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
  22. Replies
    23
    Views
    11,960

    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...
  23. 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...
  24. 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.
  25. 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...
Results 1 to 25 of 42
Page 1 of 2 1 2