Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

tms320LF2407A and reentrant interrupts

Status
Not open for further replies.

belzebuth

Junior Member level 1
Joined
Jun 1, 2001
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
60
hi,

Does someone know how to generate reentrant interrupt code in C with code composer 2.2 or 4.12 on EZDSP2407 and how to write the code. i would like to do this because during a 40kHz interrupt i have to make calculus that are longer than the interrupt period and to sample some analog signal at this frequency, the long calculus are made every four inyterrupt in order to have a frequency of 10kHz and are about 2.5 interrupt long. I use timer1 to generate PWM and timer2 to make this sampling and calculus. perhaps i can split the sampling and calculus in two parts and use a third timer (timer3 for sampling and timer2 for calculations because it is necessary that sampling have an approximatively constant frequency, so because timer3 interrupts have a higher priority than timer2 interrupts, i suppose that it would work) but i prefer to have something reentrant, in the same interrupt.

is possible do that with code composer ?

Tanks for any help.

Belzebuth
 

if You use C for programming Your project, CCS is automaticaly set INTM on interrupt handler entrance.

If You want to use irq priority resource? You mast need enable global IRQ.


interrupt void pdpinta(void)
{asm(" clrc INTM ");
.....
return;
}

Interrupt priority system is described in spru286.pdf chapter2

University instruction:
https://www.ti.com/sc/docs/general/dsp/programs/shareware/c2000.htm
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top