Renesas RA Family Getting Started with Low Power Applications for RA6 and
RA4 Groups
R11AN0471EU0104 Rev.1.04 Page 2 of 40
Oct.1.21
Contents
1. Application Overview ............................................................................................................... 4
1.1 Low Power Modes .................................................................................................................................. 4
1.1.1 Sleep Mode ........................................................................................................................................... 5
1.1.2 Software Standby Mode ........................................................................................................................ 5
1.1.3 Snooze Mode ........................................................................................................................................ 5
1.1.4 Deep Software Standby Mode .............................................................................................................. 5
1.2 Activation and Cancel Sources ............................................................................................................... 6
1.3 Peripheral Operation in LPM .................................................................................................................. 6
1.4 Use Case: Changing Clocks at Run-Time .............................................................................................. 6
1.5 Use Case: LPM Transition at Run-Time ................................................................................................ 7
1.6 Use Case: Operable Long Timer in Software Standby and Deep Software Standby Modes ................. 7
2. LPM HAL Module .................................................................................................................... 8
3. FSP Configuration ................................................................................................................... 8
3.1 Components Tab ..................................................................................................................................... 9
3.2 Stacks Tab ............................................................................................................................................. 10
3.3 Module Configuration ............................................................................................................................ 11
3.3.1 LPM Configuration ............................................................................................................................... 12
3.3.2 Timer Configuration ............................................................................................................................. 15
3.4 Pin Configuration ................................................................................................................................... 17
3.4.1 Pin Configuration in Normal Mode ...................................................................................................... 17
3.4.2 Pin Configuration in LPM ..................................................................................................................... 19
4. Application Architectures ....................................................................................................... 20
4.1 Clock Changing and LPM Transition .................................................................................................... 20
4.2 RTC Timer Operation in LPM ............................................................................................................... 22
4.3 Operable Long Timer in Software Standby and Deep Software Standby Modes ................................. 23
5. Application Code Highlights ................................................................................................... 23
5.1 Clock Source Setup ............................................................................................................................... 23
5.1.1 Handle On-Chip Modules in LPM to Reduce Power Consumption .................................................... 23
5.1.2 Change System Clock at Run-Time .................................................................................................... 25
6. Importing and Building the Project ......................................................................................... 26
7. Running Applications ............................................................................................................. 26
7.1 Board Setups ......................................................................................................................................... 26
7.2 Downloading the Executables ............................................................................................................... 27
7.2.1 Using a debugging interface with e
2
studio ......................................................................................... 27
7.2.2 Using J-Link tools ................................................................................................................................ 27