I am new to stm8s microcontroller programming but I am well known programmer of pic16 and avr microcontroller. Now a days I am learning the programming of stm8s microcontroller so I have made a program for 8bit timer4 module and tried to simulate using STVD simulator but I couldn't find my program counter executing my interrupt service routine. I have seen ST Standard peripheral library for code development but still I can't make efficient code for timer4.
Can any one please help how to write and execute ISR vector for timer4?
INTERRUPT_HANDLER(TIM4_UPD_OVF_IRQHandler, 23)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
}
Thank you for help. I tried this one also but couldn't get into is. At building the project it shows me 2 errors.
1) missing )
2) old style argument declaration
When I didn't include stm8s.h file it shown an error prototype missing for rim (); but now after including that file no errors and no warning for build.
I think the deal not in "iostm" - probably the problem in simulator. In IAR software simulation interruptions are processed after manual setting in "Interrupt setup" menu - rim() and IER do not affect on this.