This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HELP! 6727 DSP/BIOS how to simulate a Hardware Interrupt(HWI)?



my program is like this:

#include "Configuration1cfg.h"
#include"hwi.h "

void main()
{
   HWI_enable();
    LOG_printf(&LOG0,"jjjjjjj");
}

 

void HWI_int555()
{
 LOG_printf(&LOG0,"bbbbbbb");
}

I config the DSP/BIOS and connect the pin. But the  interrupt not happen when CPU cycle have achieve!

I refer to theC6000 DSP/BIOS5.32 API ,but there seem to have a litter about the HWI Module and i cannot use the IRQ in this version.What should do?

  • Is this in a simulator?  Or is this using Simulink from the Mathworks?  I didn't understand your post.  Sorry.

    One thing to note is that the 672x has hard-coded interrupt mappings.  Please see Section 2.3 of the C6727B datasheet.

  • it should be simulate! Sorry!

    I want to use the DSP/BIOS to simulate a hardware interrupt. I have do it successful In 6416 by use the CSL IRQ to enable the interrupt. But according to the 6727 BSP/BIOS API I cannot use the CSL to do it.

    CSL 2.x has built-in support for DSP/BIOS, in that it reserves an on-chip timer for DSP/BIOS use, and allows DSP/BIOS to manipulate the interrupt dispatch table.
    CSL 3.x is OS-independent, so it makes no registration of the use of resources, such as the timer and cache, by DSP/BIOS. DSP/BIOS users should use the interrupt controller/dispatcher that is part of DSP/BIOS, rather than the CSL INTC module. The CSL 3.x INTC module is delivered as a separate library so it can be optionally linked in. DSP/BIOS users should not link in the INTC library, but should use BIOS API calls for interrupt control, including enabling and disabling interrupts.
    The DSP/BIOS graphical configuration tool GCONF no longer configures peripherals via CSL API calls, as did earlier versions of the tool.

    There seem to have no function in BIOS API to enable the interrupt! What shoud i do? Thank you!

  • Hi yang,

    You can enable the interrupt by calling the function C62_enableIER(C62_EINT8) - according to this document page 72.

    To configure the function called be the interrupt you can go to the TCF file and edit the properties of the interrupt you want o use.

    This article can help:

    http://tiexpressdsp.com/wiki/index.php?title=Converting_from_INTC_to_BIOS

     

  • Thank you! [:D]

    I've successful to interrupt by your suggestion!