MC68HC908QT4
 
CPU Component MC68HC908QT4
Freescale HC08 family : MC68HC908QT4 in 8 pin package
Component Level: High
Freescale HC08 family 8-bit controller

68HC908QT4 Demonstration Board support.

Processor Expert supports code generation for 68HC908QT4 Demonstration Board. Interrupt vector table have to be generated to address 0xFDEB in this case.

Following is an example of generated vector table (file Vectors.c):

void Cpu_Interrupt();
void _Startup();

#define CONFIG1_VAL  0x3D              /* user value for CONFIG1 */
#define CONFIG1_ADR  0xFDEA            /* Address of user value for CONFIG1 */
#define JMP_TAB_ADR  0xFDEB            /* Address of jump table */
#define JMP_Code     0xCC              /* Opcode of JMP instruction */

typedef void (*tIntFunc)(void);

typedef struct jumpEntry {
   unsigned char jmpIstr;
   tIntFunc      intFunc;
} JumpEntry;

const unsigned char CONFIG1_REG @CONFIG1_ADR = CONFIG1_VAL; /* CONFIG1 register */

const JumpEntry IntJmpTable[] @JMP_TAB_ADR = { /* Table of JMP instructions */
  JMP_Code, Cpu_Interrupt,
  JMP_Code, Cpu_Interrupt,
  JMP_Code, Cpu_Interrupt,
  JMP_Code, Cpu_Interrupt,
  JMP_Code, Cpu_Interrupt,
  JMP_Code, Cpu_Interrupt,
  JMP_Code, _Startup
};