Problem - Matrix keypad and Interrupts


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    53

    Default Problem - Matrix keypad and Interrupts

    I have a 2 row, 6 column matrix keypad connected to Port B of a PIC18F4620. The rows are on RB6-7 and the cols are RB0-5. I am using MisterE's keypad routine and it is generating this warning at compile time:

    Warning [202] Argument out of range. Least significant bits used.

    The keypad works as expected even though the warning is generated. Not sure why I am getting the warning?


    I am also trying to use Darrels' Instant Interrupts to make interrupt driven input from the keypad instead of scanning. When I try to use RBC_INT as an interrupt source, the compiler generates the following error:

    Error[101] INT_ENABLE - Priority State Not Found

    I can use other interrupt sources (eg.TMR1_INT) without any issues though.

    These have me stumped - any input greatly appreciated.

    Andy

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Problem - Matrix keypad and Interrupts

    Another crystal ball problem...
    Some code will help folks figure out the problem.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Apr 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: Problem - Matrix keypad and Interrupts

    Hi Dave,

    The problems were created by the nut behind the keyboard. The first problem was caused by not defining the keypad connection correctly. The second problem was due to some redundant code enabling an interrupt source (TMR1-INT) which was no longer defined in the interrupt list. Sometimes you can't see the forest for the trees.....

    Andy

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts