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?
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?
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