background image

R12UZ0012EG0110 Rev. 1.10 

 

Page 3 of 34 

Apr 03, 2017 

 

 

Disclaimer 

 

By using this Solution Kit, the user accepts the following terms: 

 

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 
of any kind whether express or implied, including but not limited to the implied warranties of satisfactory quality, 
fitness for a particular purpose, title and non-infringement of intellectual property rights with regard to the Solution 
Kit. Renesas expressly disclaims all such warranties. Renesas or its affiliates shall in no event be liable for any loss 
of profit, loss of data, loss of contract, loss of business, damage to reputation or goodwill, any economic loss, any 
reprogramming or recall costs (whether the foregoing losses are direct or indirect) nor shall Renesas or its affiliates 
be liable for any other direct or indirect special, incidental or consequential damages arising out of or in relation to 
the use of this Solution Kit, even if Renesas or its affiliates have been advised of the possibility of such damages.  

 

Precautions 

 

The following precautions should be observed when operating any Solution Kit product: 

 

 

This  Solution Kit  is only intended for use in a laboratory environment under ambient temperature and humidity 
conditions. A safe separation distance should be used between this and any sensitive equipment. Its use outside the 
laboratory, classroom, study area or similar such area invalidates conformity with the protection requirements of the 
Electromagnetic Compatibility Directive and could lead to prosecution.  

 

The product generates, uses, and can radiate radio frequency energy and may cause harmful interference to radio 
communications. However, there is no guarantee that interference will not occur in a particular installation. If this 
equipment causes harmful interference to radio or television reception, which can be determined by turning the 
equipment off or on, you are encouraged to try to correct the interference by one or more of the following measures;  

 

  ensure attached cables do not lie across the equipment  

  reorient the receiving antenna  

  increase the distance between the equipment and the receiver  

  connect the equipment into an outlet on a circuit different from that which the receiver is connected  

  power down the equipment when not in use  

  consult the dealer or an experienced radio/TV technician for help NOTE: It is recommended that wherever 

possible shielded interface cables are used.  

 

The product is potentially susceptible to certain EMC phenomena. To mitigate against them it is recommended that the 
following measures be undertaken;  

 

  The user is advised that mobile phones should not be used within 10m of the product when in use.  

  The user is advised to take ESD precautions when handling the equipment.  

 

The  Solution Kit  does not represent an ideal reference design for an end product and does not fulfil the regulatory 
standards for an end product. 

Summary of Contents for RX231

Page 1: ... 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 32 User s Manual www renesas com ...

Page 2: ... 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 7 Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as th...

Page 3: ...ce should be used between this and any sensitive equipment Its use outside the laboratory classroom study area or similar such area invalidates conformity with the protection requirements of the Electromagnetic Compatibility Directive and could lead to prosecution The product generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications However th...

Page 4: ...ot list all revisions Refer to the text of the manual for details The following documents apply to the Hear it Solution Kit 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 Quick Start Guide Provides simple instruction to setup the solut...

Page 5: ...SB Mini Firmware Using Firmware Integration Technology R01AN2166EJ USB host CDC FIT application note Provides technical details of how to integrate and use the USB host CDC FIT module USB Host Communication Device Class Driver for USB Mini Firmware Using Firmware Integration Technology R01AN2167EJ USB host mass storage class driver FIT application note Provides technical details of how to integrat...

Page 6: ...cation Table FIR Finite Impulse Response FIT Firmware Integration Technology HPF High Pass Filter I2 S Inter IC Sound ISR Interrupt Service Routine LPF Low Pass Filter MCU Microcontroller Unit MTU Multi Function Timer Pulse Unit PCB Printed Circuit Board PCM Pulse Code Modulation PGA Programmable Gain Amplifier PMODTM Peripheral Module RAM Random Access Memory RFP Renesas Flash Programmer ROM Read...

Page 7: ...R12UZ0012EG0110 Rev 1 10 Page 7 of 34 Apr 03 2017 All trademarks and registered trademarks are the property of their respective owners ...

Page 8: ...ection 15 4 2 5 PMODTM Connectivity 16 4 2 6 WM8983 CODEC 16 4 2 7 Power Supply 16 5 Embedded Firmware Application Samples 17 5 1 Hardware Configuration 17 5 1 1 Switch Settings for Embedded E2 Lite Programmer Debugger 17 5 1 2 Jumper Settings 17 5 1 3 Resistor Modifications 17 5 2 Starting e2 studio and Importing Sample Code 18 5 3 Software Configurations 20 5 3 1 Streaming Sample Application 20 ...

Page 9: ... 03 2017 6 1 3 Volume Control 25 6 1 4 USB Device File Searching 26 6 2 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 Additional Information 30 ...

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

Page 11: ... also incorporates an integrated E2 Lite debugger programmer a PMODTM interface for connection of a display supplied and provides a flexible hardware and software platform to be used as a basis for further developments This user manual has been written to help the user understand the sample code provided with the Hear it Kit It is intended to be read by those using the Hear it as a guide or starti...

Page 12: ...played on the PMOD display and can be highlighted and selected for audio playback using the on board switch SW3 and potentiometer R43 Audio information from the USB is sent by DMA transfer in I2 S format to the audio codec via the SSI interface for digital to analogue conversion and output to speaker and or headphone Once a wav file is selected and has started playing the on board potentiometer ca...

