Home
YRL78IOLINKMAX User`s Manual
Contents
1. o o ooa 44 9 3 2 Proceso Data E DEE 44 9 3 3 Parameter La ss sss SO NEK JDE ebl OPE NEO 45 9 3 4 Osciloscop EAD esses e o ooJoohhMhM oRRh p TTTTTTTTTTTTTTTTTTTTTTTNETETT 46 9 4 YRL7SIOLINKMAX Board Sensor Read Teach in 0 eeccescceesececsseceseeeceacceeneecaeeseneeceaeceeneecaeeseneecsaeceeneessaeeeeneees 47 9 4 1 Read Parameter from the YRL7SIOLINKMAX Board Sensor 47 9 4 2 Write Parameter to the YRLZSIOLINKMAX Board Sensor 47 VO BU OF Matleed 49 R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 11 User Manual YRL78IOLINKMAX Overview 1 Overview The YRL78IOLINKMAX is an evaluation platform for small scale IO Link sensor system based on the Renesas RL78 G1A microcontroller and the Maxim Integrated MAX41821 IO Link Device transceiver The hardware provides a platform to the user to develop and evaluate miniature IO Link sensors via a standard industrial sensor M12 interface to IO Link Masters It contains all the elements to easily start and demonstrate IO link sensor applications The hardware environment and the applications are described in this manual A sample Demo illustrating an IO Link sensor implementation is provided 1 1 Features of YRL78IOLINKMAX e Renesas Electronics RL78 G1A low power consumption 16 bit microcontroller e Maxim Integrated IO Link Device PHY e Maxim Integrated 6 in sensor e Power Supply via M12 cable e On chip debugging capability
2. Common Process Data Parameter Oscilloscope Topology Name DAN Value B TMG USB IO Link Master DE COMB Identification _ 0 Renesas YRLZBIOLINKMAX SK V2 Vendor Name ro Renesas Electronics Europe G Vendor Text ro http www renesas eu io link Product Name ro Renesas YRL78IOLINKMAX S Application Specific Tag USE IO Link ae Parameter Standard Command lt Restore Factory Settings gt Standard Command lt Teach Clear Limit gt Ambient Light Intensity Limit Observation Process Data In Clear Intensity o 16383 Ambient Light above limit ro tue PD Out Bit ro false Process Data Out Process Data Out ro false Ambient Light Intensity ro 16383 AN P lS Figure 9 13 YRL78IOLINKMAX SK V2 Parameter page RO1UH0486ED0000_RL78G1A Rev 1 00 RENESAS User Manual YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample 9 3 4 Oscilloscope Tab The oscilloscope function enables the visualization of the process data in the scope window TMG 10 Link Device Tool V3 Ex File Options View Help i 2 B one BZ hte Specialist Common Process Data Parameter Dech Topology 3 1 TMG USB IO Link Master DE Ci 0 Renesas VRLZSIOLINKN Figure 9 14 YRL78IOLINKMAX SK V2 Oscilloscope window 9 3 4 1 Play Button Data Display e Lett click on
3. Command Autoprocedure EP Start Des Ostert Eent Clear Output Panel Renesas Flash Programmes Ur Freeware Version Sa A Renezas Flash Programme Unsupported Freeware Version Fie Tool Microcontroller Help In Wicrocont Microcontroter RSFIOEBE Microcontroller RSFIOEBE User Data area RLJB Max Renesas 387 Blomme ie Progress report Command Autoprocedure E P Ven ActoprocedumE PI Command Procesting E PASS Dam Oup4Panel Ceu DupaParei Figure 5 10 Autoprocedure execution The full list of the progress and status is shown below Connect 100 Start Autoprocedure E P PASS Blank check Code flash Not blank Erase need Program Data flash Erasing 10 Erase Code flash PASS 20 Blank check Data flash PASS Erase skipped 30 Program Code flash 40 10 50 20 60 30 70 40 80 50 90 60 100 70 PASS 80 Autoprocedure E P PASS 90 O End Autoprocedure E P Disconnect User Manual YRL78IOLINKMAX On Chip Debugging 6 On Chip Debugging The microcontroller on the YRL7SIOLINKMAX board can be debugged using an E1 debugger connected to the sensor board via the programming debugging adapter Figure 6 1shows the system configuration for debugging AC Adaptor Not Included TMG USB IO Link Master Not Included M12 Cable Not Included IO Link Host M
4. The kit supports the RL78 G1A r Create a new workspace dE AlI Filter Generic Boot Device V850 RL78 Using Target Microcontroler Device Name Information UPD70F 31344 Device version ES2 0 or later UPD 70F3134B Device version ES2 0 or later UPD70F3184 UPD70F3186 UPD70F3474 For CSIBO HS UARTAO UPD70F3474 For CSIB3 HS UARTAD UPD70F3474A _ For CSIBO HS UARTAO UPD70F3474A For CSIB3 HS UARTAQ UPD 70F3474B For CSIBO HS UARTAO PO 70E3474R E E Workspace Name Project Name Folder eltaB MAppD ata Local Renesas Flash Programmer v1 03 01 Browse Next Cancel Figure 5 3 Workspace creation Select the following settings e Use the filter to find and select RL78 G1A as Target Microcontroller or enter the part number R5F10E8E in the filter section e Enter the RFP workspace name R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 24 User Manual YRL78IOLINKMAX Renesas Flash Programmer Usage e Select a location to save the RFP workspace files use the browse button e Press the OK button Create new workspace e wg RENE 4 Select RSF10EBE from device lit RSFIOEBA RSFI0EBC RSFI0E8D k New folder JE SAISRPTSKUSB P di VISKORIOLINKMADM boki VISKORIOLINKMSK JE VISKIOLINKMSKVISO E VRUSIOLINKMAX CARenesas Flash Progtammer YRL7S10 LINKMAX Ze Figure 5 4 Project setup e P
5. Interface Connected Device Name Europe GmbH 9 Take over type of device s into engineering Device ID TATO i Renesas YRLZBIOLINKMAX SK 42 TMG TE GmbH 5 Sample Devices Sample Device Vendor ID Figure 9 8 Check Config successful If the Master cannot connect to the YRL78IOLINKMAX board a window with an error message can t read configuration or an empty Compare with Engineering window will appear See following figure R01UH0486ED0000 RL78G1A Rev 1 00 User Manual TENESAS YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample 10 Link Device Tool V3 a 8 File Options View Help PEN T Common Manual Test I Dag e UNIVERSAL SERIAL BUS Device TMG USB IO Link Master DE COMB Topology TMG USB IO Link Master DE COMB Version 1 1 8 Compare online with engineering Interface TMG USBI I Port Engineering Connected Device Name Vendor Sage Description Renesas YRL7BIOLINKM X SK V2 GB TMG TE GmbH 8 ei Sample Devices Device ID Sample Device Vendor ID Figure 9 9 Check Config failure Caution It can happen that the can t read configuration message appears in the Device Tool when the Master is not properly initialized Unplugging the Master from the USB port of the host machine and re starting the Device tool solves this problem Al
6. QuickStart Guide IO Link Device Stack library installed by the Starter kit Installer for a list of indexes referring to the application s process data and parameters accessible through IO Link AC Adaptor USB IO Link Master Host Machine IO Link YRL78IOLINKMAX Figure 9 1 _YRL78IOLINKMAX Ambient light sensor demo setup RO1UH0486ED0000 RL78G1A Rev 1 00 RENESAS 38 User Manual YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample 9 1 Demo Features The sensor continuously measure the ambient light and transmits the information via the IO Link process data The user can set an intensity limit which can be used to detect the presence of an object or a given ambient light condition When the measured ambient light is over the limit set by the user the Red LED on the board turns ON as a visual indication 9 2 Using YRL78IOLINKMAX Board Demo with TMG IO Link Device Tool The IO Link device tool can be used for the configuration of IO Link Masters setting and steering parameters as well as the diagnosis of IO Link devices The IO Link Master initiates the communication and channels information from the board to the host machine The operator is able to see the information on the host machine via the installed IO Link Device Tool 9 2 1 Getting Started with the TMG Master e Launch the IO Link device Tool Once the tool is up and running two panes can be seen in the GUI Topology at the top left and Ca
7. The YRL78IOLINKMAX board supports an On chip debug function by using the IAR C SPY debugger with the use of an additional E1 debugger hardware not included in the kit It allows FLASH downloading and standard debug functions like code execution single stepping breakpoints memory manipulation etc e The IAR Embedded Workbench for RL78 and the IAR C SPY debugger simulator are included These packages are restricted in such that maximum program code size is limited to 16 Kbyte Full documentation is included for the Renesas RL78 G1A microcontroller Renesas IAR Systems Embedded Workbench and IAR Systems C SPY debugger simulator IO Link communication The YRL78IOLINKMAX board provides an IO Link communication channel Current type DC Wiring 3 Wire Output signal IO Link Rated operational voltage V 24DC STS 2 4 Lu 3 7 Supply voltage V 18 30 DC Short circuit protection yes Protected against polarity rev yes IO Link Data Physical Layer PHY2 3W Data Transfer Rate COMI 4 8kBaud COM2 38 4kBaud COM 230 4kBaud RO1UH0486ED0000_RL78G1A Rev 1 00 EN ESAS 12 User Manual YRL78IOLINKMAX Overview Pin2 of the M12 connector configured as digital output default or input e Board size 25mm x 6mm e Analog to digital signal conversion e LED indicators e Two or three wires serial I O interfaces e On chip debug interface Note The YRL78IOLINKMAX is intended for evaluation purposes i
8. 0 Renesas YRL7BIDLINKMAX SK V2 Vendor Name Renesas Electronics Europe G i Vendor Text hitp wwwrenesas euZio ink Product Name Renesas YRL78IOLINKMAX S i Application Specific Tag USE IO Link Parameter Standard Command lt Teach Clear Limit gt Standard Command Restore Factory Settings Teach Clear Limit Ambient Light Intensity Limit MB 1480 H Observation Process Data In Clear Intensity Ambient Light above limit PD Out Bit L Process Data Out Process Data Out Ambient Light Intensity Figure 9 17 YRL78IOLINKMAX Factory restoration setting R01UH0486ED0000 RL78G1A Rev 1 00 User Manual RENESAS enue asn Y98274 00000S9870HN LO 00 ASH SVSINDB 2 61 ltem QTY Remarks Component Description Component Manufacturer Part Number 01 2 C1 C2 CAP CER 1UF 50V 10 X7R 0603 EC2601 Taiyo Yuden UMK107AB7105KA T 02 5 C3 C4B C5 C7 C10 CAP CER 0 1UF 16V 10 X5R 0201 EC2602 TDK C0603X5R1C104K030BC 03 2 C8 C9 CAP CER 15PF 50V 5 NPO 0201 EC2603 TDK C0603C0G1H150J030BA 04 2 C4A C6 CAP CER 1UF 6 3V 20 X5R 0201 EC2281 TDKCO603X5ROJ105MO30BC 05 1 CN1 M12 A 4 pin Male connector M12 Edge EH1385 Binder 09 0431 212 04 06 1 CN2 8 pin Female connector 2x4x1 27 EH
9. MCU Oscillator 18 432MHz Fitted 3 7 Half Moon Bay Sensor Module The Sensor transducer fitted to the main PCB board using the half moon PCB is the MAX4408 It integrates six sensors red green blue RGB sensors an ambient light clear sensor a temperature sensor and an ambient infrared sensor with an I2C interface to the RL78 G1A ee it o gt iP61 SDAA0 U3 ia MAX44008EDT i pa lisasce zia Figure 3 5 MAX4408 Connections The following table shows the connection between the MAX4408 sensor and the RL78 microcontroller ROTUHOG86ED0000 ALTEGIA RETUO RENESA TB User Manual YRL78IOLINKMAX YRL78IOLINKMAX Description Table 3 5 MAX44008 Connections MAX44008 RL78G1A Function Pin Name Name Pin 4 INT Interrupt P30 INTP3 C2 5 SCL IBC Clock P60 SCLAO Al 6 SDA IPC Data P61 SDAAO B1 3 8 IO Link Transceiver U1 The IO Link PHY used on the sensor board is the MAX14821 Connections with the RL78 G1A is made with a SPI port for configuration and a UART port for IO Link data communication exchange Other IO signals are also used to ensure the correct function interfacing between the transceiver and the microcontroller The table below summarizes the connections between the microcontroller and the transceiver Table 3 6 MAX14821 Connections MAX14821 RL78 G1A Description Name Pin Name Pin UV D2 Undervoltage Indicat
10. Product Name Renesas YRL7SIOLINKMAX S Application Specific Tag USE 10 Link Parameter Standard Command Restore Factory Settings wo Restore Factory Settings Standard Command lt Teach Clear Limit gt wo Teach Clear Limit Ambient Light Intensity Limit ro Observation Process Data In Clear Intensity Ambient Light above limit PD Out Bit Process Data Out Process Data Out Ambient Light Intensity Figure 9 15 Parameter and data reading 9 4 2 Write Parameter to the YRL78IOLINKMAX Board Sensor The teach in functionality allows changing the light Intensity limit on the fly and restore the factory settings 9 4 2 1 Light Intensity Setting To write or teach a parameter to the board e Cover the tip of the sensor board with your hand or an opaque object to block the light e Under the Value column click Right in the cell corresponding to the parameter you want to change Teach Clear Limit RO1UH0486ED0000_RL78G1A Rev 1 00 RENESAS Ei User Manual YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample The cell is highlighted in blue and a dialog box shows up e Left click Execute Figure 9 16 shows the dialog box and setting of the light intensity limit 10 Link Device Tool V3 Sa File Options View Help 7 Specialist Common Process Data Parameter Name Oscilloscope ng Topology E J TMG USB IO Link Master DE COM
11. Sample e Left click on the Setup online connection icon in the Device Tool GUI shows the Check Config button within the Connected Device area of the Common section 10 Link Device Too V3 File Options View Help p St ti t 47 l Specialist ja Teal up Online Connection LO Topology TMG USB IO Link Master DE COMB Vendor TMG TE GmbH gt TMG TE GmbH TMG USB IO Link Master BD Di uk Devices C Vendor Renesas Electonics Europe GmbH YALZBIOLINKMAX Renesas YAL7BIOLINKMAX SK V2 G TMG TE GmbH A Sample Devices Sarole Device ConmecledDence Setup Online connection Name Vendor Description Device ID Vendor ID Check Config b o cio Delete Device Figure 9 7 Online status Check Config Click on the Check Config button The LEDs on the Master blink as the Master tries to connect to the YRL78IOLINKMAX board If the YRL78IOLINKMAX board is working and the Master can connect to it a small window shows up with information on the board and a Take over type of device s into engineering button See following Figure 9 8 10 Link Device Tool V3 File Options View Help I Specialist Common Manual Test OD g UNIVERSAL SERIAL BUS A TMG USB IO Link Master DE COMS op 118 Compare online with engineering ees 29 i a gt ge TMG USB TMG USB IO Link Master DE COME Device Version
12. be used for simple FLASH programming of the RL78 G1A s internal FLASH memory 4 2 Installed Contents The downloadable Starter Kit Installer shows the following directory structure Table 4 1 YRL78IOLINKMAX Downloadable Starter Kit Installer contents YRL78IOLINKMAX Description A acroread Acrobat Reader for Windows OS A Demo Sample Device Demo Firmware and IODD files A Doc Datasheets Manuals Stack License board Schematics SIAR IAR Embedded Workbench for RL78 A Quick Start Guide YRL78IOLINKMAX quick start guide A Renesas Flash Programmer Flash Programmer for RL78 G1A A SampleProgram Sample project for IAR and IODD for the Starter Kit e IO Link Ambient light sensor demonstration Project 4 3 IODD Device Description Files Installation Two IODD files are provided e The IODD repository for the Demo sample Device is located in the folder of the same name e The IODD repository for the IAR sample project is located in the Sample Program folder To install the IODD Device Description file for the YRL78IOLINKMAX board import the corresponding XML file in your IO Link device tool An IODD file version 1 1 is provided as well as a version 1 0 1 for older IO Link Master systems Please use the appropriate IODD for your system R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 22 User Manual YRL78IOLINKMAX Renesas Flash Programmer Usage 5 Renesas Flash Programmer Usage The following section de
13. connector using a M12 cable not included The board is working as an IO link sensor demonstrating the application stored in the Microcontroller s memory 2 1 2 Standalone Mode When used in Standalone mode the YRL7SIOLINKMAX board is connected to a host system via a programming adapter and an E1 debugger The user can then perform software development or debugging on the microcontroller The E1 debugger must be set in this case to power the target microcontroller RoiUHossED0000 USECH RENESA TB User Manual YRL78IOLINKMAX YRL78IOLINKMAX Description 3 YRL78IOLINKMAX Description The YRL78IOLINKMAX board is equipped with a range of features and components allowing a user to develop sensor applications These components include a microcontroller with enhanced analog features 2 or 3 wires serial interfaces indicator LEDs Power LED a 6 in 1 sensor component A header for connection to host computers FLASH programmer or any external target hardware pin signal IO Link M12 Interface Definition ES 24V va DO kes ov A U N Om Switching signal DI DO SIO Coded switching COM1 COM2 COM3 IO Link PHY MAX14821EWA 2 5x2 5 25 pin WLP IO Link Specification v 1 0 and v 1 1 compliant Supports COM1 COM2 and COM3 Data Rates 100mA Specified C Q Output Drive Auxiliary 24V 100mA Digital Output 5V and 3 3V Linear Regulators Red Digital out M12 Pin 2 Amber C Q IO Link M12 Pin 4 _ Ambie
14. documentation in PDF format gives you all the user and reference information you need SUPPORT For questions about how to use your IAR product reporting a problem or finding support resources IAR Information Center for R l tt i to get started tut and release EXAMPLE PROJECTS Example applications that demonstrata hardware peripherals for Specific devices and evaluation boards RELEASE NOTES All about the latest features new device support and program comections enesas RL78 xample projects Li INTEGRATED SOLUTIONS Information and example projects for integrated RTOS and middleware solutions kOJ My Pages Here you can download product updates manage licenses and contact information and check your SUA status Figure 8 1 IAR Embedded Workbench Startup window 8 1 1 Project Loading In this window you are able to choose the Open existing workspace button e Now select the option Open exiting workspace from the File menu and locate the sample project Open the RL78 Max IAR Ambient SK eww workspace file This workspace file contains general information about the demonstration projects and settings After the demo workspace has been opened the project contained in the workspace is displayed e Click on the little sign next to the RL78 Max IAR Ambient SK project to show files part of the project The IDE should look similar to the following Figure
15. 01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS User Manual Preface Readers This manual is intended for users who want to understand the functions of the concerned microcontrollers Purpose This manual presents the hardware manual for the concerned microcontrollers Organisation This system specification describes the following sections Pin function CPU function Internal peripheral function Module instances These microcontrollers may contain several instances of a dedicated module In general the different instances of such modules are identified by the index n where n counts from 0 to the number of instances minus one Legend Symbols and notation are used as follows Left is high order column right is Weight in data notation low order column Xxx pin or signal name is over scored or xxx slash before signal name or XXX Active low notation High order at high stage and low order at low stage Memory map address Note Additional remark or tip Caution ltem deserving extra attention Numeric notation Binary XXXX Or XXXB Decimal XXXX Hexadecimal XXXXH or 0x XXxx Numeric prefixes representing powers of 2 address space memory capacity K kilo 219 1024 M mega 220 1024 1 048 576 G giga 290 10243 1 073 741 824 Register contents X x dont care Diagrams Block diagrams do not necessarily show the exact wiring in hardware but the functional structure Timing diagram
16. 1387 Samtec CLP 104 02 G D 07 1 CV5 CAP CER 1UF 10V 10 X5R 0402 EC2048 TDK C1005X5R1A105K 08 2 D1 D2 36V TVS Diode with 55V clamp 3 SOT23 ED0692 Semtech SDC36C TCT 09 1 D5 Yellow 1mA Led 0402 ED0912 Rohm SML P12YTT86 10 1 D6 Red 1mA Led 0402 ED0913 Rohm SML P12UTT86 11 1 D7 Green 1mA Led 0402 ED0914 Rohm SML P12PTT86 12 1 ROA 0 Ohm resistor 50V 0402 0 125W ER1190 Vishay Dale CRCW04020000Z0EDHP 13 1 R1 1 Ohm 1 resistor 50V 0402 0 125W 353mA max ER1191 Vishay Dale CRCW04021R00FKEDHP 14 2 R2 R3 20k Ohm 5 resistor 0402 0 1W 2 2mA max ER0504022002 15 1 R4 1 5k Ohm 5 resistor 0201 0 05W 5 7mA max ER0502011501 16 2 R7 R8 10k Ohm 5 resistor 0201 0 05W 2 2mA max ER0502011002 17 1 RV5 10 Ohm 1 resistor 0402 ER01040210R0 18 1 RVP 10 Ohm 1 resistor 50V 0402 0 125W 111mA max ER1186 Vishay Dale CRCW040210ROFKEDHP 19 1 U1 IO Link Device Transceiver 25 WLP MAX14821EWA Maxim MAX14821EWA 20 1 U2 Low Power uC 25 WFLGA EQ1385 Renesas R5F10E8EALA YE 21 1 1Y1 18 432MHz Crystal 4 SMD EX0519 Mercury X22 18 432 12 30 30 4085 do i semi Assembled PC board Half Moon Bay MAXREFDES26 m EE Ambient Light Sensor Board shaped like a half moon 23 0 C2B Not installed CAP CER 0 1UF 50V 10 X7R 0402 EC2502 Taiyo Yuden UMK105B7104KV FR 24 0 ROB Not installed 0 Ohm 5 resistor 0201 0 05W ER0502010R00 25 0 TP1 Not installed Test Point N A SIEMOJEW JO IO OL XVWMN 10182 THA SJEUSTEW 40 Uu YRL
17. 6 Identification 0 Renesas YAL7BIOLINKMAX SK V2 Vendor Name Renesas Electronics Europe G Vendor Text http www renesas eu io link Product Name Application Specific Tag i 1 Renesas YRL7SIOLINKMAXS i A iw USE IO Link H Parameter Standard Command lt Restore Fact Standard Comm Restore Factory Settings Ambient Light Intensity Limit H Observation Process Data In Clear Intensity 16383 Ambient Light above limit ro true PD Out Bit ro false Process Data Out ro false Ambient Light Intensity ro 16383 d Figure 9 16 YRL78IOLINKMAX Ambient Light Intensity Limit setting 9 4 2 2 Factory Settings Restoration Similarly to restore the sensor settings to factory settings e Under the Value column click Right in the cell corresponding to the parameter you want to change Restore Factory Settings The cell is highlighted in blue and a dialog box shows up e Left click Execute Figure 9 17 shows the dialog box and setting of the factory settings restoration 10 Link Device Tool V3 File Options View Help Name Common Process Data Parameter Oscilloscope V Specialist Topology E TMG USB IO Link Master DE COMB RAW Value Identification
18. 78IOLINKMAX Bill of Materials Revision History Description Rev Date Page Summary 1 00 Jul 2014 First edition issued RO1UH0486ED0000_RL78G1A Rev 1 00 User Manual TENESAS 50 YRL78IOLINKMAX IO Link Starter Kit TENESAS Renesas Electronics Corporation R01UH0486ED0000 RL78G1A
19. 78IOLINKMAXWSampleProgram The table below shows directory structure Table 7 1 Directory structure example A Ambient light Demo YRL78IOLINKMAX project and output files A Firmware C header and source files A Stack IO Link device stack and header files A Debug debug output files for IAR C SPY debugger A Release release output files i e Intel HEX file A settings configuration files IAR Embedded Workbench dependency information file IAR Embedded E RL78 Max IAR Ambient SK dep vlaj pentraj RL78 Max JAR Ambient SK ewd project setting file IAR C SPY debugger RL78 Max IAR Ambient SK ewp project file IAR Embedded Workbench E RL78 Max IAR Ambient SK eww workspace file IAR Embedded Workbench RL78 All source files are located in the Firmware directory The Stack directory contains the IO Link stack library and the board support package files The sample project uses two targets e One target is the Debug directory Debug which holds all information for debugging purpose R01UH0486ED0000 RL78G1A Rev 1 00 RTENESAS 31 User Manual YRL78IOLINKMAX YRL78IOLINKMAX Sample Project e The other target is the Release target directory Release which contains the programmable file i e the Intel a87 file for programming the RL78 G1 A internal FLASH memory via the E1 Debugger All output files of the development tools for the corresponding target are generated in
20. 8 2 R01UH0486ED0000 RL78G1A Rev 1 00 User Manual RENESAS 33 YRL78IOLINKMAX IAR Embedded Workbench DE RL78_Max JAR Ambient SK IAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help E TECHNOLOGIE MANAGEMENT GRUPPE Technologie und Engineering GmbH E BRL78 Max IAR Ambient Firmware AAEESEEESAEEEEEEEEEEEEEEEEEESEEEEEESEELEEEEEEELEEEEERELEEEEEREEEREEEEEEEEEES Ha O Stack es Ha A AmbientLight c file Main c E AmbientLighth Wrief Main File Lag RMAX44008 h This File contains the main Function and may also contain a small La Output application weakgroup APPL The Main File and Application Definitions and Functions in this Module are Part of the Main File and the User Specific Application H sssseseeseeeaseseeesasessssssssssssssssssssssssssssssssssssss 44444424444444 aeaatanaakaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaa aaa 44444 44444 a4aaaa2aa4a44222a2222o 4 za Includes ze include lt intrinsics h gt include IORSFIOEGA h include IORSFlOEGA EXT h Includes of other Modules 4 include DeviceStack h Definitions for Stack Configuration include string h include AubientLight h 1 End Includes TEE a A an JAR Ambie lal ke CANeltabIWorkNndustrial Automation IO Link Kits YRL 810 NUM Figure 8 2 IAR Embedded Workbench Main IDE window 8 1 2 Debugger Interface Option C
21. AX IAR Embedded Workbench 8 1 3 Project Compilation Once the setup is completed it s time to build and link the demonstration project The necessary settings have been set in the IDE so that it is not necessary to configure or make changes to any of the build options These can obviously be viewed for reference just select the Options menu as described above Caution It is recommended that no changes are made to any of the build settings as the resulting build results could not be guaranteed ooo The project can be built from the build ICON in the workspace Ribbon or from the Rebuild All option in the Project drop down menu The project should build without errors Some warnings Warning w15 regarding predefined sizes in library may be displayed These warnings can be ignored Thereafter the program can be downloaded to the YRL78IOLINKMAX board and debugged YE RL78 Max JAR Ambient SK IAR Embedded Workbench IDE BR File Edit View Project Emulator Tools Window Help Deno Ss emo Vu BHPeP b im AL al a x appl Main SK c fO x Debug l 9asas4515a2444444542444441444944444442444454445442444442442444444422414 1 d Files jia TECHNOLOGIE MANAGEMENT GRUPPE Technologie und Engineering GmbH A OREA v 4 k HE O Firmware PYPPYVO VP POV VV OV VOV VV V EE a O Stack ORA E BSPinterface h file Main c t hk BSPStack h Wbrief M
22. C 7 D o 5 a Er 6 LENESAS YRL78IOLINKMAX IO Link Starter Kit User s Manual Hardware RENESAS MCU RL78 Family G1x Series 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 through various means including the Renesas Technology Corp website http www renesas com Renesas Electronics www renesas com Rev 1 00 Jul 201 4 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents c
23. D0000_RL78G1A Rev 1 00 RENESAS S User Manual YRL78IOLINKMAX The E1 Hardware setup should look similar to the Figure 8 5 below E1 Hardware Setup R5F10E8E mir ID Code Time unit OOOOOOOOOOOOOOOOOOOO PS E Erase flash before next ID check E Main clock Sub clock Clock board Clock board External External Bela System System Fail safe break 18 432 MHz None kHz View setup Flash programming Target power off Low voltage Power supply Not Permit Not Permit Off Tanger Pin mask Peripheral break Target WAIT C TARGET RESET DA timer SE SF NMI E INTERNAL RESET LIB serial ete Not Connect Memory map Start address Length Type 040 960 Internal ROM a 0x00000 OxOFFFF Internal ROM 64 Kbytes OxFEFOO OxFFEFF Internal RAM 4096 bytes Remove Remove All Figure 8 5 IAR Embedded Workbench debugging interface settings Note IAR Embedded Workbench If the microcontroller is powered via the M12 cable the Power supply setting in the debugger s hardware setup option must be set to Target e Press the OK button Once the OK button is pressed communication is established with the board and the demo project is downloaded to the YRL78IOLINKMAX board The progress of downloading displayed on screen Please note that downloading of larger executable may take some time After the download is completed all debug features of IAR C SP
24. KMAX G3 PCirtertaces B Vendor gt TMG TE GmbH TMG USB IO Link Master 10 Link Devices Vendor Renesas Electronics Europe GmbH YRL7EOLINKMAX TMG TE GmbH E Sample Devices Sample Device Sample Device for RL78 with MAX1 4821 Figure 9 5 YRL78lIOLINKMAX in Device catalog 9 2 4 1O Link Communication Set up e From the Catalog pane drag and drop the TMG USB IO Link Master into the Topology pane e Left click on TMG USB IO Link Master DE in the Topology pane and the IO Link Master s details can be seen in the Common pane left section of the GUI 10 Link Device Tool V3 File Options View Help EI S Offine e al a ti L A Specialist Common Manual Test LLI cng TMG USB IO Link Master DE COME UNIVERSAL SERIAL BUS Version 118 TMG USB IO Link Master DE COM6 Device TMG TE GmbH Search for interfaces Vendor Interface Connected Device Name Vendor Description Device ID Vendor ID Figure 9 6 TMG USB IO Link Master R01UH0486ED0000 RL78G1A Rev 1 00 User Manual RENESAS Topology TMG USB IO Link Master DE COM6 Drag and Drop TMG TE GmbH TMG USB IO Link Master I G 10 Link Devices B Vendor Gi Renesas Electronics Europe GmbH E E YRL7SIOLINKMAX Renesas YRL7SIOLINKMAX SK V2 TMG TE GmbH S Sample Devices Sample Device 4 YRL78IOLINKMAX IO Link Ambient Sensor Demo
25. Link Ambient Sensor Demo Sample 9 4 YRL78IOLINKMAX Board Sensor Read Teach in When the user opens the parameter page for the first time the device specific parameters are set to their default values in the Value columns These values are recorded in the IODD file See Figure 9 15 for details 9 4 1 Read Parameter from the YRL78IOLINKMAX Board Sensor To read or refresh the display with the current or most recent information from the board e Usea left click under the Value column in the cell you want to check the information The cell being read is highlighted in blue and the current parameter value is displayed A green status cell with the data type right next to the cell being read let user know that read command was successful If the read command fails the status cell will be Red In Figure 9 15 below the light intensity limit set in the device is being checked We can also see that the Parameter and Observation data have been read as their status cell is green The Vendor name on the other hand are showing the factory setting registered in the IODD file r 10 Link Device Tool V3 B File Options View Help a SS e ek i Specialist 9 Common Process Data Parameter Oscilloscope Topology RA Value EA TMG USB IO Link Master DE COM6 E Identification l 0 Renesas YRL7BIOLINKMAX SK V2 Vendor Name Renesas Electronics Europe G i Vendor Text http www renesas eu io link
26. Sample EE 31 L2 AtmbientLight Sample ProjeCtiioeiirrieoronevioesiviioeve ies donaso soevensosoeostenssoaguoasoevaeescoeversaboeneventsguevenadebeeinesensvons gt 32 8 IAR Embedded Workbench PER PAVEC MASS SPO PES E EE P sett 33 8 1 YRL78IOLINKMAX Sample Project Setup 33 8 1 1 Project Kon lili EE 33 8 1 2 Debugger Interface Option Checking ciii gegtretersgereugdrer EE ek NEEN Eet AER 34 8 1 3 Project Corp E rr r 35 R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 10 User Manual YRL78IOLINKMAX 8 1 4 Debugging Session Start NN hii o ASA Sa DEENEN SERA 35 8 1 5 Modifying E1 Emulator Hardware Setup Setting eee ee cesecssecssecseecneeceeeeeeeeeeeeeeeeeeseseaeesaesaesaeeaeeees 37 9 IO Link Ambient Sensor Demo Sample iicceccrsecescetesiceesiactaceectaadsnd te on sai daeives ceduwebacleaueialeaenvediaededs 38 9 1 Demo RE 39 9 2 Using YRL7SIOLINKMAX Board Demo with TMG IO Link Device Tool eee eee eee 39 9 2 1 Getting Started with the TMG Master 39 9 22 Updating the IO Link Device Catalog AA 40 9 23 Catalog Update Confirmations esiis sno an ere o ae cheese cs ranks o bus eves sos sheds noo ved deed gl 41 9 2 4 IO Link Communication Set Up csscesscsscscecssasetscnsesvsessoessoecsonsceesceesoessnsetusesdeodssovsevseercsersessoesecesseseedessesens 41 9 3 YRL7SIOLINKMAX Board Sensor Demo in IO Link device tool 44 9 3 1 Common Laborea rr EE
27. Setup Setup Setup Lit when running Next source statement Figure 8 7 IAR C SPY main debugging control functions For a full explanation of all debugging options please use the full documentation included in the IAR installation These can be accessed via the help menu button in the embedded workbench IDE 8 1 5 Modifying E1 Emulator Hardware Setup Setting The user is requested to check the Hardware Setup only once before the first debugging session Subsequent debugging sessions are launched automatically with the same settings once the project build up is done and download is completed To change the Hardware setup settings before a debugging session follow the steps below before clicking on the Download and Debug amp button e From the menu bar expand the Emulator Tab e Left click to select Hardware Setup KE RL78_Max_IAR_Ambient_SK IAR Embedded Workbench IDE File Edit View Project Tools Window Help Duig vV Hardware Setup Workspace Breakpoint Toggle During Run Debug Mask Option Files ETE RL78 Max IAR Pseudo Emulation EE ri DMM Setup E Output Snap Shot Setup Stub Setup Figure 8 8 Emulator Hardware Setup The next time when the Download and Debug button is pressed the E1 Hardware setup window will open R01UH0486ED0000_RL78G1A Rev 1 00 RENESAS User Manual YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample 9 IO Link Ambien
28. Y debugger are available i e Single Stepping Step Over In Out Go Execution Breakpoints Register Memory view etc Please note that the debugger window may contain different settings The user can configure the debugging environment by closing unwanted debugging function windows and opening new windows via the View drop down menu XE RL78_Max JAR Ambient SK IAR Embedded Workbench IDE belo ji File Edit View Project Debug Emulator Tools Window Help pDeudisiesn pele lzovoxz2zx EKSOosONNS A ee ed esos iU Sko x Disassembly void main void AL_FactoryReset 7 STACK Init eParamsl1 STACK Start while 1 At S x appl ven sK c Debug e m Void AL_FactoryReset void bk leo ze Mea TTT Firmware J Laa E Output Function Implementation E Goto Disassembly p 001E7 H OO1EA O01EC O01ED O01EE void main 2 bit nod j 7132 void eset WDTE OxACU 4 restart watchdo TUnsigneds Status STACK Run vn call stack cycl E E AMB Run Status AL New utputInd Flag call the ambien TTA ETT AL NewOutputInd Flag 0 4 wait for new ap 001F6 FDB6 Ly STACK_Start 001F9 FDC1 void AL DoProcessing void WDTE OxACU DS Max JAR Ambient SK o F ye lem pome CFAE Log OCD Control Code V3 03 Device chipname R5F10E8E f1 0e8e file version V1 00 a el Boardinfo 00008004 product id 4100 ver
29. ab displays the sensor s parameter settings as well as enabling the user to read data from the sensor or teach the sensor by writing new values to the board See Figure 9 13 for details 9 3 3 1 Page organisation Three types of information can found on this page Identification parameter and observation Identification and observation information are read only ro information while parameter can be read write rw write only wo or read only ro information e Identification displays the default settings allowing to identify the sensor connected to the Master By default the factory information recorded in the IODD are displayed However the user can read the information stored in the sensor to find out whether the sensor connected is of the same hardware and firmware revision as that of the released version The user can find information such as Vendor and product names hardware and firmware revisions e Observation data provide a snapshot of the sensor s process data in and process data out variables e Parameter displays the parameters the user can access to teach the sensor In our sample application the user can restore the factory settings or teach an intensity limit to the sensor Please refer to the next section 9 4 for information on how to read data and write data to the sensor 10 Link Device Tool V3 File Options View Help a 3 le o kal fit 2 kena Specialist HM
30. achine Figure 6 1 On chip debugging system configuration Note Before starting a debug session and powering the system please ensure that the target power supply source is set properly in the debugger s hardware setup option If the microcontroller is powered via the M12 cable the power supply setting in the debugger s hardware setup option must be set to Target For more details on how to change this setting please refer to section 8 1 4 ROTUHOG8GED0000 ALTEGIA REVTO RENESA User Manual YRL78IOLINKMAX YRL78IOLINKMAX Sample Project 7 YRL78IOLINKMAX Sample Project The IAR Embedded Workbench IDE is a very powerful Integrated Development Environment that allows you to develop and manage a complete embedded application project The project described in this section can be found on the YRL7SIOLINKMAX downloadable Starter Kit Installer To run debug the project with the IAR C SPY debugger it is necessary to follow the steps described below in this chapter Note The YRL78IOLINKMAX is shipped with the demo firmware programmed to the RL78 G1A s internal memory Make sure the Flash memory is erased properly before the first project download to the target device Please refer to chapter 5 for more details on how to proceed 71 IAR Sample Project Once installation is completed the workspace file RL78 Max IAR Ambient SK eww can be located in the sample program directory on the host PC C Renesas Workspace Y RL
31. ain File B Contig h E DeviceStack h This File contains the main Function and may also contain a small E DTypes h application D RL78_Max_IAR_Color E Trace h weakgroup APPL The Main File and Application La E AmbientLightc Definitions and Functions in this Module are Part of the Main File and E AmbientLighth the User Specific Application y ef E appl Main SK c L neess gel La Output TAN pide Includes L ae include lt intrinsics h gt l include IORSFIOEGA h L include IORSFIOESA EXT h RL78 Max lAR Ambient SK BIL raj e x Messages File Lii RL 8 MAX IAB Color SKBtarter Kik Firmware Stack AL78 Max JAR Color LIB r87 and Zebon CA Program Files AR Systems Embedded Workbench 7 Dvl7BMLIBxdlrl7Bnn1n 187 Total number of errors 0 S Total number of warnings 4 2 al m r Ready Errors 0 Warnings 4 Ln 23 Col 24 System NUM E Figure 8 4 Project build successful 8 1 4 Debugging Session Start To start the IAR C SPY debugger select the option Debug from the Project menu or press the Download and Debugger button on the ribbon When starting the debugger connection for the first time after building the project it is necessary to set up the right connection settings Please take care that the following settings are chosen ID code FFFFFFFFFFFFFFFFFFFF Main clock External 18 432 MHz Sub clock None Target connect TOOLO Power Supply 3V RO1UH0486E
32. at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information
33. ate of the product is undefined at the moment when power is supplied The states of internal circuits in the LSI are indeterminate and the states of register settings and pins are undefined at the moment when power is supplied In a finished product where the reset signal is applied to the external reset pin the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed In a similar way the states of pins in a product that is reset by an on chip power on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting has been specified Prohibition of Access to Reserved Addresses Access to reserved addresses is prohibited The reserved addresses are provided for the possible future expansion of functions Do not access these addresses the correct operation of LSI is not guaranteed if they are accessed Clock Signals After applying a reset only release the reset line after the operating clock signal has become stable When switching the clock signal during program execution wait until the target clock signal has stabilized When the clock signal is generated with an external resonator or from an external oscillator during a reset ensure that the reset line is only released after full stabilization of the clock signal Moreover when switching to a clock signal produced with an external resonator or by an external oscillator w
34. c Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure
35. channel Table 3 1 M12 Connector wiring description Figure 3 4 M12 Connector wiring description R01UH0486ED0000 RL78G1A Rev 1 00 User Manual RENESAS PIN Signal Description 1 L 24V Va PHY Pin MCU pin 2 Digital Input E1 P31 Digital Output D1 P23 3 L OV 3 C Coded switching SDCI a Switching signal DI DO SIO 17 YRL78IOLINKMAX 3 4 Programming Debugging Adapter Header CN2 YRL78IOLINKMAX Description Via the CN2 header the user can perform software debugging development on the RL78 G1A microcontroller using the El Debugger For more details on performing debugging operation please refer to chapter 6 and chapter 8 CN2 also provides the user a serial interface AD converter access and power connection to the prototyping area available on the programming adapter Additionally the SPI port SCK00 SI00 SO0O0 is also used as configuration interface for the IO Link Transceiver Table 3 2 Header CN2 connections CN2 Description MCU Function MCU Pin PHY pin CN2 1 Power supply Ground VSS AVSS B2 E5 C1 C2 CN2 2 Reset On chip debugging flash programming RESET B5 re IO port P40 e i On chip debugging flash programming interface for tool Tool0 Power supply VDD 3 3V CN2 4 IO Link Mode 3 3V from IO Link PHY to prototyping area VDD B3 A4 Standalone Mode 3 3V from E1 Deb
36. contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS User Manual General Precautions in the Handling of MPU MCU Products The following usage notes are applicable to all MPU MCU products from Renesas For detailed usage notes on the products covered by this manual refer to the relevant sections of the manual If the descriptions under General Precautions in the Handling of MPU MCU Products and in the body of the manual differ from each other the description in the body of the manual takes precedence Handling of Unused Pins Handle unused pins in accord with the directions given under Handling of Unused Pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of LSI an associated shoot through current flows internally and malfunctions occur due to the false recognition of the pin state as an input signal become possible Unused pins should be handled as described under Handling of Unused Pins in the manual Processing at Power on The st
37. containing the products documentation including datasheets quick start guide for the TMG Stack library Renesas IO Link products flyers sample software IAR project Renesas flash Programmer software and IODD device R01UH0486ED0000 RL78G1A Rev 1 00 ENESAS 13 User Manual YRL78IOLINKMAX Overview description files IO Link user Interface to support the sample demo in the TMG IO Link Device tool the IAR Embedded Workbench for RL78 and the IAR C SPY debugger simulator Please verify that you have received all parts listed in the package contents list If any part is missing or seems to be damaged please contact the dealer from whom you received your YRL78IOLINKMAX Note The Technologie Management Gruppe TMG Technologie und Engineering GmbH stack is for evaluation purposes only For mass production end products a full license must be purchased from TMG The TMG IO Link Master and TMG IO Link device Tool are referenced in this manual However they are not included in the package Please contact TMG directly for details on obtaining the full license the TMG IO Link Master and TMG IO Link device Tool Technologie Management Gruppe Karlshrue Technologie und Engineering GmbH Internet www tmg karlshrue de Please also note that the M12 cable shown in this manual is not included in the package 1 4 Trademarks IAR Embedded Workbench VisualSTATE IAR MakeApp and C SPY are registered trademarks of IAR Systems AB Mic
38. d when the START button is pressed e Blank Check the Device gt e Frase the device if not blank gt e Program the device with the Data file selected 5 6 2 Blank Check or Signature Read Command Setting If the user is unsure of the use of the RFP process then a different command such as Blank Check or Signature Read can be performed This confirms that the communication interface is working and that the RFP can connect to the RL78 G1 A on the board without corrupting or damaging the device e Press the Microcontroller menu button and select the Blank Check or Signature Read option e Press the large START button to execute the command The green LED turns ON as the emulator powers the board ROTUHOGBGED0000 ALZEGTA REVUO ENESAS vz User Manual YRL78IOLINKMAX Je Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help rom Device Microcar Blank Check Ueer Emse All Erase Program Comma Verity Read Set Security Checksum Autoprocedure E P p zt Option Byte et ID Code Renesas Flas This softwa This is unst Signature Read Get Flash options E Set Project 1 Cleat Output Panel Renesas Flash Programmer Usage Jp Renesas Flash Programmer Unsupported Freeware Version ke Lu x PASS File Tool Microcontroller Help Microcontroller RSF1OEBE Use
39. hase Locked Loop PWM Pulse Width Modulation SFR Special Function Register SIM Subscriber Identity Module UART Universal Asynchronous Receiver Transmitter IODD IO Link Device Description file All trademarks and registered trademarks are the property of their respective owners R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 9 User Manual YRL78IOLINKMAX Table of Contents Ke EEN 12 ll Features of YRIISIOLINKMAK sis sss siste or one es Sins a Vuk bees Oa EEEE Kanako Sarea besos 12 1 2 KU CN 13 1 2 1 Optional System Requirements eee eeeesecesecesecssecseecseecseeeeeseaeeeeseeeesecesecaecaecsaecsaecseecaeeeaeseaeeeeeeaeeees 13 1 3 Packs pe Contents rcon ribes cestetaahsasocvaehetesvausacsencusct OEE ET E EEEE O SEE sedans ERE EEEE TE NEEE AAE EEKE EEE EEEE 13 14 Trademarks E 14 2 System Configuration siccare enseina anae poa kool an KRE Kae a Saa ko eka a aaiae aii 15 2 1 KO LESCHTE E KEE 15 2 1 1 IO Evi call Coe cove pre meee rr rmo oero ep ume en mi p p p mm oo s ov 15 2 12 olandalone Mode ties seis o iei oi no abe es ate eevee o o tan sni 15 Se YRL SIOLINKMAX Desen 16 3 1 Internal E EE 16 32 Components Placement mo E ds assess ru Ses ropan eio pao ages BOs ds SV tee ewes Reece LEKto ser 17 3 3 M12 Connector GB J SS 17 3 4 Programming Debugging Adapter Header CN 18 3 5 LED eher EE 19 3 6 External Main Oscillator Yl cc ci ccscecsecsescsesdesctonsecsnsddescentecsesvassdnccvecessvsvsccnedseacdbss
40. hecking e To verify that the right debugging interface is selected please open the project options window by clicking Project Options and then open the tab Debugger e Then from the drop down menu select the E1 interface driver as shown below XE RL78 Max JAR Ambient SK IAR Embedded Workbench IDE Je BR 8 File Edit View Project Simulator Tools Window Help ions for node HU Max JAR Ambient SK mm a Se o Oy Options for node HS Max JAR Am Ha Fimware Ha G Stack La AmbientLightc Category Fantay Setings m AmbientLighth General Options Bappl Main SK cj C C Compiler L R MAX44008 h DECH La Gi Output Custom Buld Setup Images Extra Options Plugins Build Actions i ilas Driver EZ El e bin File and El E20 Setup macros IECUBE E Use macro file TT TEE Simulator TK Device description file T Override default TOOLKIT_DIR config debugger ior5t1 Dee Ai Ex Configuration SERSESSSESESSSSSSSERSSSESSES SSSA SSSES SEAS EEEER ESSE BESS SESE ESELERESERESERSESS S a fBBPESEAS ERAS SEES LERER SAE EEEES SEES ESESSEEELELESESESEEEASRESE REESE RERSREASEEES ALB Max JAR Ambient SK LE NUM Figure 8 3 IAR Embedded Workbench Debugger Options e Press the OK button R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 34 User Manual YRL78IOLINKM
41. hile program execution is in progress wait until the target clock signal is stable Differences between Products Before changing from one product to another i e to one with a different part number confirm that the change will not lead to problems The characteristics of MPU MCU in the same group but having different part numbers may differ because of the differences in internal memory capacity and layout pattern When changing to products of different part numbers implement a system evaluation test for each of the products R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS User Manual Regional Information Some information contained in this document may vary from country to country Before using any Renesas Electronics product in your application please contact the Renesas Electronics office in your country to obtain a list of authorized representatives and distributors They will verify e Device availability e Ordering information e Product release schedule e Availability of related technical literature e Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth e Network requirements In addition trademarks registered trademarks export restrictions and other legal issues may also vary from country to country Visit http www renesas com to get in contact with your regional representatives and distributors R
42. k communication is now active and we can have a closer look at the device and the sensor application running on the board The Common pane provides information on the connected device such as Device name Renesas YRL78IOLINKMAX SK Device ID 0x18C004 Vendor name Renesas Electronics Europe GmbH Vendor ID 0x018C Picture of the Io Link device connected to the Master RO1UH0486ED0000_RL78G1A Rev 1 00 User Manual TENESAS 43 YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample 9 3 YRL78IOLINKMAX Board Sensor Demo in IO Link device tool In this section we see how the YRL78IOLINKMAX board works with the IO Link Master and how the demo s features explained earlier can be used from the IO Link Device tool GUI e Left click on the YRL78IOLINKMAX in the topology pane to display generic information on the board in the Common pane Next to the Common tab two other tabs can be seen Process data and Parameter See figure below E 10 Link Device Tool V3 File Options View Help Common Process Data Parameter Oscilloscope Vendor Renesas Electronics Europe Gm E TMG USB IO Link Master DE COME IO Link mn me Renesas MEZE I Specialist Topology Device Renesas YRL7SIOLINKMAX SK 2 Description Sample Device for RL78 with MAX14821 a Device ID 0x18C004 IO Link Version 11 Hardware Revision Firmware Revision Bitrate Coma MinC
43. n SIO Mode Pin4 will show the ambient light switch point IO Link Mode Process Data Ambient light 14Bit Value bit offset 2 Switch Points Booleans packed Inputs 16 Bits Ambient Light above limit PD out bit mirror of the output bit PD out bit Boolean Outputs 8 Bits only active if Pin2Mode digital output Device specific parameters V AMB Clear ro measurement value can be set by the tool or PLC function block or V_Clear_Limit rw taught with the teach command Commands Reset to factory settings R01UH0486ED0000 RL78G1A Rev 1 00 User Manual Teach Ambient Light Limit V_Clear_Limit TENESAS SS YRL78IOLINKMAX 8 IAR Embedded Workbench 8 1 YRL78IOLINKMAX Sample Project Setup IAR Embedded Workbench e Start the Embedded Workbench from Windows Start menu gt Programs gt folder IAR Systems gt IAR Embedded Workbench for Renesas RL78 The following screen appears E IAR Embedded Workbench IDE File Edit View Project Tools Window Help DowHAs sel Workspace Files e you will find and reference guide GETTING STARTED Guidelines for setting up your project adding files compiling linking and debugging it had TUTORIALS Tutorials to make you familiar with the IDE and the features of the IAR C SPY debugger information you nee USER GUIDES Complete product
44. n a lab environment Renesas does not allow and does not support in any way any attempt to use the YRL78IOLINKMAX in a commercial or technical product 1 2 System Requirements A PC supporting Windows 7 is required for the IAR Systems Embedded Workbench demo version A Pentium processor with at least 1 GHz CPU performance with at least 256 Mbytes of RAM allowing you to fully Host PC utilize and take advantage of the product features 500 Mbytes of free disk space and an additional 10 Mbytes of free disk space on the Windows system drive A web browser and Adobe Acrobat Reader to be able to access all the product documentation Note Updates of the IAR Embedded Workbench for RL78 documentation and or utilities for YRL78IOLINKMAX if available may be downloaded from the Renesas Starter kit WEB page s at htip www renesas eu io link 1 2 1 Optional System Requirements User may choose to purchase the following additional equipment for the development of IO Link applications e TMG USB IO Link Master e PC software TMG IO Link Device Tool for configuration and analysis e Please contact TMG directly for details on the TMG IO Link Master and TMG IO Link device Tool e Internet www tmg karlshrue de e Double Ended 4 pins M12 cable 1 3 Package Contents e YRL78IOLINKMAX board YRL78IOLINKMAX programming adapter e Notincluded in the package but downloadable from the Renesas web page a Starter Kit Installer
45. n assignments memory maps peripheral function specifications electrical characteristics timing User s manual for charts and operation Hardware description xxx xx User s manual for This User s manual Hardware Note Refer to the application notes for details on using peripheral functions xxx xx Series User s manual for Description of CPU Software instruction set User s manual for Software R01USxxxxEJxxxx Information on using peripheral functions and application examples Available from Renesas Electronics Web Application Note Sample programs site Information on writing programs in assembly language and C Renesas Technical Update Product specifications updates on documents etc Notation of Numbers and Symbols R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 7 User Manual YRL78IOLINKMAX Register Notation R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS User Manual YRL78IOLINKMAX List of Abbreviations and Acronyms Abbreviation Full Form ACIA Asynchronous Communication Interface Adapter bps bits per second CRC Cyclic Redundancy Check DMA Direct Memory Access DMAC Direct Memory Access Controller GSM Global System for Mobile Communications Hi Z High Impedance IEBus Inter Equipment Bus UO Input Output IrDA Infrared Data Association LSB Least Significant Bit MSB Most Significant Bit NC Non Connect PLL P
46. ngs Basic Settings Other Settings 4 Device Information File File name RRE IOESE och File version V100 Target Interface UART chO Communication transfer rate 1 000 000bps Supply oscillator Target Freguency MHz Ihternal OSC Multiply rate 1 00 Supply power 33V Usine Tool Tool name El Device information File Modify Ce Clear Output Panel Figure 5 7 Information setting display R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 26 User Manual YRL78IOLINKMAX Renesas Flash Programmer Usage 5 6 Firmware Selection and Command Setting The data file to be programmed needs to be selected e Press the Browse button and locate the a87 file to be programmed into the RL78 G1A e Follow the instructions to select the file The file name should appear in the User Data area as shown below e Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help Microcontroller R5F10E8E User Data area RL78_Max_Renesas a87 Command Autoprocedure E P Start Renesas Flash Programmer 2 04 01 a is software is the no charge free version This is unsupported Clear Output Panel Figure 5 8 YRL78IOLINKMAX firmware selected Next the command needs to be set 5 6 1 Autoprocedure Command Setting e Press the Microcontroller menu button and select the Autoprocedure E P option The following sequence is execute
47. not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS User Manual The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books et
48. nt light clear Temperature sensor Green Power Good Ambient infrared Standard 12 bit ADC 18 432MHz on board Oscillator RL78 G1A RSFLOESEALA 3x3 25 pin LGA 16 bit CISC 41DMIPS True Low Power core Up to 32MHz 1 on chip Oscillator Flash Ram Data flash 64K 4K 4K byte 16 bit Timers 8 channels 12 bit ADC up to 13 channels Multiplier and divider multiply accumulator Figure 3 1 YRL78IOLINKMAX board Components 3 1 Internal Connections The diagram below shows the YRL7SIOLINKMAX board components and their connectivity to the MCU User Analog IOs User Serial ports 1 Debug connector RL78 G1A 25 pin FLGA Microcontroller I 0 Figure 3 2 YRL78IOLINKMAX Internal block Diagram RO1UH0486ED0000_RL78G1A Rev 1 00 User Manual RENESAS Red green blue RGB High accuracy 12 bit ADC Serial Interfaces SPI I2C Power supply VDD GND High speed system clock Adapter User interface On chip debugging programming 16 YRL78IOLINKMAX 3 2 Components Placement Figure 3 3 below shows the components layout of the board YRL78IOLINKMAX Description Figure 3 3 YRL78IOLINKMAX Top and bottom side Component Placement 3 3 M12 Connector CN1 6mm The M12 connector allows the board interfacing with an industrial type Master device Figure 3 4 gives the wiring scheme for the plug Pin 2 is configurable as a digital input or output Pin4 is the IO Link communication
49. on Catalog EI E O PCIntetaces E O Vendor E O TMG TE GmbH TMG USB IO Link Master B 10 Link Devices E O Vendor E O TMG TE GmbH 8 LEJ Sample Devices KM Sample Device Figure 9 3 Catalog update A new window opens in which you can browse your PC to find the Renesas YRL78IOLINKMAX V2 SK IODD file O Link Device Tool V3 60 Starter Kit TODD Organize v New folder Name Z Renesas YRL78IOLINKMAX V2 SK 20140612 IODD1 0 L xml Renesas YRL SIOLINKMAX V2 SK 20140612 IODD1 1Lxml PC Interfaces Vendor ER e TMG TE GmbH J TMG USB IO Link Master Rick Devices Vendor E TMG TE GmbH Sample Devices S Sample Device m File name Renesas YRLT8IOLINKMA X V2 SK v 10 Device Description IODD1 H Figure 9 4 Import Device Description e Press the open button R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 40 User Manual YRL78IOLINKMAX 9 23 Catalog Update Confirmation IO Link Ambient Sensor Demo Sample A successful update shows the Renesas Electronics Europe GmbH vendor and the YRL78IOLINKMAX SK in the IO Link Devices section of the catalog The TMG USB IO Link Master can also be seen under PC Interfaces section of the catalog 10 Link Device Too V3 File Options View Help 2 D ofina DIA rg Specialist gt TMG IO Link Master YRL78IOLIN
50. opyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does
51. or Output P50 INTP1 E2 cs B4 SPI Chip Select Input P21 C3 SDI C4 SPI Serial Data Input P12 SO00 D1 SDO B5 Serial Data Output P11 S100 D3 SCLK A5 SPI Clock Input P10 SCK00 E3 IRA B3 Interrupt Reguest Output P51 INTP2 D2 RX E4 Receiver Output P03 RXD1 C5 WU D3 Wake Up Output P137 INTPO B4 TXC D4 Transmit Communication Input P02 TXD1 C4 TXEN E5 Transmitter Enable P22 D4 LI E2 Logic Output of the 24V DI Logic Input P31 C1 LO E3 Logic Input of the DO Output P23 D5 3 9 Flash Programming On chip Debugging Adapter The adapter board provided in the package enables an easy connection mean for the sensor board to the E1 debugger Additionally it provides the user with a prototyping area and further access to the RL78G1A peripherals The following figure shows the adapter circuit with the accessible microcontroller pins R01UH0486ED0000 RL78G1A Rev 1 00 User Manual TENESAS 20 YRL78IOLINKMAX Ca maxim 4 C integrated YRL78IOLINKMAX Description B 8 Figure 3 6 Programming debugging adapter description The table below shows the adapter s connectors description Table 3 7 Programming debugging adapter ports description Name Description Name E1 Programming Debugging interface PCN2 Name Pin Pin PCN1 VDD PCN1 8 PCN1 9 PCN2 3 GND PCN1 2 PCN1 12 PCN1 14 PCN2 3 RESET PCN1 6 PCN1 10 PCN1 13 PCN2 3 ToolO PCN1 5 PCN2 PCN2 Senso
52. r Data area RL78 Max Renesas a87 z Browse Command Signature Read Start zererrzzz Connect s nE mw Start Signature Read Device rome RSF10 SE Device data 1000 05 Code flash end addr OOOOFFFF Data flash end addr OOOF1FFF Firmware Version 3 03 Signature Read PASS E End Signature Read sssssszzzz Discornect Gear Output Panel Figure 5 9 Signature reading command execution The RFP opens a progress bar and connect to the board and device The results of reading from the device should be as shown below Device name R5F10E8E Device data 10 00 06 Code flash end addr 0000FFFF Data flash end addr 000F1FFF Firmware Version 3 03 Signature Read PASS If the execution is correct the command can be changed to Autoprocedure E P and the device can be programmed with the selected Data file RO1UH0486ED0000_RL78G1A Rev 1 00 User Manual TENESAS 28 YRL78IOLINKMAX Renesas Flash Programmer Usage 5 7 YRL78IOLINKMAX Flash Programming To download the Data file to the microcontroller e Select the Autoprocedure E P option from the Microcontroller menu Press the START button The green LED turns ON as the emulator powers the board and the results should be as shown in Figure 5 10 below A Pereza Fash Programmer Unsupported Freeware Vernon file T ES Help Microcontroller RSPIOEBE User Data area AL78 Max Ronesas 387
53. r board connector RL78 G1A Pin Name Description Name Pin PCN2 1 GND E1 debugger Ground VSS B2 PCN2 2 RESET Reset port RESET B5 PCN2 3 Tool0 Programming Debugging Input port P40 ToolO A5 PCN2 4 VDD E1 debugger power supply VDD B3 PCN2 5 TP1 User test point 1 P10 ANI18 SCK00 SCL00 E3 PCN2 6 TP2 User test point 2 P11 ANI20 S100 SDA00 D3 PCN2 7 TP3 User test point 3 P20 ANIO AVREFP E1 PCN2 8 TP4 User test point 4 P12 ANI21 SO00 TxDO D1 R01UH0486ED0000 RL78G1A Rev 1 00 User Manual RENESAS P10 ANI18 SCKDO SCLOO P11 ANI20 S100 SDA00 P20 ANIO AVREFP P12 ANI21 S000 TxDO 21 YRL78IOLINKMAX Installation and operation 4 Installation and operation 4 1 Getting Started The YRL78IOLINKMAX board comes already flash programmed with a demonstration of an IO Link sensors applications sample program The Quick Start Guide supplied on the downloadable Starter Kit Installer as a PDF file takes the user through the software installation procedure The Installer creates a Renesas Electronics Tools repository for the YRL78IOLINKMAX in the Host PC s All Programs startup folder From this location the user is able to find and open all documentations and sample Program workspace provided with the kit The IAR Embedded Workbench including the C SPY debugger allows building and downloading application programs to the YRLZSIOLINKMAX board Additionally the Renesas FLASH programming software can
54. ress the Next button to select the communications interface 5 4 Communication Interface Setup e Make sure El is selected in the Select Tool drop down menu and press Next e Keep the Target Device connection to default setting and press Next Zp Renesas Flash Programmer Unsupported Freeware Version l i Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help File Tool Microcontroller Help Microcontroller IntematOSC MHz foo 2 Next Figure 5 5 Communication interface setup R01UH0486ED0000_RL78G1A Rev 1 00 EN ESAS 25 User Manual YRL78IOLINKMAX Renesas Flash Programmer Usage 5 5 Target Power Supply Setup e Tick the box to enable the Power supply from the emulator 3 3V e Press the Next button to complete the set up r T R Renesas Flash Programmer Unsupported Freeware Version R File Tool Microcontroller Help Microcontroller Power Supply Power supply from the emulator W Power target from the emulator Supply voltage 334 5 OV USB VBUS 1 3 3V Power from emulator Additional Settings Figure 5 6 Target Power Supply setup A status screen opens as shown below e Press the Complete button to finish the setup procedure Jp Renesas Flash Programmer Unsupported Freeware Version sE 8 File Tool Microcontroller Help Project Setti
55. rosoft and Windows are registered trademarks of Microsoft Corporation Adobe and Acrobat Reader are registered trademarks of Adobe Systems Incorporated All other product names are trademarks or registered trademarks of their respective owners R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 14 User Manual YRL78IOLINKMAX System Configuration 2 System Configuration The YRLZSIOLINKMAX is an IO Link slave or Device For IO Link communication an IO Link Master not included in the kit is necessary to use this kit In this manual a TMG USB to IO Link Master is used to explain the operation of the YRL78IOLINKMAX An IODD IO Link Device Description is provided for importation and integration of the YRL78IOLINKMAX into the IO Link Device tool AC Adaptor USB IO Link Master Host Machine IO Link YRL78IOLINKMAX Figure 2 1 YRL78IOLINKMAX system configuration 2 1 YRL78IOLINKMAX BoardThe YRL78 0LINKMAX board is a demonstration kit for the RL78 G1A 16 bit microcontroller of the RL78 family The IO link board can be used in two modes IO Link Mode default mode and Standalone mode 2 1 1 IO Link Mode When used in IO Link Mode the YRL78IOLINKMAX board is connected to a host system via an IO Link Master Figure 2 1 shows the board being connected to a host computer using the TMG USB IO Link Master not included see section 1 2 1 for more details The Master powers and connects to the demonstrator board via the M12
56. s are for functional explanation purposes only without any relevance to the real hardware implementation R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS User Manual YRL78IOLINKMAX How to Use This Manual Purpose and Target Readers This manual is designed to provide the user with an understanding of the hardware functions and electrical characteristics of the MCU It is intended for users designing application systems incorporating the MCU A basic knowledge of electric circuits logical circuits and MCUs is necessary in order to use this manual The manual comprises an overview of the product descriptions of the CPU system control functions peripheral functions and electrical characteristics and usage notes Particular attention should be paid to the precautionary notes when using the manual These notes occur within the body of the text at the end of each section and in the Usage Notes section The revision history summarizes the locations of revisions and additions It does not list all revisions Refer to the text of the manual for details The following documents apply to the xxx xx Group Make sure to refer to the latest versions of these documents The newest versions of the documents listed may be obtained from the Renesas Electronics Web site Document Type Description Document Title Document No Hardware overview and xxx xx Group Data Shee electrical characteristics Datasheet Doo Hardware specifications pi
57. scribes how to set up and use the Renesas Flash Programmer interface RFP with the YRL78IOLINKMAX kit 5 1 Hardware Setup Before connecting the board to the E1 debugger please connect the debugger to the host PC It will be automatically detected and the appropriate drivers will be installed Once the E1 debugger is installed connect the board as pre figure below Host Machine 5 2 Software Setup The Renesas Flash Programmer RFP is deployed during the software installation process or they can be found on the Downloadable Starter kit Installer The RFP has been installed in the default location e Start Menu gt e All programs gt e Renesas Electronics Utilities gt e Programming Tools gt e Renesas Flash Programmer V2 04 gt e Renesas Flash Programmer V2 04 exe e Double click on the file name to open the application Note that Windows Vista and 7 users may have to use Run as administrator and the opening screen should open as in Figure 5 2 below ROTUHOG86ED0000 ALTEGIA RETUO ENESAS R User Manual YRL78IOLINKMAX Renesas Flash Programmer Usage Welcome Create new workspace Basic mode Full mode Open workspace Figure 5 2 RFP start up screen e Click the Next button to start the set up process 5 3 Workspace Creation e Press the Microcontroller drop down tab on the new screen displayed and select the RL78 option This should now show all the RL78 devices
58. sion A firmware version 07 40 il m Debug Log Build x Ready NUM E Figure 8 6 IAR C SPY debugger RO1UH0486ED0000_RL78G1A Rev 1 00 User Manual RENESAS 36 YRL78IOLINKMAX IAR Embedded Workbench Other debugging windows can be opened to watch variables monitor registers view the Stack memory etc These can be selected by using the View menu tab at the top of the workbench and then selecting the required debugging function Please note that there are some other debugging function such as Events that are located under the Emulator tab Data is held for all debugging options whether displayed or not so that windows can be opened or closed as required to make the management of the workspace and the data viewed clearer Software breakpoints can be set in the C source or assembler windows by simply double clicking on the source code line or the in the appropriate window Other methods of setting software breakpoints by right clicking the mouse button or using the pull down menus are available The main debugging control functions are shown below Other debugging functions are disabled in this mode Ye IAR Embedded Workbench IDE File Edit View Project Debug Emulator Tools Window Help DOMA 8 B gt v o E A E E E E X Mi e ku Step into Run RESET Step Over Lx to SW and Hardware Step Out ursor Exit STOP Debugger e e ON pF Live Watch Hardware
59. so please check that the YRL78IOLINKMAX board is properly connected and powered by the IO Link Master The external power supply adapter provided with the TMG USB IO Link Master must be used for this purpose Other possible sources of malfunction could be a blank microcontroller or faulty IO Link communication channel Click on the Take over type of device into engineering button The YRL78IOLINKMAX board now appears under the TMG USB IO Link Master DE in the topology pane and details on the board can be read in the Common pane 10 Link Device Tool V3 File Options View Help A B SSS SI tht 27 lee A 10 Common Manual Test Topology THG USB 10 Link Master DE COMS HCD g e a n 0 Renesas YALZBIOLINKMAX SK V2 UNIVERSAL SERIAL BUS Tath ond l Device TMG USB IO Link Master DE COMB Catalog RI Version 118 Vendor TMG TE GmbH PCinterfaces Interface TMG USB IO Link Master DE COM6 B NE Vendor E TMG TE GmbH Connected Device Name Renesas YRL7SIOLINKMAX SK V2 Vendor Renesas Electronics Europe GmbH Description Sample Device for RL78 with MAX 4821 TMG USB IO Link Master EG I0 Link Devices Vendor Renesas Electronics Europe GmbH E O YRL7SIOLINKMAX Renesas YRL7SIOLINKMAX SK V2 E O TMG TE GmbH E Sample Devices Device ID Ox18C004 gt Sample Device Vendor ID Ox018C Check Config Delete Device Figure 9 10 IO Link communication active The IO Lin
60. suctdesenseedesestcedacseesuevocnassdsdevaecdss 19 3 7 Half Moon Bay Sensor Modul s ssiu suusre susu estea den pleccaviventestirventsettvendestayiashntesepsedesoes sonbvendsevaplesdavsunsde Verect evs 19 3 8 TO Link Transceiver O 20 3 9 Flash Programming On chip Debugging Adapter e eeeee 0000 eee eee 00000000 ee 66 eee PRE 20 4 Inst llation SEENEN 22 4 1 EE Ee E 22 42 Installed Contents san cis o ao Sins eh ene aed esas AA OS reece ADS SE ewes dE 22 4 3 IODD Device Description Files Installation 2 0 cece eeeesseecesecesecesecaecaaecaeecseeesesseeeeeeseseeseeesesaecaecsaesaeeeeeneeeas 22 5 Renesas Flash Programmer BE 23 5 1 PALA Ware Setup ross TTTTTRETETTTTTEEETTTTETTTRTTTTEI TTT TTI TTT E R EA 23 5 2 Software DEET 23 5 3 Workspace Creat On EE 24 34 Communmcation Int rface Setup vsvcscacssasceasvesieescessatesensenettessousvessisveeseseubvesssouereussavaeesserveupattentveetsensdleasssdvesdesteiens 25 5 5 Target Power Supply Set P iesiri n e E E EA E ETE REE E R AR 26 5 6 Firmware Selection and Command Seng 27 5 6 1 Autoprocedure Command Seng 27 5 6 2 Blank Check or Signature Read Command Setting 0 0 cece cee ceeeseeeeeeeeeeeeeeeeeesecsecsaecsaecsaesaaesaeeeneeees 27 27 YRL78IOLINKMAX Flash Programming 2000000090069 00 9600909 9R 9 PKR ARR R KRK RR RR RR R PR n 29 6 On Chip pe i cetek b n dass A dn 30 T YRLZ8IOLINKMAX Sampl Project aio ro as l EO Jsa al al danta 31 7 1 TAR
61. t Sensor Demo Sample The YRL78IOLINKMAX board is shipped with a demo pre programmed to the microcontroller This demo exhibits all the sensor features available on the platform To play with the demo another tutorial manual is provided explaining how to use the board with the demo The present chapter addresses only the use of the YRL78IOLKMAX board with regards to the ambient light sensor project For the purpose of this demo the TMG USB IO Link Master has been used The screenshots in the following sections are those of the TMG device tool software operating with the TMG Master device If you have the TMG Master device an IODD device description file for the YRL78IOLINKMAX board demo is installed on the host PC by the downloadable Starter kit Installer The IODD can be found in the starter kit workspace under The IODD folder of the SampleProgram repository e IODD file name Renesas YRL78IOLINKMAX V2 SK 20140612 IODD1 1 xml Once the Device tools software has been updated the YRL78IOLINKMAX board can be controlled from the software GUI For further details please refer to section 9 2 Using YRL78IOLINKMAX Board Demo with TMG IO Link Device Tool e Connect the IO Link Master to the host computer The YRL78IOLINKMAX board should be now connected to the Master via the M12 cable see Figure 9 1 Remark If you do not have the TMG USB IO Link Master and your equipment does not support the IODD description file please refer to the
62. talog on the right see Figure 9 2 below 10 Link Device Tool V3 File Options View Help da D oe B l tit P Specialist Topology Exit online connection Online status Topology Setup online connection Catalog E PCinterfaces GA Vendor n MG TE Gmi Device catalog Lier E Ak Devices o endor 2 TMG TE GmbH D Sample Devices Sample Device Common field E Figure 9 2 10 Link Device Tool GUI The topology pane shows the topology from the PC interfaces to the IO Link Devices The Catalog pane shows all the Devices installed with the tool On the symbol bar two icons setup exit online connection allow to set the IO Link line status When the line is Online the Online status symbol will blink green with the symbol online The common field is currently blank but it will display the description of the devices present in the Topology view RO1UH0486ED0000 RL78G1A Rev 1 00 RENESAS 39 User Manual YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample 9 2 2 Updating the IO Link Device Catalog Before the YRL78IOLINKMAX can be displayed in the device tool the IO Link devices catalog must be updated e Inthe menu bar select Options then Import Device Description 10 Link Device Toot V3 ik L S n W ee File Options View Help Ch L gt kl ange Language Change Login Status User Management Import Device Descripti
63. the Play button to start the real time display of process data Figure 9 14 shows the 14 bit ambient light measurement green trace and the digital intensity Limit red trace At factory setting the intensity limit is set to 2000 By moving a light source closer of further away from the sensor the corresponding light intensity is displayed When the value is above 2000 the intensity limit is set to 1 Respectively the red LED on the board turns on 9 3 4 2 Pause Button e Lett click on the Pause button freezes the display of measured information in the scope window while the recording of process data continues in the background e Another click on the Pause button displays the information recorded during the paused period followed by the real time measurement 9 3 4 3 Stop Button e Left click on the stop button to terminate the real time display of process data The latest information measured remain displayed on screen The user can use the scroll bar to view different sections of the information recorded However a click on the play button will reset the scope window to zero and restart the recording 9 3 4 4 Cycle Time e Lett click on the cycle time button to set the cycle time 10 samples per cycle are displayed 9 3 4 5 Configure Button e Lett click on the configure button to select the process data variables to display in the scope window R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 46 User Manual YRL78IOLINKMAX IO
64. the directories Debug and Release 7 2 Ambient Light Sample Project The YRL78IOLINKMAX sample project for AR demonstrates the TMG IO Link stack on RL78 The stack library provided included all 7 layers functionalities of the IO Link specification Functionality such as data storage or block parameterization is part of the application However for simplicity the sample code provided does not support these features For further details on the IO Link stack and how to setup the library parameters please refer to the OuickStartGuide IO Link DeviceStack Library v1 1 pdf and UserManual Device Software pdf documentations The sample code project implements an ambient light sensor The user can teach the ambient light intensity limit to the sensor using the parameterization feature in the IO Link Device tool For further details on how to teach the sensor please refer to section 9 4 The table below displays the sample program s characteristics Table 7 2 Sample Program Characteristics Characteristics Description Vendor ID 0x018C Device ID 0x18C004 IODD V1 1 Renesas YRL78IOLINKMAX V2 SK 20140612 IODD1 1 xml IODD V1 0 1 Renesas YRL78IOLINKMAX V2 SK 20140612 IODD1 0 1 xml IO Link Version V1 1 compatible to V1 0 Software TE GmbH SIO Mode supported Yes PIN2 as digital out 2nd channel Controlled from the IO Link master via the process output bit Pin 4 I
65. ugger IO port P10 Analog input ANI18 CN2 5 Serial clock input output SCKOO E3 A5 Serial clock output SCLOO Key return KRO IO port P11 Analog input ANI20 Serial data input S100 CN2 6 Serial data input output SDA00 D3 B5 UART Receive data RxDO Data input output for external device TOOLRxD Key return KR1 IO port P20 CN2 7 Analog input ANIO E1 A D converter reference potential side input AVREFP IO port P12 Analog input ANI21 Enea Serial data output SO00 u UART Transmit data TxDO Data input output for external device TOOLTxD Key return KR2 R01UH0486ED0000 RL78G1A Rev 1 00 User Manual TENESAS 18 YRL78IOLINKMAX YRL78IOLINKMAX Description 3 5 LED Indicators D5 D6 LEDs D5 D6 are indicating the communication status on the M12 Pin4 and Pin respectively Table 3 3 LED indications PHY LED Colour Function connection Pin D5 Amber M12 Pin4 IO Link Channel communication signalling C Q B1 D6 Red M12 Pin2 Digital Input output communication signalling DI DO E1 D1 3 6 External Main Oscillator Y1 The RL78 G1A can run at up to 32 MHz operating speed with the on chip high speed oscillator A clock circuit fitted to the board connects between pins X1 and X2 of the microcontroller to generate the required clock signal to drive the MCU and associated peripherals during IO Link operations Table 3 4 Oscillator Crystal Function Frequency Default Placement Y1 Main
66. ycleTime 2000 ps CE SID Mode yes 1000 Renesas YRL7BIDLINKMAX V2 5K 2014061210DD1 1 4ml Document Version V2 0 Date of Creation 6 12 2014 1 Figure 9 11 YRL78IOLINKMAX SK V2 in device tool 923 11 Common Tab The Common pane provides information on the device such as Picture of the device Device name Product ID Device ID vendor name Hardware and firmware revision Device description file its version and date of creation Device version IO Link version 9 3 2 Process Data Tab The Process data tab displays the sensor measurements raw process data inputs from the sensor 10 Link Device Too V3 Ei e NE babas File Options View Help By B Specialist Common Process Data Parameter Oseiloseope 6 M60209 4 Topology i E J TMG USB IO Link Master DE COM6 0 Renesas YALZBIOLINKMAX SK V2 Clear Intensity 16383 Ambient Light above limit true PD Out Bit false Process Data Outputs Process Data Out Figure 9 12 YRL78IOLINKMAX SK V2 Process data R01UH0486ED0000 RL78G1A Rev 1 00 EN ESAS 44 User Manual YRL78IOLINKMAX IO Link Ambient Sensor Demo Sample The user can find information such as the ambient light intensity measured by the sensor Whether the intensity is above the limit set and the process data output bit 9 3 3 Parameter Tab The Parameter t
Download Pdf Manuals
Related Search
Related Contents
décision consécutive à l`homologation de matière fertilisante Installation Operation and Service Manual GEBRUIKSAANWIJZING MODE D`EMPLOI Vous pouvez télécharger la notice complète ici Behringer Shark FBQ100 Manual Two-Channel TransPort Data Manager Prix des bébés lecteurs 2013 : mode d`emploi " Réveillons notre foi ! " Copyright © All rights reserved.
Failed to retrieve file