Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

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

cross mob
ZhenGuo
Level 1
Level 1
First reply posted First like given First question asked

Hello , 

I want to use the pin 1.4 as the external interrupt on rising edge in TLE9879, and I have worked the following configuration:

Step1: SCU->MODPISEL.bit.EXINT2IS = 1;

Step2: SCU->EXICON0.bit.EXINT2 = 1;

Step3: SCU->MODIEN2.bit.EXINT2_EN = 1;

Step4: SCU->MODIEN2.bit.EXINT2_EN = 1; 

This is my configuration of the exint2. 

And I also config the interrupt function in 'isr.c' and the 'isr_defines.h'.

But it didn't work. So do you have some comment for this question.

Thank you! 

Best regards.

0 Likes
1 Solution
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @ZhenGuo,

Please refer to the recommendations provided in the section 12.5.2 External Interrupt Control Registers of TLE987x User Manual.

 

You can refer to the FOC example from the BLDC shield code examples. In this example the pins are configured for external interrupt  for chip select/deselect functionality. 

 

Thank you

Best Regards

Raj Chaudhari

View solution in original post

0 Likes
1 Reply
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @ZhenGuo,

Please refer to the recommendations provided in the section 12.5.2 External Interrupt Control Registers of TLE987x User Manual.

 

You can refer to the FOC example from the BLDC shield code examples. In this example the pins are configured for external interrupt  for chip select/deselect functionality. 

 

Thank you

Best Regards

Raj Chaudhari

0 Likes