Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    901

    Re: Compiler (PBP v2.50C) errors

    I am now going through something similar. Out of the blue my PicStart Plus at the office won't program 16LF819. I also have another one there and I get the same error readings. However both program 8...
  2. Replies
    14
    Views
    1,200

    why are we getting hit with all this spam?

    It seems like this just started recently.
  3. Re: All kinds of electronic components are welcome to inquire

    Why does the utmel website cookie policy refer to Farnell keeping track of the cookies?
  4. Replies
    13
    Views
    1,057

    Re: Audio player

    We were doing this with an ISD5008. When that was discontinued we started moving into an ISD4003-08MPY. That was recently discontinued and are moving into an ISD17240. With a 4KHZ sampling frequency...
  5. Replies
    8
    Views
    794

    Re: Can't program a 12LF1840?

    https://www.findchips.com/search/12f683
  6. Re: How to do bitwise shift across several variables/array members?

    Are you using the shiftout command? If so you can select MSB or LSB first.
  7. Replies
    4
    Views
    524

    Re: Microchip Chip Shortage

    Are you looking for a particular Microchip part?
  8. Replies
    54
    Views
    7,677

    Re: Active low transmitter question

    I'm sure by "spec's" he means how much current does the relay draw.
  9. Replies
    54
    Views
    7,677

    Re: Active low transmitter question

    I agree Richard. It's like putting a Ferrari engine on a lawnmower. At work we have a small PCB with an 8-pin PIC and 4 of these mosfets. It replaces about a dozen different subassemblies in products...
  10. Replies
    54
    Views
    7,677

    Re: Active low transmitter question

    Yes, although I use a 47K across gate to source. Either way it will work. EDIT Note there is a L in the part number for Logic Level. It is NOT the standard F.
  11. Replies
    54
    Views
    7,677

    Re: Active low transmitter question

    Never tried 2N7000 but for 3V outputs, we use an IRLZ44N. It's a power mosfet that we use to switch up to a couple of amps without needing a heatsink.
  12. Replies
    17
    Views
    2,515

    Re: SHIFTOUT MSB/LSBFIRST clarification

    You will send 00000011.
  13. Replies
    17
    Views
    2,515

    Re: SHIFTOUT MSB/LSBFIRST clarification

    I haven't done this in a long time but here is a snippet of code I used to send by SPI to a device:

    Low PORTA.3 : Pause 10 'CHIP SELECT
    ShiftOut PORTC.5,PORTC.3,0,[9254\16] 'playconfig0
    ShiftOut...
  14. Re: Crystal oscillator variability between PICs?

    It's working for me now.
  15. Re: Crystal oscillator variability between PICs?

    Well I didn't receive a notification that this thread was replied to. I guess it's still not working.
  16. Re: Crystal oscillator variability between PICs?

    Yes same problem here. I used to but not anymore.
  17. Replies
    10
    Views
    4,997

    Re: Logical AND/OR/ Sequencing question

    Why not simply:

    IF (A=2) THEN
    IF (A=1) AND (B<6) THEN
    IF (B<6) AND (A=2) THEN
  18. Thread: Goodbye

    by peterdeco1
    Replies
    58
    Views
    52,276

    Re: Goodbye

    Look at the date of post #57. It is mind-boggling what has gone on in the world since then. I hope all of you who said goodbye are well.
  19. Replies
    4
    Views
    3,997

    Re: Power Saving on 16f628

    Just my 2 cents here. On most of my 16F819 projects idling current is about 5mA. When I add NAP 0, it drops to 1/2 mA. I put it at the top of the program where it's waiting for something such as a...
  20. Re: Advices required for Soap dispenser / sanitizer code

    At work, we make a product that detects hand motion to light up a string of LED's. You can use a FET to drive the soap pump motor. We use the ADC in a 12F675 to detect fluctuations from a 5528 LDR....
  21. Replies
    10
    Views
    9,716

    Re: 12F683 _CONFIG problem

    Yes it is old. I think it's version 2.65 or something.
  22. Replies
    10
    Views
    9,716

    Re: 12F683 _CONFIG problem

    I have used the following header for the 12F683 many times and never encountered any compiling problems. Try it.

    CMCON0 = 7 'comparators off
    ANSEL = 0 'all inputs digital, the adcin command...
  23. Re: ADC keyboard and fast response to user input, possible?

    Maincode:
    Adcin 0,x
    if x=128 then y=y+1
    if x=0 then y=y-1
    pause 100
    if x=255 then pointcheck
    if x < 255 then maincode
    pointcheck:
    Gosub display
    goto maincode
  24. Replies
    27
    Views
    13,385

    Re: How to prevent variable going below zero?

    I like Tumbleweed's code. Shorter and more to the point.
  25. Replies
    27
    Views
    13,385

    Re: How to prevent variable going below zero?

    Will this work for you?

    iflag var bit
    let iflag =0

    reader:
    adcin 0,Z
    pause 100
    IF Z>100 AND Z<130 THEN I=I+5
    IF Z<100 and iflag = 0 THEN I=I-5 'only if iflag = 0 it's OK to substract
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4