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...
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...
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.
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.
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.
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.
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.
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. •...
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’.
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.
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.
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.
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.
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.
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.
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’...
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.
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.
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.