Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    Here's a version of DT-INTS that works with all the 18xv core devices (K42, K83, and Q43)
    It could be used to add the Q83/Q84 and Q40/Q41, but those can't be used by PBP since they're not supported...
  2. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    The first one creates a '#define' used by the INT_LIST, INT_ENABLE and other macros that specifies the PIR reg and bit


    #define INT1_INT INTCON3,INT1IF ;-- INT1 External


    The second one...
  3. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    That's one of the reasons why it's usually better NOT to use interrupts to handle things like button presses and just poll it.
    In your main loop you can still use the IOC IF flag to check and see if...
  4. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    Glad it's working. If you run across anything funny let us know.

    There are a few bytes of ram reserved by DT_INTS for things that aren't needed, so they could be gotten rid of too but it's not...
  5. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    Not sure how I missed this the first time around, but you're manually enabling both the IOC and INT interrupts.
    Don't do that. Get rid of both these lines:


    INTCON = %11000000 '...
  6. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    I took a look at the asm code produced by post 8 and I don't see anything that jumps out as being wrong, so I don't know why it's having a problem.

    One thing I would change... get rid of this

    ...
  7. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    You need to redo the section that #defines the interrupt bit locations.
    It's in the section that looks like this...


    #define INT_INT PIR0,INTF, PIE0,INTE ;-- External INT
    ...
  8. Replies
    29
    Views
    6,435

    Re: DT Ints not working on 16F18426

    If you're using the stock DT_INTS-14.bas (v1.10), it's not going to work with the 16F18426.
    The interrupt register bits are completely different.
Results 1 to 8 of 8