DSPRelated.com
Forums

interrupt programming in c6713

Started by nikita iyer March 22, 2012
Hi all,
Is it possible to declare multiple interrupts in 6713. I have been reading
about interrupts from Chassings book and according to their example of
int11 this interrupt will occur at every sampling period. I do not wish
these interrupts to occur infinitely. How can I do that. Also I wish to
have three different types of interrupts for taking in and out data from
mic and line. Any suggestions on how to go about it?

Nikita
If using the BIOS::
There is a specific system call to enable/disable the interrupts globally.
There is a specific system call to enable/disable each individual interrupt.
The interrupt handler functions do not contain the 'interrupt' modifier.
The config file is used to link between each interrupt source and the associated
interrupt handler function.

If not using the BIOS::
--If using the common I/O library functions::
There is a specific lib call for placing each interrupt handler address into the
interrupt vector table.
There is a specific lib call to enable/disable the interrupts globally.
There is a specific lib call to enable/disable each individual interrupt.

--If not using the common I/O library functions::
There is a register where one bit is used to enable/disable the interrupts globally.
This same register has a set of bits to enable/disable each individual interrupt
source.

If not using the BIOS::
Then the interrupt vector table will need to be updated so the appropriate
vectors contain the address for the appropriate interrupt handler function.
Note: when not using the BIOS, the interrupt handler functions must include the
'interrupt' modifier and must save (typically on the stack) and restore any
registers modified during the interrupt processing.

There are two examples in the .../examples directory of the CCS application.
One example for using the audio in/out with the BIOS
One example for using the audio in/out without the BIOS, but with the common I/O
library.

Unless you want to learn the register usage for each peripheral, I would
strongly suggest using the common I/O library.

R. Williams
---------- Original Message -----------
From: nikita iyer
To: c6x
Sent: Thu, 22 Mar 2012 08:50:10 +0530
Subject: [c6x] interrupt programming in c6713

> Hi all,
> Is it possible to declare multiple interrupts in 6713. I have been reading
> about interrupts from Chassings book and according to their example of
> int11 this interrupt will occur at every sampling period. I do not wish
> these interrupts to occur infinitely. How can I do that. Also I wish to
> have three different types of interrupts for taking in and out data
> from mic and line. Any suggestions on how to go about it?
>
> Nikita
------- End of Original Message -------

_____________________________________