Part Number: TDA4VE-Q1
Other Parts Discussed in Thread: TDA4VL
Tool/software:
Dear TI Team,
We are using the TDA4VL/TDA4AL SoCs in our projects, and as part of the safety requirements we would like to configure and enable ESM.
I read through the TRM regarding the ESM module initialization, but some information mentioned below are bit contradicting.
It is mentioned in the TRM that the ESM input events are grouped in 32.
So each configuration register for a group j is a 32 bit register, with each bit representing the configuration for an ESM event.
For example, we consider the description of ESM_INTR_SET_EN_j register,

Here j = 0 to 3, so 4 groups for WKUP and MCU ESM instances, and 0 to 7 for Main ESM instance.
This means number of groups are 4 for the WKUP_ESM and MCU_ESM instances, and 8 groups for Main ESM instance.
This means we have upto 128 (4*32) ESM input events for the WKUP and MCU instances, and 256 (8*32) ESM input events for the main ESM instance.
In the interrupt sources section in TRM, I see that there are total
- 128 (interrupt IDs 0 to 127) events for WKUP ESM instance
- 105 (interrupt IDs 0 to 105) events for MCU ESM instance
- 666 (interrupt IDs 0 to 665) events for Main ESM instance

It is not clear to me how the 666 events of Main ESM instance is mapped in 8 groups.
Could you please confirm if my understanding is correct, or I missed something, and provide me a detailed description of how the ESM events are mapped to the configuration registers?
Thank you!
Best Regards,
Pramod Lakshman

