Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Pickit3 12C508A won't connect -- MPLAB IPE

    I'm guessing you wanted a PIC12F508?
  2. Replies
    39
    Views
    13,461

    Re: Single button function

    IF Button = Pressed THEN
    WHILE Button = Pressed
    LOOP
    ENDIF
  3. Re: bitwise head scratcher? Rather, pulling my hair out.

    Along those same lines:


    IF (OutputMap1 = 7) & (PORTB = 7) THEN
    PORTB = 0
    ELSE
    PORTB = 7
    ENDIF
  4. Replies
    12
    Views
    1,460

    Re: Serin after instant interupt?

    You could also manually read the RCREG directly.
  5. Replies
    1
    Views
    330

    Re: Micro code studio -- 16F1847

    It's covered with the current PBP3.1. I guess that means "yes".
  6. Replies
    3
    Views
    551

    Re: CAB bus applications

    Post your question on ME Labs' forum:

    http://support.melabs.com

    Charles Leo has been working extensively with CAN lately and surely can help you out. He is the tech guy for ME Labs and the...
  7. Replies
    3
    Views
    551

    Re: CAB bus applications

    First, you can use external CAN modules that speak SPI/UART/I2C, making it easier for you.

    Second, you will still need an additional CAN driver to work with the voltages required.

    Check out...
  8. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    Although usually not necessary, there is a PPS Unlock sequence that is missing in the above code:


    PPSLOCK = $55
    PPSLOCK = $AA
    PPSLOCK.0 = 0

    Also, I checked on available Ports for MSSP1/2...
  9. Re: pass pic basic pro pic from pic 16f877a to pic 16f887

    I assume you have a data sheet for your LCD. First, only update the screen when a value changes. This means tracking "OldVolts" through a separate variable. Next, when you DO update, only update...
  10. Replies
    2
    Views
    462

    Re: Victron , VE.Direct

    I remember my high school science teacher would ask, "Any questions?" After close to a minute of silence he would add, "Do you understand enough to have any questions??" Not sure what you're even...
  11. Replies
    12
    Views
    689

    Re: Snap programmer

    It sounds like you're trying a "back door" approach. First, what IDE are you using? MicroCode Studio? MPLABX?

    From MicroCode Studio you should have the option of adding a Programmer to the...
  12. Replies
    21
    Views
    1,030

    Re: Pickit 3 failed to program

    Early PIC chips had a dedicated RESET pin; MCLR. Later they allowed that pin to also work as a generic digital input, giving it a name (like RE3). I am not aware of ANY PIC that allows the MCLR pin...
  13. Replies
    21
    Views
    1,030

    Re: Pickit 3 failed to program

    In a previous post the question was posed, where to buy? I searched Microchip's site for PICKit3 and it appears they have discontinued selling it. There are probably many in inventory at DigiKey...
  14. Replies
    21
    Views
    1,030

    Re: Pickit 3 failed to program

    It just occurred to me that the really old PIC16F chips have an issue with the Vpp/MCLR voltage. As I recall, putting a 100 ohm resistor between the Vpp pin and the PICKit3 was a work-around.
  15. Replies
    21
    Views
    1,030

    Re: Pickit 3 failed to program

    For $15 US you can replace it (or have a back-up) with the new Snap from Microchip. It has pretty much all the functionality of other Programmers, except you cannot power the device from it. ...
  16. Replies
    21
    Views
    1,030

    Re: Pickit 3 failed to program

    Process of elimination:

    - Try a different hub, or better yet, plug directly into your PC
    - Hold the button on the front of the PICKit 3 when you power it up until the lights blink. This forces a...
  17. Replies
    5
    Views
    355

    Re: 16F88 -- weird stuff Ansel?

    If that doesn't work, post your entire code, including your CONFIGuration bits. Use [ CODE] and [/CODE] (without the spaces) to compartmentalize your code in the forum posting.
  18. Replies
    17
    Views
    1,015

    Re: jumping out of a gosub reminder

    Then yes, POP the Stack. Not sure when such an approach might be considered good programming practice, though.
  19. Replies
    17
    Views
    1,015

    Re: jumping out of a gosub reminder

    Don't use both. What was printed in the above post will GOTO a new address, then erase the RETURN address. This will generate a Stack Underflow condition and the PIC will "exhibit unpredictable...
  20. Replies
    6
    Views
    1,028

    Re: Effect of DT_INT14 on Serin2 or DebugIn

    I guess this is a good place to start. Why not? You can use DT_INTs with every single Interrupt your PIC is capable, and all at the same time. You can have a Timer Interrupt and also multiple UART...
  21. Replies
    17
    Views
    1,015

    Re: jumping out of a gosub reminder

    I commonly use GOTO to jump from one Sub to another when there is nothing left to do in the first Sub. This keeps the Stack from building up, and reduces execution time. Working with the Nextion...
  22. Replies
    17
    Views
    1,015

    Re: jumping out of a gosub reminder

    Here is a simple exercise to review the Stack:


    10: Main:
    20: DO
    30: IF PORTB.1 = 1 THEN
    40: GOSUB CheckIn
    ' Stack Contains 40
    50: ENDIF
    60: LOOP
  23. Replies
    16
    Views
    2,509

    Re: Nextion LCDs... How to comunicate ???

    Since writing that first article I learned something new. Instead of placing a Picture the size of your screen, start with an empty screen. Choose "image" for sta. Then picc, browse, select your...
  24. Replies
    16
    Views
    2,509

    Re: Nextion LCDs... How to comunicate ???

    After you select "crop image" a new box will appear in Attributes called "picc". Click on it, click "browse", then select your background image.
  25. Replies
    21
    Views
    970

    Re: Array error in Hserin

    Another PBP trick when mixing with ASM is to declare your variables with the addendum SYSTEM:



    Variable VAR BYTE
    @MOVF _Variable, W

    ...becomes:
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4