RE01 1500KB Group, 256KB Group Maintenance Free Power Management by RE Energy Harvesting Controller Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
Application Note R01AN4837EJ0111 RE01 1500KB Group, 256KB Group Rev.1.11 2020.09.24 Maintenance free power management by RE energy harvesting controller Summary This application note (hereafter "APN") , "Maintenance free power management by RE energy harvesting controller ", is provided with the associated sample code. It describes the power management strategy for an energy harvesting system that does not require battery maintenance, in terms of the replacement or the recharging of batteries by an external power source and provides specific sample code examples for these applications. Chapter 1 summarizes the power management for energy harvesting. Chapter 2 and subsequent chapters describe the hardware and software configuration and operation of the specific sample code examples. ⚫ Attached sample project name: ➢ r01an4837_re_power_management_1500kb ➢ r01an4837_re_power_management_256kb Target Device The RE01 group 1500KB product in the RE family (model name: R7F0E015D2CFB) The RE01 group 256KB product in the RE family (model name: R7F0E01182CFP) Video Contents RE family Course You can easily get how to use RE family to learn these video contents. https://academy.renesas.com/?eid=1625 R01AN4837EJ0111 Rev.1.11 Page 1 of 63 2020.09.24 RE01 1500KB Group, 256KB Group Maintenance free power management by RE energy harvesting controller Table of Contents 1. Summary of Power Management for an Energy Harvesting System ................................. 4 1.1 About Energy Harvesting .............................................................................................................. 4 1.2 About Power Management ............................................................................................................ 4 1.3 Basic Design Method .................................................................................................................... 4 1.3.1 Hardware Design .................................................................................................................... 4 1.3.2 Software Design .................................................................................................................... 10 1.4 Shipping Products Equipped with Energy Harvesting Systems .................................................. 13 2. Overview of Sample Code .............................................................................................. 14 2.1 Sample Code............................................................................................................................... 14 2.2 Implemented Software Functions ............................................................................................... 14 2.3 Operation Specifications ............................................................................................................. 15 2.4 Confirmation of Operation ........................................................................................................... 17 2.5 Procedure for Operating Sample Code ....................................................................................... 18 2.5.1 Board Settings....................................................................................................................... 19 3. Hardware Configuration .................................................................................................. 21 3.1 Components ................................................................................................................................ 21 3.2 Circuit Configuration .................................................................................................................... 22 3.2.1 Power Supply Line Configuration .......................................................................................... 24 3.2.2 Signal Line Configuration ...................................................................................................... 24 3.3 Pins Used and Connections ........................................................................................................ 25 4. Software Operation ........................................................................................................ 26 4.1 Folder Structure........................................................................................................................... 26 4.2 File Configuration ........................................................................................................................ 27 4.3 Option-Setting Memory ............................................................................................................... 29 4.4 Hardware Resources .................................................................................................................. 30 4.5 List of Constants ......................................................................................................................... 30 4.6 Flowcharts ................................................................................................................................... 31 4.6.1 Sample Code Overall ............................................................................................................ 31 4.6.2 Startup Operation .................................................................................................................. 32 4.6.3 Application Operation ............................................................................................................ 35 4.6.4 Battery Recovery Operation .................................................................................................. 37 4.6.5 Safe Shutdown Operation ..................................................................................................... 39 4.6.6 Demo operation (The example of user application) .............................................................. 40 4.7 List of Functions .......................................................................................................................... 41 4.7.1 List of LCD Control Functions ............................................................................................... 48 4.7.2 List of LVD LVDBAT Control Functions ................................................................................ 52 4.8 How to replace a demo operation with user application ............................................................. 55 5. Debugging ...................................................................................................................... 57 5.1 Debugging Energy Harvesting Startup Program ......................................................................... 57 5.1.1 Procedure for Program Debugging ....................................................................................... 57 5.1.2 LVD1 function Debugging Method ........................................................................................ 58 R01AN4837EJ0111 Rev.1.11 Page 2 of 63 2020.09.24 RE01 1500KB Group, 256KB Group Maintenance free power management by RE energy harvesting controller 5.1.3 LVDBAT function Debugging Method ................................................................................... 58 5.1.4 Method of Debugging while Maintaining Debugger Connections ......................................... 59 6. Troubleshooting .............................................................................................................. 61 R01AN4837EJ0111 Rev.1.11 Page 3 of 63 2020.09.24 RE01 1500KB Group, 256KB Group Maintenance free power management by RE energy harvesting controller 1. Summary of Power Management for an Energy Harvesting System This chapter covers the basic concepts of the power management strategy for energy harvesting applications that does not require battery replacement or charging from and external power source and the basic design method using the RE01 group products. 1.1 About Energy Harvesting "Energy harvesting" refers to technology for electric power generation by converting energy in the environment--whether in the form of sunlight, temperature differences, vibrations, dynamo (water turbines and wind turbines), pressure, or something else--into electric power. The electric power generated in this way can be stored in capacitors or secondary batteries to provide the power to operate an electronic system. 1.2 About Power Management In this document, "power management" is defined as maintaining an energy input/output balance between energy generation/accumulation and energy consumption. By performing power management, battery replacement and charging by human intervention becomes unnecessary, and the system operate autonomously. In order to maintain an input/output balance, the system-level control described below is necessary. 1.3 Basic Design Method 1.3.1 Hardware Design (1) Circuit configuration Figure 1-1 shows an example of a power management circuit configuration in an energy harvesting system. For information on the power generating element, storage capacitor, and secondary battery connections, refer to the User's Manual: Hardware Edition. R01AN4837EJ0111 Rev.1.11 Page 4 of 63 2020.09.24 RE01 1500KB Group, 256KB Group Maintenance free power management by RE energy harvesting controller RE01 AVCC0 PWR Generation SW Sensor1 Element VSC_VCC EHC 【Important Note2】 Storage Capacitor SW REG VCC_SU port Analog Secondary domain AVCC0 Battery VBAT_EHC SW Sensor2 VCC/IOVCC VCC MCU 【Important Note2】 Digital IO port port IODigital IOVCC1 domainIOVCC1 Digital IO port IODigital SW REG Wireless Port Output domain