how to implement LIN mater sleep mode and wakeup mode?
Which device are you using?
I am using Rh850/F1k (R7F701587 microcontroller) using CS+ Ide
Hello,
The low power modes are controlled by Standby Controller which can be configured on Code Generator and generate related code.
Your solution will depend on which "sleep" mode is intended to use. HALT mode only shuts off the CPU, any interrupt can wake the device. STOP mode starts to reduce power to peripherals and things get interesting. DEEPSTOP shuts down lot of hardware to save lots of power, and requires significantly more effort to implement. Cyclic RUN/STOP mode are more specialized.
Do you have a low-power requirement to achieve, or have you decided which low-power mode to use?
sample code provide
how to implement cyclic RUN/STOP MODE.
If you use the Smart Configurator, you can configure the wake-up factors and low power modes and use the generated drivers.
To enter cyclic RUN/STOP mode the device must first enter DeepSTOP mode:
The mode transition to Cyclic RUN mode from DeepSTOP mode is triggered by wake-up factor2, and the mode transition to Cyclic RUN mode from Cyclic STOP mode is triggered by eitherwake-up factor 1 or wake-up factor 2.