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.

RM57L843: N2HET assembler

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

Hi,

I am trying to write assembler code for N2HET processor. While hovering the cursor over "Enable Advanced Config Mode / Disable BlackBox Driver" under HET driver settings in Halcogen, It says the following.

1. Must use Interrupt enable settings for configuring interrupts. What does this mean?

2. In HET assembler, the switches "-n1" and "-hc32" should be used. But I don't see any such option in HET IDE. Where do I set these switches?

3. HR Prescale value has to be provided by the user. What does this mean? Can I not provide it in the Halcogen itself?

4. Under VIM channel settings in Halcogen, what is the difference between NHET TU2 vs just NHET interrupts?

THanks,

Ravi

Thanks,

Ravi

  • Hi Ravi,

    1. Must use Interrupt enable settings for configuring interrupts. What does this mean?

    This is regarding the below tabs:

    If you want to enable and use the interrupts, then you should need to configure them in these tabs.

    2. In HET assembler, the switches "-n1" and "-hc32" should be used. But I don't see any such option in HET IDE. Where do I set these switches?

    These will be helpful when creating new project, they will be used in background for new project creation. So you can't find them in any options.

    If you want to manually create a project, then do the following thing:

    Open hetp.exe in below path

    c:/.../HET IDE/03.05.01/bin/hetp.exe"

    And now give the command as below

    -n1 -hc32 -v2 <filename>.het

    3. HR Prescale value has to be provided by the user. What does this mean? Can I not provide it in the Halcogen itself?

    I think it's about the HR prescale value here:

    4. Under VIM channel settings in Halcogen, what is the difference between NHET TU2 vs just NHET interrupts?

    TU means Transfer Unit. TU interrupts are not related to the HET timer they are different interrupts, and they are related to the HET Transfer unit.

    To understand about Transfer unit, you need to refer the chapter-24.

    For HET timer module you just need to use only HET1 High and HET1 Low for N2HET1 module and similarly for N2HET2 module.

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    Thank you for the response. Regarding my first question related to interrupts. are you sure it refers to the ones you circled? I am asking because both of those tabs are not applicable when I disable black box driver.

    Thanks,

    Ravi

  • Hi Ravi,

    That is correct only. Even if we use black box driver, if we enable those interrupts the corresponding interrupt enable bits will get SET into the hetInit function in het.c.

    --
    Thansk & Regards,
    Jagadish.

  • Hi Jagadish,

    Got it. I am trying to use the Black Box driver for triggering edge interrupts. I enabled edges 0-5 as shown in the screen shots below. However, I don't see the interrupt (het2LowLevelInterrupt) triggering. Am I missing any settings?

    Thanks,

    Ravi

  • Hi Ravi,

    I think for low level you need to enable Level0 not level1.

    Please try to enable level0 and test it.

    And also make sure the following things:

    1. Make sure to call the 

    _enable_IRQ_interrupt_();
    after hetInit function.
    2. Make sure you are giving the signal at corresponding input to create raising edge interrupt.

    --
    Thanks & regards,
    Jagadish.

  • _enable_IRQ_interrupt_ seems to have fixed it thanks!