Page 13: ...nted with a software attenuation function with an option in the source code for control via the codec directly There further configuration available in the source code to select the left or right channel as the input source and the left right or both channels as output source The output volume can be controlled by adjusting the potentiometer R43 Switch SW3 cycles between the different FIR filter p...

Page 14: ...erating Check Conditions The sample code described in this user manual has been checked under the conditions listed in Table 4 1 Item Description Microcontroller used RX231 R5F52318ADFP Operating frequency Maximum operating frequency 54 MHz PCLKA 54 MHz PCLKD 54 MHz BCLK 32 MHz FCLK 32 MHz Power Supply Operating Voltage 5 0Vdc Integrated development environment e2 studio version 5 3 Toolchain Rene...

Page 15: ...rammer debugger to access the RX231 microcontroller There is provision to fit a 14 way connector Samtec part number SAM_HTST 107 01 X DV to support connection of an external E1 or E2 Lite programmer debugger if required If an external debugger is used the embedded E2 Lite debugger must be deactivated by setting it to standalone mode achieved by setting both switches in the switch block SW1 to the ...

Page 16: ...TM Display on CN5 4 2 6 WM8983 CODEC The Hear it Solution Kit board incorporates a Cirrus Logic WM8983 Stereo CODEC with speaker driver This provides Line In and MIC inputs and outputs for a headphone and speaker up to 1W The MIC input connector CN8 is not fitted by default on the PCB If it is required then the recommended part is SJ 3506 SMT TR from CUI Audio data is transferred to and received f...

Page 17: ...the correct settings for switch SW1 Make the required audio connections Connect the mini USB function connector CN4 to the host PC using the supplied cable The Hear it Solution kit is now ready for programming debug operations When running the streaming demo ensure potentiometer R43 is turned fully anti clockwise before operating the demonstration This potentiometer controls the volume When playin...

Page 18: ...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 option as necessary Click OK The e2 studio welcome splash screen will appear Click the Go to the e2 studio workbench arrow button on the far right circled in the screenshot opposite Once the environment has initialized right click in the Project Explorer...

Page 19: ...Projects into Workspace then click Next 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 The projects will be imported into the workspace ...

Page 20: ...ure 5 1 where AUDIO_CHANNEL is set to LEFT default setting Figure 5 1 Streaming Input Channel Configuration 5 3 1 2 Output Channel Selection The application can be configured to select the channel or combination of channels to use for the processed audio output The default setting is for both channels to be used as the output Figure 5 2 Streaming Output Channel Configuration 5 3 1 3 Volume Control...

Page 21: ...iles from a USB drive attached to the USB Host connector CN9 and to play the audio on the speaker headphones The USB drive must contain a folder called Music The Music folder may hold a maximum of 16 wav files Ensure the USB drive contains the Music folder as seen in the figure below and contains wav files The available wav files will be shown on the display connected on PMODTM connector CN2 Use p...

Page 22: ...near Release This Build Mode has optimisation turned on and provides no debug information The C code execution may appear to be out of order due to the way compiler optimises the code This build configuration is intended for final ROM programmable code By default the project is configured to HardwareDebug build configuration Setting the build configuration Click the top level rx231_dsp_demo or rx2...

Page 23: ...nd download the code to the target A firewall warning may be displayed for e2 server gdb exe Check the Private networks such as my home or work network box and click Allow access A user account control dialog may be displayed Enter the administrator password and click Yes After downloading the code a dialog box will appear asking if you would like to switch to the Debug perspective Click Remember ...

Page 24: ...face The Renesas TFAT FIT module is used to transfer data from the USB to the receive buffer Internally data is transferred from receive buffer to transmit buffer by a memcpy function The 16 bit PCM data in the transmit buffer is sent to the CODEC via the SSI interface by the DMAC microcontroller peripheral matching the sampling frequency of the wav files at 48kHz In order to achieve seamless play...

Page 25: ...nsfer Scheme in USB Playback Mode 6 1 3 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 See section 5 3 2 2 for fu...

Page 26: ...an the root and the Music directory It simply adds the found wav files in Music folder as right siblings of the first found wav file However the data structure can easily be adapted to implement a more complex search tool that includes searching multiple directories 0 Music Directory 2 Directory 3 Directory 4 Audio1 wav Audio2 wav Audio3 wav Audio4 wav Files and Directories on Mass Storage Left Ch...

Page 27: ... placed into a different sub block to the data being transferred out of the buffer to the next stage In this way a continuous supply of data can be maintained Figure 6 4 shows this transfer graphically and Table 6 2 shows the operations in progress at each step Figure 6 4 Audio Streaming Mode Buffer Processing Overview Step DMAC1 operation DSP filter operation DMAC0 operation 1 data read into rx b...

Page 28: ...0_8000_i32 h 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 Various tools are available for creatin...

Page 29: ...udio 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 See section 5 3 1 3 for further details ...

Page 30: ...ails listed in section 9 of the Quick Start Guide General information on Renesas Microcontrollers can be found on the Renesas website at http www renesas com Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations Copyright This document may be wholly or partially subject to change without notice All rights re...

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: ...0888 Fax 86 21 2226 0999 Renesas Electronics Hong Kong Limited Unit 1601 1611 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2265 6688 Fax 852 2886 9022 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei 10543 Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux ...

Page 34: ...RX231 Group R12UZ0012EG0110 ...

Reviews: