Other Parts Discussed in Thread: TMS570LS0714
Tool/software:
Hello,
Reading the section of TMS570LC43x TRM, section 2.4.3.1:
And also having the API "void systemPowerDown(uint32 mode)" available:
/* SourceId : SYSTEM_SourceId_007 */
/* DesignId : SYSTEM_DesignId_007 */
/* Requirements : HL_CONQ_SYSTEM_SR8 */
void systemPowerDown(uint32 mode)
{
/* USER CODE BEGIN (23) */
/* USER CODE END */
/* Disable clock sources */
systemREG1->CSDISSET = mode & 0x000000FFU;
/* Disable clock domains */
systemREG1->CDDIS = (mode >> 8U) & 0x00000FFFU;
/* Idle CPU */
/*SAFETYMCUSW 88 S MR:2.1 <APPROVED> "Assembly in C needed" */
_gotoCPUIdle_();
/* USER CODE BEGIN (24) */
/* USER CODE END */
}
It is still not clear to us on how exactly to enter and exit the low-power mode of the MCU (Sleep):
- What is the proper way to invoke the systemPowerDown function?
- Is any additional user code needed in the systemPowerDown function, to match the TMS570LC43x section 2.4.3.1 as shown above?
Please advise. Thank you.
John