2009-08-20 10:31 PM
Timer0 and interrupt every fixed period. How??
2007-11-05 04:43 AM
Hello,
I would be pleased if you could help me with my first TIMER and Interrupt routine. I'm trying to activate an interrupt every certain time. My is configure code of Timer & interrupt is: TIM_Init(TIM0); TIM_PrescalerConfig(TIM0, 6 ); TIM_ClockSourceConfig(TIM0, TIM_INTERNAL); TIM_ITConfig(TIM0, TIM_TO_IT, ENABLE); /*Interrupt overflow*/ TIM_CounterConfig(TIM0, TIM_START); EIC_IRQChannelConfig(T0TIMI_IRQChannel, ENABLE); EIC_IRQChannelPriorityConfig(T0TIMI_IRQChannel, 1); EIC_IRQConfig(ENABLE); unfortunetly if does work. The program dont go to interrupt routine. Why? Should I add something else? Thank you and best regards. Alfa. [ This message was edited by: amoreno on 05-11-2007 18:14 ]2007-11-06 04:19 AM
Hello again, It is still not working :-[
I see on registers that timer is running but the interrupt never is served. By the way, my board is STR711-SK/IAR and software Workbench Quicstard 4.42A (4.42.1.501) I'd aprreciate your help. I'm newbie in ARMs Thanks Alfa2007-11-16 01:30 AM
May I suggest you to start from a working example?
Consider that the only way to see an interrupt working is to put a breakpoint in the interrupt service routine and let go the program. I post here an example of a IAR Embedded workbech for an STR75x micro. I should be in the STR7xx directory a similar example, I suggest you to start from that. However the project could be compiled also for STR711, I think. Good luck. Marco ________________ Attachments : Toggle_Mode.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtIx&d=%2Fa%2F0X0000000aLL%2FekdVNpMRzeGN.bO7xTWGo6hsZR9hyWlhKbwldE7mzsI&asPdf=false2009-08-20 10:30 PM
I think that you can add this line;
APB_ClockConfig (APB2, ENABLE, TIM0_Periph); and can added EIC_Init(); dipol_842009-08-20 10:31 PM
APB_ClockConfig (APB2, ENABLE, TIM0_Periph);