Hi All, I am using HC08908EY16 micro and CodeWarrior for my development. As part of my study I did one simple program which will use the timer interrupt. But it is not working .. I build this program on the
908EY186 sample available in the code warrior tutorial. I am not getting the timer over flow interrupt. Can any body point out waht is wrong with my code. I am using the MON08 debug interface. Here is my codevoid InitTimerModuleA(void ) { //Initializes timer :TOIE bit enabled, // timer stopped, reset,Internal Bus clock divided by 64 TASC = 0x76; TAMODH = 0x4A; // Modulo=19200 TAMODL = 0xFF; TASC0 = 0x40; TASC1 = 0x00; } interrupt void TimerInt(void) { Count++; } And my PRM file is as follows
NAMES END
SECTIONS Z_RAM = READ_WRITE 0x0040 TO 0x00EF; /* 0xF0 to 0xFF reserved for Monitor stacking */ MY_PSEUDOROM = READ_ONLY 0x0100 TO 0x023F; PLACEMENT DEFAULT_ROM INTO MY_PSEUDOROM; DEFAULT_RAM INTO Z_RAM; zpage INTO Z_RAM; END
STACKSIZE 0x20
VECTOR ADDRESS 0xFFF2 TimerInt