Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

Karthik7386
Level 2
Level 2
50 sign-ins 10 replies posted 25 sign-ins

Hi,

SCR Wake up through external interrupt disabled after SCR RTC Configuration. SCR RTC interrupt will cause any issues in the wake up through external interrupt?

0 Likes
9 Replies
Aiswarya
Moderator
Moderator
Moderator
10 solutions authored 25 replies posted 50 sign-ins

Hi  ,

Could you please give us more details on what exactly you mean by "SCR Wake up through external interrupt disabled after SCR RTC Configuration"?

Regards,
Aiswarya.

0 Likes

Hi,

We are using external interrupts for wake up the tricore from standby mode.we are also using SCR RTC for calculating the wake up time interval ( we configured the RTC to trigger interrupt in every one second. Based on we calculating the time.)in this use case RTC interrupt will cause any issues in the External interrupt. Some times not getting the external interrupt After initializing the RTC part.

0 Likes
Aiswarya
Moderator
Moderator
Moderator
10 solutions authored 25 replies posted 50 sign-ins

Hi,
Could you please try disabling the RTC interrupt and check if the interrupt occurs?
Could you please let us know the pins you are using, and could you also try by using some other pins?
Could you also share a timing diagram to see when exactly the RTC interrupt event and pin interrupt event occurs or doesn't occur? Is there any specific condition when it doesn't work since it works sometimes?

Regards,
Aiswarya.

0 Likes

Hi,

Please find the details below.

1.we are using P00.5,P01.6&P00.2 for External interrupt configuration.After RTC initialisation,External interrupt triggering is stopped. 

code flow for SCR

1.Watchdog and port initialisation. 2.RTC configuration 3.SCR is stuck at while loop( wait till tricore into standby mode)  After standby mode. 4. External interrupt Configuration 5. stuck at another while loop to monitor the External Interrupt.

After 2nd step getting the RTC interrupt. But we are not getting the External interrupt( In step 5).

RTC initialisation code:

SCR_SCU_PAGE=1,PMCON1= 0x6B, SCR_IEN1= 0x80,IEN0= 0x80,RTCCR3= 0x00,RTCCR2= 0x01,RTCCR1=0x1B,RTCCR0=0x34, RTCON= 0x15

 

 

 

 

0 Likes
Aiswarya
Moderator
Moderator
Moderator
10 solutions authored 25 replies posted 50 sign-ins

Hi,

Could you please try and reply to all the questions in the previous comment?

Kind Regards,
Aiswarya.

0 Likes

Hi,

Please find the comments below.

Could you please try disabling the RTC interrupt and check if the interrupt occurs?

After RTC Configuration , External interrupt is stopped

Could you please let us know the pins you are using, and could you also try by using some other pins?

we are using P00.5,P01.6&P00.2 for External interrupt configuration. We cannot modify the port pin.

Could you also share a timing diagram to see when exactly the RTC interrupt event and pin interrupt event occurs or doesn't occur? Is there any specific condition when it doesn't work since it works sometimes?

We are getting the RTC interrupt. For more details please check the below details.

code flow for SCR

1.Watchdog and port initialisation. 2.RTC configuration 3.SCR is stuck at while loop( wait till tricore into standby mode)  After standby mode. 4. External interrupt Configuration 5. stuck at another while loop to monitor the External Interrupt.

After 2nd step getting the RTC interrupt. But we are not getting the External interrupt( In step 5).

RTC initialisation code:

SCR_SCU_PAGE=1,PMCON1= 0x6B, SCR_IEN1= 0x80,IEN0= 0x80,RTCCR3= 0x00,RTCCR2= 0x01,RTCCR1=0x1B,RTCCR0=0x34, RTCON= 0x15.

0 Likes
Aiswarya
Moderator
Moderator
Moderator
10 solutions authored 25 replies posted 50 sign-ins

Hi,
Could you please let us know if you are getting the external interrupt without configuring the RTC?
Could you also check if other pins in the same external interrupt group works?

Regards,
Aiswarya.

0 Likes

Hi,

External interrupts are working without RTC configuration. We cannot change the allocated port pins. can you please check any issues in the RTC configuration part?

0 Likes
Aiswarya
Moderator
Moderator
Moderator
10 solutions authored 25 replies posted 50 sign-ins

Hi,
Could you please take care of the "Note" mentioned in the section "49.7.1 Clock System and Control" of AURIXTC3XX_um_part2_v2.0. User Manual.
Also, could you please share your entire code snippet?

Regards,
Aiswarya.

0 Likes