Fernando Maesso

PORTAD as GPIO at 9S12NE64

Discussion created by Fernando Maesso on Sep 20, 2007
Latest reply on Sep 22, 2007 by Fernando Maesso
  Hi!
      I'm trying to program a keypad (4x4 matrix) with a 9S12NE64 using PORTAD. But when I define this port as input for my keypad, the CW return a error:
  L1907: Fixup overflow TI1_Interrupt, to _PORTAD1 type 1, at offset 0x5

#pragma CODE_SEG __NEAR_SEG NON_BANKED
interrupt void TI1_Interrupt(void){
unsigned char T;
  TFLG1 = 16;                         
  T = PORTAD1;
  key_scan(T);
}
...

If I change the PORTAD for PORTB (for example), no errors acours.

Outcomes