Fast prototyping board 16-bit single-chip microcontrollers (27 pages)
Summary of Contents for Renesas RL78/G23 Series
Page 1
All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. without notice. Please review the latest information published by Renesas Electronics Corp.
Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.
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 4
Renesas or its affiliates shall in no event be liable for any loss of profit, loss of data, loss of contract, loss of business, damage to reputation or goodwill, any...
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 1. Introduction This document provides detailed information about the RL78/G23 Inductive Sensor system and how the functionality was implemented. The entire system is composed of the Inductive Proximity Sensor shield & the RL78/G23 64p FPB.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 2. Resource Constraints and Usage 2.1 Memory resources The chosen microcontroller - R7F100GLG2D includes: • 128 KB ROM (Code flash) • 8 KB Data Flash • 16 KB RAM The LLVM toolchain, version 10.0.0.202104, has been used in the development of this project. Optimization level is -O0 (None).
4. Software Layer The following picture represents the software model. Figure 3. Software layer model The Application layer implements the functionality of the Renesas inductive proximity sensing solution sequencer which contains: • Application process (APP): this module is responsible to update the hardware components for the sensors group selection.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 5. Context Management 5.1 System initialization The start-up sequence after power-on reset is presented in Figure 6 below. Figure 6. Activity diagram The first step after power-on reset is the basic controller initialization. Next is the initialization of the clock tree and microcontroller hardware components used for the application algorithm.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 6. Mechanism The following section outlines the mechanisms utilized in the RL78/G23 64p FPB Inductive Proximity Sensing solutions implementation. 6.1 Differential Synchronization The working principle is based on LC tank circuit oscillation. To detect conductive target presence over a sense coil, another coil is required as reference.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual Figure 8. Excitation pulse – phase shift through one-shot pulse output Timer channel 5 of the TAU is configured in interval timer mode and is used to time the delay between the pulse trigger and the comparator measurement point i.e., when the output envelopes are compared.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 6.2 System State Model The Sequence Diagram below presents the measurement logic of the RL78/G23 Inductive Sensor. A disc presence check can be added to the cyclic measurement for the third rotation sensor, for safety rotation reading, with the same measurement logic as the rest of group sensors.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 6.3 Low power mode An important requirement of the inductive proximity sensing solution is low power consumption. For this, all unused pins are configured as outputs to remove the through currents associated with input buffers.
Page 23
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual The metal disc does not cover the position coils (sensors 1 & 2). Their signals are above the reference level. After a rotation of 90 degrees, the disk covers only coil 1, its signal level is below the reference and the signal of the second coil is above the reference.
Page 24
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual After a rotation of 90 degrees, the disk covers only coil 2, its signal level is below the reference and the signal of the first coil is above the reference.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7. Peripheral configuration The build-in e studio configurator was used to configure the peripheral and pins state as follows: 7.1 Used stack The following stack tree structure is used: Figure 12. Stack tree R12UZ0106EG0100 Rev 1.00...
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.2 Clock tree For this configuration clock sources are used: • 32 MHz High-speed on-chip oscillator • 32.768 kHz XT1 external oscillator used for the 32-bit low power interval timer in stop mode.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.4.4 Port 3 setup Pin description/function Output pulse used to check with the scope the measurement point trigger (also it is configured as I2C SCL channel1 – not used) Reference Timer – slave output 7.4.5 Port 4 setup...
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.5 Logic and Event link controller The logic and event link controller (ELCL) connects signals’ output through peripheral functions to other specified peripheral functions using internal logic cell blocks, allowing direct communication between peripheral functions without CPU intervention.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.6 Timers 7.6.1 Measurement period For the measurement period the 32-bit low power interval timer is used, configured in 16-bit count mode, using the XT1 oscillator as its count source. The default period is 125ms, but this period can be changed using diagnostic services.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.6.3 Reference excitation timer TAU02 and TAU03 are used in one-shot pulse output configuration, to generate excitation pulses for the reference LC circuits. The master channel (TAU02) controls the delay between starting the one-shot pulse timer and the pulse being asserted.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.6.4 Sensor excitation timer TAU04 and TAU05 are used in one-shot pulse output configuration, to generate excitation pulses for the sense LC circuits. The master channel (TAU04) controls the delay between starting the one-shot pulse timer and the pulse being asserted.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 7.7 Comparators The on-chip comparators are used to compare the analog envelopes of the reference and sense circuits at a determined point in time. The comparator result is read directly from the COMPMDR register, without comparator interrupt.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 8. System configuration 8.1 External sensors groups The inductive proximity sense project is configured to detect conductive targets using three different coil groups on the inductive sense shield: • Rotation group •...
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 8.2 Diagnostic services The system has a diagnostic module implemented through a UART communications interface. Initially the RL78/G23 enters stop mode between scans. Therefore, the devices UART channel is configured to operate in snooze mode on detection of a valid edge on the Rx pin.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 0x22 0xFF 0x1B read rotation and button counter (response in ASCII format). 8.2.4 Real Term example Example write with Real Term, commands values are sent in hexadecimal. • Command: 0x2E 0xFF 0x02 0x64 0x00 Figure 23.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 9. Hardware 9.1 Final Product Figure 25 below shows the inductive proximity sensing shield PCB annotated. This board needs to be connected to the RL78/G23 64p FPB. The inductive proximity sensing shield is comprised of two PCB’s: •...
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual 10. Component interface The component interfaces section describes the programming interfaces of each of each of the software components that make up the inductive proximity sensing project. Interface Description R_Main_Init() Starts the initialization of the application layer Table 5.
Renesas RL78 Microcontrollers Inductive Proximity Sensor Shield – User's Manual Interface Description TAU_UpdateTimerValues() Used to update the correlated values for each sensor group TAU_u16ConvertUsToCounts() Converts measurement point period from diagnosis commands to count clock required for timer register. TAU_u16ConvertMasterNsToCounts() Converts excitation delay period from diagnosis commands to count clock required for timer register.
Need help?
Do you have a question about the RL78/G23 Series and is the answer not in the manual?
Questions and answers