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.

TMS570LC4357: TMS570LC4357

Part Number: TMS570LC4357

Hello!

     How to config eight different interrupt priorities for eight GIOs of TMS570LC4357?

Thanks!

  • Hi Hu jiangbo,

    How to config eight different interrupt priorities for eight GIOs of TMS570LC4357?

    It is not possible to configure the eight different interrupt priorities to the eight GIO's of TMS570LC4357. Because the device GIO's supports only two level interrupt priorities.

    Refer 25.3.2 section in TRM.

    Here they clearly mention that only two-level interrupt priorities will be supported by GIO's in TMS570LC4357. One is High level priority and other one is low level priority interrupt.

    GIO high level interrupt have a high priority and GIO low level interrupt have a low priority.

    And that too, this interrupt priorities can be configured based on the ports, i mean we can't configure individual pin to the required priority.

    For example:

    The TMS570LC4357 device have two GIO ports right,

    GIOA and GIOB ports.

    So that means, we can configure either GIOA or GIOB or both to either the GIO High Level interrupt priority or the GIO Low Level interrupt priority.

    This can be done using GIOLVLSET 0(for GIOA) and GIOLVLSET 1(for GIOB) in the GIOLVLSET register.

    So, that means if we configure GIOA to high and GIOB to low level interrupt priority then all the GIO pins in the port A will have high priority over all the GIO pins in the port B and vice versa.

    --
    Thanks & regards,
    Jagadish.

  • Hello:

    If GIOA1 is set as high priority and GIOB1 is set as low priority.

    Can these two interrupts achieve interrupt nesting?which means that high priority interrupts interrupt low priority interrupts。

    thanks!

  • Hi Hu Jiangbo,

    Can these two interrupts achieve interrupt nesting?

    Interrupt nesting will not be possible, this is because:

    Cortex R4/5 does not support interrupt nesting inherently. If you do need nested interrupts it needs to be managed completely by the application code. There is no hardware mechanism to aid with this other than the pending interrupt status flags.

    The below application can handy for this:
    Nested Interrupts on Hercules spna219.pdf

    --
    Thanks & regards,
    Jagadish.