RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Contents Outline of Function......................3 Introduction of the Portable Environment Monitor..............3 Brief Introduction of the Portable Environment Monitor Demo Board ........3 Introduction of Operation ......................4 1.3.1 Enter Menu Display State ..................... 4 1.3.2...
LCM will display corresponding up arrow icon or down arrow icon. The high limit value and low limit value are stored in the RL78/G11 internal data flash. The block diagram of demo board is shown in Figure 1.2. Buzzer...
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Introduction of Operation 1.3.1 Enter Menu Display State In the normal display state, press the “MENU” key for entering menu display state. On the first screen, the LCM displays high temperature limit. The process of entering menu display state is shown in Figure 1.3.
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor 1.3.3 Set High Limit Value and Low Limit Value In any of the menu interfaces, you can press the “+” key or “-” key for setting its high limit value or low limit value.
In any of the menu interfaces, press the “OK” key for returning normal display state, and the new setting value of high limit and low limit will be stored in the RL78/G11 internal data flash. The process of quitting menu display state is shown in Figure 1.6.
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Introduction of Hardware Introduction of PCB The top view of the portable environment monitor is shown in Figure 2.1. LCM12864 LCM contrast ratio setting Buzzer drive circuit Humidity collection module E1 emulator interface...
The demo board of the portable environment monitor uses RL78/G11 as main MCU. The Flash ROM size of RL78/G11 is 16 KB and the RAM size is 1.5 KB. The peripheral functions of RL78/G11 and their applications are shown in Table 2.1.
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Temperature Sampling Circuit The temperature sampling circuit directly uses a linear voltage output temperature sensor (TC1047A), whose output voltage is directly proportional to the temperature. The TC1047A accurately measures the temperature from -40 ° C to + 125 °...
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Humidity Sampling Circuit The humidity sampling circuit uses a module sensor (HTG3515CH) to acquire humidity, whose output voltage is directly proportional to the humidity. HTG3515CH can measure the humidity from 0 %RH to 100 %RH.
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Luminance Sampling Circuit The luminance sampling circuit is a series voltage divider circuit that is composed of a photoelectric transistor (TEMT6000) and resistance R9. There is a linear relationship between the collector light current (I ) of TEMT6000 and luminance.
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Buzzer Alarm Circuit The buzzer is used for the alarm function. When the measured values exceed the high limit or the low limit, the buzzer will sound. The buzzer alarm circuit is shown in Figure 2.11.
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Schematic, PCB and Bill of Materials Schematic The schematic of the portable environment monitor is shown in Figure 3.1. Figure 3.1 Schematic R01AN3890EC0110 Rev. 1.10 Page 14 of 24 Sep. 15, 2017...
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Bill of Materials The bill of materials of the portable environment monitor is shown in Table 3.1. Table 3.1 Bill of Materials Designator Quantity Part Name Manufacturer Description ― ― Battery Socket ―...
The integrated development environment of the portable environment monitor is shown in Table 4.1. Table 4.1 Integrated Development Environments Item Contents Integrated development environment e2 studio V5.3.0.023 (Renesas Electronics Corporation) CS+ V6.00.00 (Renesas Electronics Corporation) C compiler CC-RL V1.02 (Renesas Electronics Corporation) Debugger...
Portable Environment (Temperature, Humidity, Luminance) Monitor Installation Procedure The following is necessary to build the sample application. Download the Data Flash Library corresponding to your development environment from Renesas website and copy to the “Lib” folder in the project. Data Flash Library for CC/RL78 https://www.renesas.com/en-us/software/D3016256.html...
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor Flow Chart 4.4.1 Flow Chart of Main Function The flow chart of the main function is shown in Figure 4.1. main() Calculate temperature, humidity and R_Systeminit() luminance value Get high limit and low limit from...
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor 4.4.3 Flow Chart of Key Module The flow chart of key “MENU” function service interrupt subroutine is shown in Figure 4.3. INTP0_isr() Menu display flag set to 1 g_lcm_MenuDisFlag = 1 Change the menu display type g_lcm_MenuDisType++ g_lcm_MenuDisType>6 ?
Page 22
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor The flow chart of key “+” function service interrupt subroutine is shown in Figure 4.5. INTP1_isr() g_lcm_MenuDisType is high temperature limit, low temperature limit, high humidity limit, low humidity limit ? Corresponding high limit or low limit <100?
Page 23
RL78/G11 Portable Environment (Temperature, Humidity, Luminance) Monitor The flow chart of key “-” function service interrupt subroutine is shown in Figure 4.6. INTP2_isr() g_lcm_MenuDisType is high temperature limit, or low temperature limit? Corresponding high limit or low limit > -40?
Reference Documents RL78/G11 User's Manual: Hardware (R01UH0637E) RL78 Family User's Manual: Software (R01US0015E) The latest versions of the documents are available on the Renesas Electronics Website. Technical Updates/Technical News The latest information can be downloaded from the Renesas Electronics website.
Page 25
Sep.15, 2017 Merge SW5 to SW1, SW2, SW3, SW4 in BOM list. 1.10 Sep.15, 2017 Modified the manufacturer of U3 from Hunirel to TE CONNECTIVITY in BOM list. 1.10 Sep.15, 2017 Changed the manufacturer of E1 from renesas to 3M Limited.
Page 26
General Precautions in the Handling of Microprocessing Unit and Microcontroller Unit Products The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products.
Page 27
(space and undersea repeaters; nuclear power control systems; aircraft control systems; key plant systems; military equipment; etc.). Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics.
Need help?
Do you have a question about the RL78/G11 and is the answer not in the manual?
Questions and answers