Page 1
Rev. 1.00 PowerPoint Presenter Mar. 31, 2017 Introduction This application note describes how to use microcontroller RL78/G1D to realize PowerPoint Presenter (thereafter PPT presenter) solution which exchanges data with PC through Bluetooth Low Energy (BLE) communication. Target Device RL78/G1D When applying the sample program covered in this application note to another microcomputer, modify the program according to the specifications for the target microcomputer and conduct an extensive evaluation of the modified program.
RL78/G1D PowerPoint Presenter Contents Description ........................4 Abstract ............................4 Specifications and Main Technical Parameters ............... 4 Function Description ........................5 Description of the Hardware ..................6 System Block Diagram ....................... 6 Main MCU ............................. 7 Power Supply Circuit ........................8 2.3.1...
Page 3
RL78/G1D PowerPoint Presenter Sample Code ........................ 21 Reference Documents ....................21 Website and Support ......................21 R01AN3592EC0100 Rev. 1.00 Page 3 of 21 Mar. 31, 2017...
• Broadcasting connection function: After system powers on, PPT presenter broadcasts to PC, then PC connects to PPT presenter “Renesas-BLE-PPT” and installs built-in BLE driving program automatically. • Page turning function: Press page-down key, PPT file is turned to the next page.
Click the “Show the hidden icons” button in the lower right of the PC screen, then double click the Bluetooth icon In “Bluetooth Devices” window, click “Add a device”, then double click the device named “Renesas-BLE-PPT”, PC will establish a connection with it and will install HID BLE driving program automatically.
Description of the Hardware System Block Diagram Figure 2.1 shows the system block diagram for this application. Figure 2.1 System Block Diagram Figure 2.2 shows the demo board picture. RL78/G1D Module Power Supply Switch (RTK0EN0002C01001BZ in RTK0EN0001D01001BZ) Black Screen Key Page-down Key Page-up Key Figure 2.2 Demo Board Picture...
PowerPoint Presenter Main MCU PPT presenter uses RL78/G1D (R5F11AGJ) as main MCU. The Flash ROM size is 256 KB, RAM size is 20 KB. Table 2.1 lists the pins to be used by PPT presenter. Table 2.1 Pins to be used by PPT Presenter...
RL78/G1D PowerPoint Presenter Power Supply Circuit 2.3.1 Power Supply Circuit Schematic Figure 2.3 shows the schematic of the power supply circuit. Figure 2.3 Power Supply Circuit 2.3.2 Power Supply Circuit Function Description Power supply circuit uses CR2032 lithium battery as the power supply of PPT presenter, and uses a dial switch SW_DIP_1 to turn on/turn off power.
Figure 2.4 BLE Transceiver Circuit 2.4.2 BLE Transceiver Circuit Function Description The BLE transceiver circuit in this application uses RL78/G1D BLE module (RTK0EN0002C01001BZ in RTK0EN0001D01001BZ), which can connect with the circuit board of the PPT presenter directly through a 24 pin socket (small-scale SMT).
RL78/G1D PowerPoint Presenter LED Driving Circuit 2.5.1 LED Driving Circuit Schematic Figure 2.5 shows the schematic of the LED driving circuit. Figure 2.5 LED Driving Circuit 2.5.2 LED Driving Circuit Function Description System uses a green SMD LED as the system status indicator light. It can reach the maximum brightness when current is 20 mA.
RL78/G1D PowerPoint Presenter Key Circuit 2.6.1 Key Circuit Schematic Figure 2.6 shows the schematic of the key circuit. Figure 2.6 Key Circuit 2.6.2 Key Circuit Function Description When demonstrating a PPT file on a PC or a multimedia projector, press SW1 key, PPT file is turned to the next page.
RL78/G1D PowerPoint Presenter Schematic, PCB and Bill of Materials Schematic Figure 3.1 shows the schematic of the PPT presenter. Figure 3.1 Schematic R01AN3592EC0100 Rev. 1.00 Page 12 of 21 Mar. 31, 2017...
RL78/G1D PowerPoint Presenter Description of the Software Software Modules The tasks of the whole system are listed as below: initialization task, broadcasting and connection task, preparation task, notification task. Figure 4.1 shows the block diagram for the tasks transition. Disconnection...
000C3H 10000101B Enable on-chip debugger Software Preparation For using PPT presenter, please download BLE protocol stack library corresponding to your development environment from Renesas website and copy it to the following folder: (Target folder)\workspace\renesas\lib - BLE_CONTROLLER_LIB_CCRL.lib - BLE_HOST_lib_CCRL.lib - BLE_PROFILE_HGP_LIB_CCRL.lib - BLE_PROFILES_COMMON_LIB_CCRL.lib...
RL78/G1D PowerPoint Presenter 4.5.2 rBLE API Initialization Processing Figure 4.3 shows the flowchart for the rBLE API initialization processing. rBLE API BLE Protocal Stack Start application RBLE_App_Init BLE API initialization Call RBLE_Init Initialization event (RBLE_MODE_ACTIVE) GAP initialization Call RBLE_GAP_Reset GAP event...
RL78/G1D PowerPoint Presenter 4.5.4 Key Status Confirmation Processing Key status confirmation processing of SW3 is as same as SW1 and SW2. Figure 4.5 takes SW3 for example to show the flowchart for the key status confirmation processing. sw3_status_conf() Check SW3 key status...
Reference Documents RL78/G1D User’s Manual: Hardware (R01UH0515E) 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.)
Revision History Description Rev. Date Page Summary — 1.00 Mar. 31, 2017 First edition issued...
Page 23
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 24
(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/G1D and is the answer not in the manual?
Questions and answers