- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the below sample program.
I do not use LED program , instead, the CAN communication function is used so that the status can be confirmed by transmitting CAN when in the NORMAL state.
Also, to use SCR as a wakeup trigger, I made the following modifications.
standbyConfig.enableScr = TRUE;
standbyConfig.enableWakeupOnScr = TRUE;
SCR is the following program.
void main(void)
{
SCR_SCU_PAGE = 1; //Switch to page 1
SCR_PMCON1 =0x3B; //OCDS, T2CCU and SSC enabled
SCR_SCU_PAGE = 0; //Switch to page 0
SCR_IRCON0 = 0x0; //Reset interrupts
SCR_IEN0 = 0x80; //Enable global interrupts
SCR_IEN1 = 0x80; //XINTR13 is enabled
SCR_SCU_PAGE = 1;
SCR_RTC_CNT3 = 0;
SCR_RTC_CNT2 = 0;
SCR_RTC_CNT1 = 0;
SCR_RTC_CNT0 = 0;
SCR_RTC_RTCCR3 = 0x00;
SCR_RTC_RTCCR2 = 0x00;
SCR_RTC_RTCCR1 = 0xFF;
SCR_RTC_RTCCR0 = 0x40;
SCR_RTC_RTCON = 0x15;
while(1)
{
}
}
void __interrupt(0x6B) rtc_interrupt(void)
{
SCR_SCU_PAGE = 1;
SCR_SCU_STDBYWKP = 0x2;
}
I confirmed that it will be in Standby mode. But I can't wake up from SCR.
Where am I going wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please clarify how you're trying to perform a wakeup? The TC3xx_UM_Part_1 section "11.2.3.4 Standby Mode" mentioned about different ways to wake up from Standby mode under different configurations of VEXT and VEVRSB.
Regards,
Prudhvi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
[premise] Standby Mode with both VEXT and VEVRSB supplied via common supply rail(PMIC)
I want to wake-up via "Wake-up is triggered by Standby ControlleR if configured via PMSWCR0.SCRWKEN enable bit."
And in SCR, I want to use RTC to generate an interrupt and wake up after a certain period of time.
Regards,
Pistons7