>
> Hi,
> i work with 54x, without DSP/BIOS, but i don't read about any doing
> for interrupt event: call if software interrupt, or setup if CCS
> simulation, or pulse on pin.
>
> Cheers
I don't know the language you use for programming, but if you dig into
the architecture and perhaps also the assembly commands associated with
interrupt operation, the answer to your question (which you didn't
actually ask) is likely to come clear.
--
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������
Reply by Vic●August 14, 20032003-08-14
Hi,
i work with 54x, without DSP/BIOS, but i don't read about any doing
for interrupt event: call if software interrupt, or setup if CCS
simulation, or pulse on pin.
Cheers
Reply by Jerry Avins●August 13, 20032003-08-13
�ine Canby wrote:
>
> Thanks for the reply Duy. I am now at the stage where I am simply
> trying to manually call an interrpt - interrupt 13 from a simple
> program, and I cant even get that to work. Here is the code I'm using.
> The Interrupt is not being triggered when I write to the ISR register.
> Can anyone tell me what I'm doing wrong?
>
> Thanks very much,
>
> Aine.
>
...
I don't see how interrupt 13 returns. Did I miss something?
Jerry
--
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������
Reply by ●August 13, 20032003-08-13
Thanks for the reply Duy. I am now at the stage where I am simply
trying to manually call an interrpt - interrupt 13 from a simple
program, and I cant even get that to work. Here is the code I'm using.
The Interrupt is not being triggered when I write to the ISR register.
Can anyone tell me what I'm doing wrong?
Thanks very much,
Aine.
#include <stdio.h>
#include <c6x.h>
#include "c6211dsk.h"
#include "cnfDSP.h"
#include "dsk6xHSB.h"
#pragma DATA_SECTION(handShakingBuffer, "my_DataSect")
int handShakingBuffer[HS_BUFFER_LEN];
/*-------------------------------------------------------------------------*/
/* main()
*/
/*-------------------------------------------------------------------------*/
int main()
{
/* dsp and peripheral initialization */
CSR=0x100; /* disable all interrupts */
IER=1; /* disable all interrupts except
NMI */
ICR=0xffff; /* clear all pending interrupts
*/
*(unsigned volatile int *)EMIF_CE0 = 0x30; /* EMIF CE0control
*/
ICR = IFR | 0x2000;
IER |= 0x2002; // enable int 13
CSR |= 1;
ISR=0x2000;
return(0);
}
void ledOn()
{
*(unsigned volatile int *)IO_PORT = 0x0000000;/* turn on user leds
*/
}
void ledOff()
{
*(unsigned volatile int *)IO_PORT = 0x7000000;/* turn off user leds
*/
}
interrupt void hpi_isr()
{
*(unsigned volatile int *)EMIF_CE1 = CE1_32;// EMIF CE1 control,
32bit async
ledOn();
*(unsigned volatile int *)EMIF_CE1 = CE1_8;// EMIF CE1 control, 8bit
async
newFlag = 1;
}
*** Vector.asm -
*
* TI Proprietary Information
* Internal Data
*
.ref _c_int00
.ref _hpi_isr
.ref _isr4
.sect "vectors"
RESET_RST:
mvkl .S2 _c_int00, B0
mvkh .S2 _c_int00, B0
B .S2 B0
NOP
NOP
NOP
NOP
NOP
NMI_RST:
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
RESV1:
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
RESV2:
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT4: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT5: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT6: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT7: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT8: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT9: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT10: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT11: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT12: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT13: b _hpi_isr
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT14: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INT15: NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
*** lnk.cmd -
-c
-heap 0x500
-stack 0x500 /* very large stack for DSP programs. */
-lrts6201.lib
MEMORY
{
vecs: o = 00000000h l = 00000200h
I_HS_MEM: o = 00000200h l = 00000020h
IRAM: o = 00000220h l = 0000FDE0h
CE0: o = 80000000h l = 01000000h
}
SECTIONS
{
"vectors" > vecs
my_DataSect > I_HS_MEM
.cinit > IRAM
.text > IRAM
.stack > IRAM
.bss > IRAM
.const > IRAM
.data > IRAM
.far > IRAM
.switch > IRAM
.sysmem > IRAM
.tables > IRAM
.cio > IRAM
}
Reply by Duy K Do●August 12, 20032003-08-12
aine_canby@yahoo.com (�ine Canby) wrote in message news:<57ed59a.0308111338.3bc93766@posting.google.com>...
> I'm still having no luck with this one guys,
> could someone suggest something I could try out to narrow down the issue here,
> Thanks very much,
>
> Aine.