Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Neil67
Level 1
Level 1
5 sign-ins First reply posted First question asked

I'm using an AURIX TC377 and need to trigger the ADC on both the rising and falling edge an external discrete input, but after a short delay (~100us).  I've looked at using the ECU but that only provides a delay of up to 2us.  The CCU6 T12 and T13 look like they could do the job, but couldn't see how to configure them to achieve the desired functionality.

Is the CCU the best approach or is there a better way using the GTM?

0 Likes
1 Solution
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @Neil67 ,

For this you can make use of ERU (External Request Unit) for this, It's major function is the generation
of interrupts based on selectable trigger events on the input pin (you can use the GPIO input pin for this). ERU interrupt output can be used as a trigger for EVADC as mentioned in Table 266 Digital Connections for Product TC37x in TC37x Appendix User Manual

 

For understanding the functionality of ERU and getting an understanding on how to configure it for your use case please refer to section 9.5 External Request Unit (ERU) in TC3xx User Manual . Also for getting started you can refer this code example on ERU interrupt: ERU_Interrupt_1_KIT_AURIX_TC375_LK kindly follow this link to get the presentation associated with this example: ERU_Interrupt_1_KIT_AURIX_TC375_LK . 

View solution in original post

0 Likes
3 Replies
Nambi
Moderator
Moderator
Moderator
5 likes given 100 solutions authored 250 replies posted

Hi,

1. What is being referred to as "ECU" here?

2.  Could you check if the configurable delay provided by the "Request Timer" of the EVADC module can help your application?

Nambi_0-1696568244415.png

You can refer to the section "Self-Timed Execution of Conversion Sequences" from the UM AURIXTC3XX_um_part2_v2.0.pdf.

Best Regards.

0 Likes
Neil67
Level 1
Level 1
5 sign-ins First reply posted First question asked

This looks like it could work.  Thanks for the help.

However, i'm struggling to work out how to trigger the EVADC from a GPIO input.  All the examples show the EVADC being triggered from timers and not from an external input.

Can you point me in the right direction?

0 Likes
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @Neil67 ,

For this you can make use of ERU (External Request Unit) for this, It's major function is the generation
of interrupts based on selectable trigger events on the input pin (you can use the GPIO input pin for this). ERU interrupt output can be used as a trigger for EVADC as mentioned in Table 266 Digital Connections for Product TC37x in TC37x Appendix User Manual

 

For understanding the functionality of ERU and getting an understanding on how to configure it for your use case please refer to section 9.5 External Request Unit (ERU) in TC3xx User Manual . Also for getting started you can refer this code example on ERU interrupt: ERU_Interrupt_1_KIT_AURIX_TC375_LK kindly follow this link to get the presentation associated with this example: ERU_Interrupt_1_KIT_AURIX_TC375_LK . 

0 Likes