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.

AM2612: ESM access issue

Part Number: AM2612

Hi e2e,

 

Here our customer is using AM2612 in their application, they need some information about ESM module operation.

  1. safety error pin: these has an issue with PMIC in this pin, customer want to do a specific debug on this, they need to read out this pin status, including PIN dir and voltage level status, what's the way to read out, pls help to give us a code example. 
  2. ESM interrupt: we know that ESM module has 78 interrupt source, what's the way to read out these register? pls help to give us a code example. 

thanks in advance.

 

LEON

 

  • Hi Leon,

    Apologies for the delayed response, this thread very recently assigned to me.

    safety error pin: these has an issue with PMIC in this pin, customer want to do a specific debug on this, they need to read out this pin status, including PIN dir and voltage level status, what's the way to read out, pls help to give us a code example. 

    Unfortunately, we don't have any direct example for this.

    However, you can easily implement this by following below steps.

    For direction purpose you can read below register:

    Pin status can be identified using below register:

    Or else for to read pin status you can also use "GPIO_pinRead" API drectly.

    To measure precise voltage on this pin you need to connect this pin externally to ADC pin of the controller, and from there you can measure the exact voltage on this pin. We already have ADC examples in SDK, so once you connect this pin to ADC pin and the process can be same as example.

    ESM interrupt: we know that ESM module has 78 interrupt source, what's the way to read out these register? pls help to give us a code example. 

    The intSrc parameter in callback API will directly provide the source of your ESM interrupt.

    And the actual register that will provide this value are below registers:

    The above two registers will provide exact interrupt number based on the configured priority.

    And as shown above the SDL_ESM_interruptHandler API reading these registers and passing the exact interrupt source to the callback API.
    --
    Thanks & regards,
    Jagadish.