HAGER SECURITY

MC9S08GT16A - Keyboard interrupt problem

Discussion created by HAGER SECURITY on Aug 1, 2007
Latest reply on Aug 2, 2007 by Alban Rampon
Hello,

I work with a MC9S08GT16A.

I have an interrupt whan I press my Button, but not every time I remove my finger.

You can see below my configuration:

Is there an errata sheet with this kind of problem?

I thank you a lot.



Code:
//PULL-UP for my BP.  PTAPE_PTAPE4 = 1;   KBIPE_KBIPE4 = 1;    KBISC_KBIE   = 1;    KBISC_KBIMOD   = 0;    KBISC_KBEDG4   = 0;   void interrupt 3 It_BP(void){    if  (KBISC_KBF == 1)   {      KBISC_KBIE  = 0;      KBISC_KBACK  = 1;                                                *  ==>     I send here a tempo of 30 ms.     And call after the following function.     }   } // end of It_BPvoid ihmTraiterTempoValidationBP(void){   *  ==> Button pressed<=> ihmEtatBP = TRUE;    if( ihmEtatBP != drvIhmTesterEtatLAB())    {                          KBISC_KBIE = 1;               if (ihmEtatBP == TRUE)      {           ihmEtatBP = FALSE;      }      else      {        ihmEtatBP = TRUE;      }            }} // end of ihmTraiterTempoValidationBP

 



--
Alban Edit: Please include FSL Part Number in all Message Subjects line.



Message Edited by Alban on 2007-08-01 08:07 PM

Outcomes