RX111 Promotion Board (RPB) hands on

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Teacher/Mentor Institute Using the Cortex Chuck Powell.
BEST Robotic, Inc. easyC Team Training
X-Call Version V3.0 User Guide
Chung-Ta King National Tsing Hua University
© Commonwealth of Australia 2009 Laptops and Windows tips.
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 * C167CS not yet supported by DAvE V1.0 CD ROM. See “Hints regarding DAvE.” Exercise 7ASC_1.
LAUNCHXL2-RM57L – Project 0
Using PDG with e2studio: Example
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
Operating Systems Day 3. Changing Date & Time 1.Double click on digital clock on the notification area of a task bar (Click start button, Click control.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using a Renesas Code Generation Tool for RL78 Devices.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 1 Introduction.
M16C/Tiny SKP Tutorial 1 Software Development Process using HEW4
Introduction Purpose Objectives Content Learning Time
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Silicon Labs ToolStick Development Platform
The instructor presents the 1st 9 slides
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
Getting Started with Expression Web 3
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
U81X0 Downloading Tool Manual 1 ( Version 1.2 ) FlashRW For U81X0 Version 4.0.0(Build #95V) February 2004 LG Electronics Inc.
High Speed Data Converter University
IE 411/511: Visual Programming for Industrial Applications
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. e 2 Studio – Getting Started.
Version How to Use Packet Tracer MarinaMD.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Lesson No: 6 Introduction to Windows XP CHBT-01 Basic Micro process & Computer Operation.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
ChibiOS/RT Demo A free embedded RTOS
Explore GNOME The easy way, using a live CD By Carl Weisheit.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
After Construction Name: Per #:.
Lets Learn fundamentals !!
Workshop Setup The software/hardware used in this workshop are:
Dive Into® Visual Basic 2010 Express
Programming and Debugging with the Dragon and JTAG
The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.
Copyright © Infineon Technologies AG All rights reserved.
Computer Skills windows.
CS4101 Introduction to Embedded Systems Lab 1: MSP430 LaunchPad IDE
Microcontroller Applications
Chapter 2 – Introduction to the Visual Studio .NET IDE
Crouzet touch Quick start.
Microsoft Windows XP Inside Out Second Edition
Basic Computing for Teachers
MicroEconomix 1500 RSLogix 500 LAB#1
Chapter 2 – Introduction to the Visual Studio .NET IDE
Laptops and Windows tips
ECE 3567 Microcontroller Lab
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Software Setup & Validation
Windows Operating System
Embedded Development Tools
Computer Skills windows.
Computer Skills windows.
ECE 3567 Microcontrollers Lab
ECE 3567 Microcontrollers Lab
Presentation transcript:

RX111 Promotion Board (RPB) hands on November 8, 2018 © 2013 Renesas Electronics Europe. All rights reserved.

RX111 RPB Software Hardware After successful installation the RX111RPB software and manuals will be located at: All programmsRenesas Electronics ToolsYRPBRX111 Hardware © 2013 Renesas Electronics Europe. All rights reserved.

Documents Quickstart guide, Manual, © 2013 Renesas Electronics Europe. All rights reserved.

Hands On 1. Power measurement GUI Connect the USB cable to your PC and to the J-Link USB connector (CN8) on the reverse of the RPB. The green J-Link LED (LED4) will flash. A “Device driver software installed successfully” pop-up will appear in the Windows toolbar and installation will complete. The green J-Link LED (LED4) will illuminate. Launch the RX111 Demonstrator application by double-clicking the shortcut on the desktop. 8. Click the ‘Connect’ button on the ‘Home’ tab. After the connection is made you should be see the current firmware version and be able to synchronise the PC system clock with the RX111 real time clock using the ‘Sync’ button: Use the ‘Power Measurement’ tab to see a trace of RX111 current consumption. Use the ‘Low Power’ tab to switch the RX111 into the various low power and sleep modes: © 2013 Renesas Electronics Europe. All rights reserved.

RX111 Power consumption data © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration e2Studio V2.1 and above has Applilet integrated for RL78 and RX100 Create the projectOpen e2Studio Set workspace path FileSwitch workspaceOther C:\Renesas\workspace\RPB\RX111 FileNewC project Project name: RPBRX111_handson2 Project type: Executable (Renesas) Sample project Toolchain: Renesas RXC toolchain Next © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Set up the tool chain and debugger Select Toolchain version v1.02 Debug hardware: Segger Jlink Data Little endian Target device: R5F51115AxFM © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Enable Applilet integration Select “use peripheral code generation” Click Next for the default options for: Select Additional CPU options Global Option settings Standard header files Stack area and supporting files © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Configure peripherals From e2Studio project explorers Select RPBRX111_handson2 top level From e2Studio menu bar select: WindowShow ViewPeripheral functions Move the windows about to make it easy to see View menu (of peripherals) Generate report Generate code © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Configure peripherals Independent Watchdog Unused © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Configure peripherals PortsP05,P41,PB7 © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Configure peripherals PortsPE4 enable power to the LED’s PortsP03 enable power to the potentiometer © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Configure peripherals TimerUnused © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Generate code © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Edit code to start the timer.. file src\ r_cg_main.c Add after line 73 (right click on edge of source window to turn on line numbers) /* start user code */ R_CMT0_Start(); © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Edit project to flash the LED Edit file src\ r_cg_cmt_user.c Add after line 68 /* start user code */ /* LED Output Pins */ #define LED0 PORT0.PODR.BIT.B5 #define LED1 PORT4.PODR.BIT.B1 #define LED2 PORTB.PODR.BIT.B7 LED0=~LED0; LED1=~LED1; LED2=~LED2; © 2012 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Build code 1. hardware debug Fix any errors Launch debugger Debug configurations © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Launch debugger Check Debug configuration © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Run the code, the LED’s should flash at 1s interval Run Suspend execution terminate debug session © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Your task Get the Red/Green and Amber LED’s to flash alternately at ½ second interval…. Hint: Modify “Applilet” Peripheral Function settings Port4.1 amber LED to startup “ON” Compare match timer interval value 250mS © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Now lets make a variable LED flash rate. Enable the ADC in C/C++ perspective Continuous scan mode ANO00 channel Software trigger Data placement :Left alignment, so the data is in the 12 MSB’s of the 16 bit register. Disable interrupt © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Now lets make a variable LED flash rate. Modify r_cgc_main.c to start the ADC, add these after line 76. /*Start ADC*/ R_S12ADb_Start(); Modify r_cmt_user.c to copy the ADC result for ANO00 to the CMT compare register, add these after line 75. /*copy ADC result to CMT compare register */ CMT0.CMCOR = S12AD.ADDR0; © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Rebuild , debug and run.. The LED’s should change flash rate based on potentiometer setting ! See how much memory has been used. WindowShow ViewMemory Usage Percentage < 75% : Colour of bar is Green 75% <= Percentage <90% : Colour of bar is Orange Percentage >= 90% : Colour of bar is Red Hover feature for exact detail (used / available) © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration Now lets add a Visual Expression Gauge to see the ADC value graphically. Declare a variable in r_cg_main.c, line 55 volatile unsigned int adc_val; Make the variable equal to the ADC result in the main while loop. adc_val=S12AD.ADDR0 ; © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 2. E2Studio with Applilet integration add the Visual Expression Gauge to e2Studio WindowShow ViewVisual expression Drag Gauge to display window Right click and set the expression values Build, download and run the code. The dial should respond when the potentiometer is turned. © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB Sample code projects are provided with the RPB installation © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB HID (Human Interface Device) This sample demonstrates the use of the RX111 as a USB Peripheral HID . It can be configured as a HID Keyboard, HID Mouse or in HID demo mode. Import sample code into e2Studio FileImportExisting Projects into Workspace © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB HID (Human Interface Device) Import sample code into e2Studio Browse to : C:\Renesas\workspace\RPB\RX111\Sample Projects\USB_PHID.zip © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB HID (Human Interface Device) Build the code 1.PERI (debug using hardware) Debug –>check configuration PERI\USB_HID.x Segger Jlink, Target device: R5F51115 © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB HID (Human Interface Device) Run the code ! Connect a mini-USB cable to CN1 and a Windows PC. The RPB will be detected and HID drivers installed. Launch the RSK_HID.exe application, which can be found in USB_PHID root project folder. C:\Renesas\workspace\RPB\RX111\USB_PHID Click the 'Connect'button and use VID = 0x0000 and PID = 0x0003. The application should display a message indicating a successful connection to the RPB. Use the 'ReadADC' and 'Toggle LED' buttons on the application to interact with the device. © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB HID (Human Interface Device) Run the code ! Click the 'Connect'button and use VID = 0x0000 and PID = 0x0003. The application should display a message indicating a successful connection to the RPB. Use the 'ReadADC' and 'Toggle LED' buttons on the application to interact with the device. © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 3 USB HID (Human Interface Device) Run the code ! Note that the 'Set LCD' functionality requires the Pmod connector to be fitted and an RSK Pmod Compatible display connected. Also need to add the build variable “USB_LCD_ENABLE” Select top level in Project Explorer, then click on “Alt t” or Renesas Tool settings icon © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 4 USB Host This demo project to RX111 acting as a USB host and copying a file to a USB device whilst running from a superCap. Import sample code into e2Studio FileImportExisting Projects into Workspace © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 4 USB Host Import sample code into e2Studio Browse to : C:\Renesas\workspace\RPB\RX111\Sample Projects\LowPowerFileCopy.zip © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 4 USB Host Build the code 1.HardwareDebug (debug onhardware) Debug –>check configuration HardwareDebug/LowPowerFileCopy.x Segger Jlink, Target device: R5F51115 © 2013 Renesas Electronics Europe. All rights reserved.

Hands on 4 USB Host Run the demo ! Compile and download the sample code to the target, run, then disconnect the debugger. Connect a mini-USB cable to CN1 and a USB host. LED1 will illuminate and the supercapacitor will begin to charge. After several seconds LED1 will go out and LED0 will illuminate. The supercapacitor is now charged. Disconnect the USB cable. LED0 will blink periodically to show the board has power. Connect a blank FAT/FAT32 formatted USB stick to CN2. LED2 will light, as will the activity light on the USB stick (if present), then all LEDs will go out and the MCU will enter power save. Connect the USB stick to a PC, and observe the file RX111.pdf, containing a page of the MCU datasheet. To repeat the sample, reconnect to CN1, press the reset button to recharge the supercap. Go to step 3. © 2013 Renesas Electronics Europe. All rights reserved.

© 2013 Renesas Electronics Europe. All rights reserved.