Matrix keyboard and sleep


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: Matrix keyboard and sleep

    Thanks Mike.

    The problem is that the keyboard is a matrix one that is scanned to see which key was pressed. This complicates the case...

    Ioannis

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Matrix keyboard and sleep

    Maybe you could use a Timer to mask recently pressed buttons. When PORTB.4 IOC triggers, disable the IOC Interrupt for that pin, start your 50 ms Timer, then in the Timer ISR restore all IOC Interrupts, regardless of which one you disabled for the mask.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: Matrix keyboard and sleep

    I am not sure why you mention the portb.4 bit but regardless, the idea to use timer is good. Thanks.

    Matrix keyboard is more complicated in that aspect, also if sleep is also involved.

    Ioannis

Similar Threads

  1. 10x4 matrix keyboard using only portB
    By aratti in forum Code Examples
    Replies: 19
    Last Post: - 16th November 2011, 10:39
  2. Matrix keyboard for up to 32 keys
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st June 2009, 02:43
  3. Keyboard Matrix with a Twist
    By k3v1nP in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th October 2008, 11:51
  4. LCD + keyboard matrix minimal I/O
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st June 2006, 20:49
  5. Matrix keyboard problem
    By MegaADY in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th May 2005, 19:50

Members who have read this thread : 0

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