Renesas RX231 User Manual
Renesas RX231 User Manual

Renesas RX231 User Manual

Rx200 series, hear-it! solution kit for e2 studio
Hide thumbs Also See for RX231:

Advertisement

Quick Links

RX231 Group
32
32
RENESAS MCU
RX200 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
Corporation without notice. Please review the latest information published by Renesas Electronics
Corporation through various means, including the Renesas Electronics Corporation website
(http://www.renesas.com).
www.renesas.com
Hear-it! Solution Kit User's Manual
2
For e
studio
Rev. 1.10 Apr 2017

Advertisement

Table of Contents
loading

Summary of Contents for Renesas RX231

  • Page 1 All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice. Please review the latest information published by Renesas Electronics Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
  • Page 2 Renesas Electronics product for any application for which it is not intended. 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 which the product is not intended by Renesas Electronics.
  • Page 3 The Solution Kit is not guaranteed to be error free, and the entire risk as to the results and performance of the Solution Kit is assumed by the User. The Solution Kit is provided by Renesas on an “as is” basis without warranty...
  • Page 4 The manual comprises of step-by-step instructions to load and debug a project in e studio, but does not intend to be a complete guide to software development on the Hear-it! Solution Kit. Further details of the RX231 microcontroller may be found in the RX231 Group Hardware Manual and within the provided demonstration code.
  • Page 5 RSPI FIT Provides technical details of RSPI Clock R01AN1914EJ application note how to integrate and use the synchronous Single RSPI FIT module. Master Control Module Firmware Integration Technology SSI FIT application Provides technical details of SSI Module Using R01AN2150EJ note how to integrate and use the Firmware Integration SSI FIT module.
  • Page 6 Programmable Gain Amplifier PMOD Peripheral Module Random Access Memory Renesas Flash Programmer Read Only Memory RSPI Renesas Serial Peripheral Interface Real Time Clock Serial Communications Interface Serial Peripheral Interface Serial Sound Interface Universal Serial Bus Waveform Audio File Format R12UZ0012EG0110 Rev. 1.10...
  • Page 7 All trademarks and registered trademarks are the property of their respective owners. R12UZ0012EG0110 Rev. 1.10 Page 7 of 34 Apr 03, 2017...
  • Page 8: Table Of Contents

    USB Playback Sample ..........................12 Audio Streaming Sample ......................... 13 4. Hardware Design ......................14 Operating Check Conditions ........................14 Hardware Configuration ........................... 15 4.2.1 RX231 Microcontroller ........................15 4.2.2 Programmer/Debugger Connections ..................... 15 4.2.3 User Controls ..........................15 4.2.4 USB Host Connection ........................
  • Page 9 6.1.3 Volume Control ..........................25 6.1.4 USB Device File Searching ......................26 Audio Streaming Sample ......................... 27 6.2.1 Operation ............................27 6.2.2 PCM Data Transfer – Audio Streaming Sample ................27 6.2.3 DSP FIR Filter ..........................28 6.2.4 Volume Control ..........................29 7.
  • Page 10: Overview

    Hear-it! Solution Kit 1 Overview 1. Overview Purpose This Solution Kit is an evaluation tool for Renesas microcontrollers. This manual describes the Hear-it! Solution Kit hardware and demonstration application R12UZ0012EG0110 Rev. 1.10 Page 10 of 34 Apr 03, 2017...
  • Page 11: Introduction

    2 Introduction 2. Introduction The Hear-it! Solution Kit is designed to demonstrate the capability of the Renesas RX231 microcontroller in low cost audio processing applications. Digital filtering can be applied to an audio input source (3.5mm line-in or optionally a Mic input) and the result output to 3.5mm speaker or line-out connection. A demonstration of audio playback from a USB mass storage device connected to the USB Host connector is also provided.
  • Page 12: Description Of Application Firmware

    Hear-it! Solution Kit 3 Description of Application Firmware 3. Description of Application Firmware The Hear-it! Solution Kit is supplied with 2 sample applications. One sample, rx231_usb_playback_demo, plays audio files in wav format from a USB mass storage device connected to the USB Host connector, CN9. The second sample, rx231_dsp_demo, demonstrates the application of digital FIR filtering to an audio stream.
  • Page 13: Audio Streaming Sample

    Hear-it! Solution Kit 3 Description of Application Firmware Audio Streaming Sample The second sample, rx231_dsp_demo, demonstrates the application of a DSP FIR filter on the left or right channel of an incoming audio signal from the line-in or microphone inputs. The modified audio stream is then transmitted to the audio codec via DMA and the SSI peripheral and then out to the speaker and/or headphones.
  • Page 14: Hardware Design

    FCLK : 32 MHz Power Supply Operating Voltage 5.0Vdc Integrated development environment studio version 5.3 Toolchain Renesas RXC Toolchain v2.06 Board used Hear-it! Solution Kit Table 4-1 : Operating Conditions R12UZ0012EG0110 Rev. 1.10 Page 14 of 34 Apr 03, 2017...
  • Page 15: Hardware Configuration

    RX231 Microcontroller The RX231 fitted to the Hear-it! PCB has the Renesas part number R5F52318ADFP. It is a 100pin LFQFP package with 512kB Flash ROM, 64kB RAM and 8kB DataFlash. The 32-bit CPU can be clocked at up to 54MHz and supports single precision floating point operations.
  • Page 16: Pmod Tm Connectivity

    CODEC, on SCI8 of the RX231 MCU. The audio clock for the CODEC is a 12.288MHz oscillator, OSC1, which is also fed to the RX231 MCU on pin 16, P34 for the SSI interface.
  • Page 17: Embedded Firmware Application Samples

    The application firmware can be programmed or run in debug mode via the embedded E2-Lite programmer/debugger and the e studio IDE or programmed by the Renesas Flash Programmer (RFP) on the PC. •...
  • Page 18: Starting E Studio And Importing Sample Code

    Hear-it! Solution Kit 5 Embedded Firmware Application Starting e studio and Importing Sample Code Start studio selecting from Windows™ Start Menu. The first dialog box to appear will be the Workspace Launcher. Click ‘Browse’ and select a suitable location to store your workspace, using the ‘Make New Folder’...
  • Page 19 The Import dialog box will allow you to specify projects to import. Click the ‘Select archive file:’ button, then click “Browse…” and locate the following directory: C:\Renesas\Workspace\Y-HEAR-IT-RX231 Select the file ‘rx231_dsp_demo.zip’ and click ‘Open’. Ensure that both projects are selected and then click ‘Finish’.
  • Page 20: Software Configurations

    Hear-it! Solution Kit 5 Embedded Firmware Application Software Configurations 5.3.1 Streaming Sample Application The Hear-it! Streaming sample application, “rx231_dsp_demo” has various configurable options. These are located in the source file main.h. 5.3.1.1 Input Channel Selection The input audio channel to be used for the DSP processing can be configured by setting the AUDIO_CHANNEL #define to the LEFT channel or the RIGHT channel.
  • Page 21: Usb Playback Application

    Hear-it! Solution Kit 5 Embedded Firmware Application 5.3.1.4 Microphone Input The microphone input, CN8 is not fitted to the Hear-it! board by default. If the microphone input is to be used in the streaming application, the CODEC must be configured to enable its internal PGAs (Programmable Gain Amplifiers) in order to allow the audio signal from the MIC input to be used.
  • Page 22: Build Configuration

    Hear-it! Solution Kit 5 Embedded Firmware Application Build Configuration The e studio project has two build configurations for each sample: ‘HardwareDebug’ and ‘Release’: HardwareDebug This Build Mode has all optimisation turned off, and provides full debug information. This is the best configuration to use whilst developing code as C code execution will be linear.
  • Page 23: Running In Debug Mode

    Click the arrow next to the debug button (bug icon). Select ‘Debug Configurations The ‘Debug Configurations’ dialog box will appear. Click the small arrow next to the ‘Renesas GDB Hardware Debugging’ option. The debug configurations for each project will appear.
  • Page 24: Description Of Software

    USB drive and a corresponding transmit buffer to send data to the CODEC via the SSI interface. The Renesas TFAT FIT module is used to transfer data from the USB to the receive buffer.
  • Page 25: Volume Control

    Hear-it! Solution Kit 6 Description of Software The SSITX empty interrupt triggers DMAC0 channel to transfer data from the active tx buffer to the CODEC. The DMAC0 transfer end interrupt handler updates the active sub-blocks for the g_pcm_buffer_tx and g_pcm_buffer_rx buffers. It also requests more data to be read from the USB device to be stored at the current receive buffer and triggers to transfer of data from the rx buffer to the tx buffer.
  • Page 26: Usb Device File Searching

    Hear-it! Solution Kit 6 Description of Software 6.1.4 USB Device File Searching The sample currently searches the root directory of the USB device for a folder named ‘Music’. If the folder exists, the sample searches for ‘.wav’ files within the ‘Music’ folder and stores the file names in a RAM in a ‘left child right sibling’...
  • Page 27: Audio Streaming Sample

    16-bit PCM data is generated by the CODEC from the input source and transferred to the receive buffer from the RX231 SSI(rx) peripheral by DMAC channel 1. The received data is then passed through the DSP filter to the transmit buffer. This data is then transmitted to the CODEC by DMAC0 and the RX231 SSI(tx) peripheral for output to speaker/line-out.
  • Page 28: Dsp Fir Filter

    These profiles are used to initialise the DSP fir filter, which is then called repeatedly to act on the audio information being transferred, in the file r_dsp_fir.c. For further information concerning the DSP filter and its API, refer to the Renesas document R01UW0128ES which is located within the DSP Library c-source download on the Renesas website.
  • Page 29: Volume Control

    Hear-it! Solution Kit 6 Description of Software 6.2.4 Volume Control The volume of the audio signal is controlled by default by an attenuation function in software. This is called when the audio block is transferred to the transmit buffer prior to transmission to the CODEC for output. Optionally, the volume can be controlled directly by the CODEC, based on configuration in the source code.
  • Page 30: Additional Information

    Copyright This document may be, wholly or partially, subject to change without notice. All rights reserved. Duplication of this document, either in whole or part is prohibited without the written permission of Renesas Electronics Europe Limited. © 2017 Renesas Electronics Europe Limited. All rights reserved.
  • Page 31 Revision History Hear-it! Solution Kit User’s Manual Rev. Date Description Page Summary  1.00 Nov 08, 2016 Initial Issue  1.10 Apr 03, 2017 Updated with application code...
  • Page 32 Hear-it! Solution Kit: User’s Manual Publication Date: Rev. 1.00 Nov 08, 2016 Rev. 1.10 Apr 03, 2017 Published by: Renesas Electronics Corporation...
  • Page 33 No.777C, 100 Feet Road, HAL II Stage, Indiranagar, Bangalore, India Tel: +91-80-67208700, Fax: +91-80-67208777 Renesas Electronics Korea Co., Ltd. 12F., 234 Teheran-ro, Gangnam-Gu, Seoul, 135-080, Korea Tel: +82-2-558-3737, Fax: +82-2-558-5141 © 2017 Renesas Electronics Corporation. All rights reserved. Colophon 4.1...
  • Page 34 RX231 Group R12UZ0012EG0110...

Table of Contents