1279 views|0 replies

6609

Posts

0

Resources
The OP
 

Embedded DSP Development --- DM642 Interrupt Timer [Copy link]

TIMER_Exception TimerException0; void timer1() { ////////////value/////////////////////////////// TimerHandle0 = TIMER_open(TIMER_DEV0, TIMER_OPEN_RESET); ; IRQ_setVecs(vectors); IRQ_globalEnable(); IRQ_isEnable(); //Map TIMER events to physical interrupt number IRQ_map(IRQ_EVT_TINT0, 14); //Reset the timer events IRQ_reset(IRQ_EVT_TINT0); TIMER_configArgs(TimerHandle0, 0x00000200,/*ctl*/ 0x11e1a300,/*prd*/ //10ms-0x000b71b0 enclosed by 300, 30ms-0x00225510 0x00000000/*cnt*/; ); IRQ_enable(IRQ_EVT_TINT0); } interrupt void timer0_isr() { // cnt_timer=(cnt_timer+1)%9; //////////Unloaded configuration///////////////////////////// IRQ_clear(IRQ_EVT_TINT0); IRQ_enable(IRQ_EVT_TINT0); } }

This post is from DSP and ARM Processors
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list