I want to work a 1 Hz waveform from the RTCOUT pin( P407). I’ve successfully configured the pin, but can not feel to get an work on P407. Are there certain way that I’ve to follow to get this working?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Volt.Tech
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that you have enabled the RTCOUT pin in the pin configuration, add this line of code to your project. R_RTC->RCR2_b.RTCOE = 1; For example: void hal_entry(void) { /* TODO: add your own code here */ fsp_err_t err; err = R_RTC_Open(&g_rtc0_ctrl, &g_rtc0_cfg); if( FSP_SUCCESS != errRead more
Assuming that you have enabled the RTCOUT pin in the pin configuration, add this line of code to your project.
R_RTC->RCR2_b.RTCOE = 1;
For example:
void hal_entry(void)
{
/* TODO: add your own code here */
fsp_err_t err;
err = R_RTC_Open(&g_rtc0_ctrl, &g_rtc0_cfg);
if( FSP_SUCCESS != err )
{
__BKPT(1);
}
err = R_RTC_CalendarTimeSet(&g_rtc0_ctrl, &sys_time);
if( FSP_SUCCESS != err )
{
__BKPT(1);
}
R_RTC->RCR2_b.RTCOE = 1;
while(1);
}
Would have thought that an API may exist for this, or would be enabled by default when you enable the pin in the pin config.
See less