Keypads HELP! hehe, Need advice and possible code.


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    32


    Did you find this post helpful? Yes | No

    Default Re: Keypads HELP! hehe, Need advice and possible code.

    I think you have a mistake here

    Code:
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   INT0_INT,  _KEYPRESS,   PBP,  yes
    	endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    @   INT_ENABLE   INT0_INT     ; enable external (INT) interrupts
    I belive it has to be like this ;

    Code:
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   INT_INT,  _KEYPRESS,   PBP,  yes
    	endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    @   INT_ENABLE   INT_INT     ; enable external (INT) interrupts
    actually both are same but you may wanna try

    PS: also "X = PORTB <<4" statement is wrong, change it to "X = PORTB >> 4"
    Last edited by elcrcp; - 23rd April 2013 at 00:20.

Similar Threads

  1. Membrane Keypads
    By jonathan in forum Adverts
    Replies: 0
    Last Post: - 15th April 2009, 21:18
  2. Low key count membrane keypads
    By AndrewC in forum General
    Replies: 6
    Last Post: - 7th April 2009, 20:12
  3. Need advice on A/D
    By james in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th August 2007, 19:30
  4. Custom membrane keypads UK
    By Calco in forum Off Topic
    Replies: 2
    Last Post: - 14th May 2004, 09:02

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