Renesas RX231 User Manual

RX231 Group
Solution Kit User’s Manual
studio
Rev. 1.10 Apr 2017
32
RENESAS MCU RX200 Series
Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
32
User’s Manual
www.renesas.com
Hear-it!
For e
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
Notice
(2012.4)
1. Descriptions of circuits, software and other related information in this document are prov ided only to illust rat e 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 Electr onics ass umes no responsibility for any losses incurred by you or third parties arising fr om the use of these circuit s, soft ware, or information.
2. Renesas Electronics has used reasonable care in preparing the infor mat ion included in this doc ument, but Renesas Electronics does not warrant that such information is error free. R enesas Electr onics as sumes no liabilit y whatsoev er for any damages incurred by you resulting from errors in or omissions from the inf ormation included he rein.
3. Renesas Electronics does not assume any liability for infringement of pat ents, copyrights, or ot her int ellectual property rights of third parties by or arising from the use of Renesas Electronics produc ts or technical inf ormat ion described in this document. No license, express, implied or otherwise, is granted her eb y under any patent s, copyrights or other intellectual property rights of Renesas Electronics or others.
4. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part. Renesas Electronics assumes no responsibility for any losses incurr ed by you or thir d part ies arising f rom such alteration, modification, copy or otherwise misappropriation of Renesas E lect ronics product.
5. Renesas Electronics products are classified according to the foll o wing two qualit y grades: “ Standard” and “ High Quality”. The recommended applications for each Renesas Electronics product depends on t he product’s quality grade, as indicated below.
“Standard”: Computers; office equipment; communications equipment; test and meas urement equipme nt; audio and visual equipment; home electronic appliances; machine tool s; personal elect ronic equipmen t; and industrial robots etc.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anticrime systems; and safety equipment etc.
Renesas Electronics products are neither intended nor authorized for use in pr oducts or systems that may pose a direct threat to human life or bodily injury (artificial life support devices or systems , sur gical implantat ions et c.), or m ay cause serious property damages (nuclear reactor control systems, milit ary equipment etc. ). You must check the quality grade of each Renesas Electronics product before using it in a particular applicat ion. You may not use any Renesas Electronics product for any application for which it is not intended. Renesas Elect ronic s shall not be in an y way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Elec tr onics product for which the product is not intended by Renesas Electronics.
6. You should use the Renesas Electronics products described in this document within the range speci fied b y Renesas Electronics, especially with respect to the maximum rating, operat ing suppl y voltage ran ge, m ovement power voltage range, heat radiation characteristics, installation and other pr oduct c haract eris tics. Renesas Elect ronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics product s beyond su ch spec ified ranges.
7. Although Renesas Electronics endeavors to improve the quality and reliabil it y of its products , semic onductor product s have specific characteristics such as the occurrence of failure at a cert ain rate and malf unct ions under cert ain 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 hard ware 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 m icr ocomput er soft ware alone is very difficult, please evaluate the safety of the final products or systems manufactured by you.
8. Please contact a Renesas Electronics sales office for details as to environmental matt ers such as the envir onment al compatibility of each Renesas Electronics product. Please use Renesas Electr onics pr oducts in compl iance with all applicable laws and regulations that regulate the inclusion or use of controlled subst ances , incl uding without limitation, the EU RoHS Directive. Renesas Electronics assumes no liabil ity for damage s or losses occurring as a result of your noncompliance with applicable laws and regulations.
9. Renesas Electronics products and technology may not be used for or incorpor ated int o any produc ts or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. You should not use Renesas Electronics products or technology described in this document for an y purpose relat ing to military applications or use by the military, including but not limited to the development of weapons of mass destruction. When exporting the Renesas Electronics products or technolog y describe d in this document , you should comply with the applicable export control laws and regulations and follow the procedures required b y such la ws and regulations.
10. It is the responsibility of the buyer or distributor of Renesas Electronics products , who distri butes, dis poses of , or otherwise places the product with a third party, to notify such third party in advance of the contents and conditions set forth in this document, Renesas Electronics assumes no responsibilit y for any losses inc urred b y you or thir d parties as a result of unauthorized use of Renesas Electronics products.
11. This document may not be reproduced or duplicated in any form, in whole or in part, without prior written c onsent of Renesas Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the infor mati on 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 Electronic s Corpor ation and a lso inc ludes it s
majority owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manuf actur ed by or for Renesas Electronics
Disclaimer
By using this Solution Kit, the user accepts the f oll owing terms:
The Solution Kit is not guaranteed to b e error free, and the entire risk as to the results and performance of the Solution Kit is as sumed by the User. The Solution Kit is provided by Renesas on an “as is” basis without warrant y of any kind whether express or implied, inc luding but not limited to the implied warranties of sat isfactory quality, fitness for a particular purpos e, title and non -infringement o f intellectual property rights with regard to t he 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 reput ation or good will, any econom ic 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 speci al, incidental or cons equential damages arising out of or in relati on 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 betwee n this and any sensitive equipment . Its use outside the laboratory, classroom, study area or similar such area invalidates conformity with the protection requirement s of the Electromagnetic Compatibility Directive and could lead to prosecution.
The product generates, uses, and can radiate r adio 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 foll owing 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 connect ed
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 ca bles are used.
The product is potentially susceptible to certain EMC phenomena. To mitigate against them it is recomm ended that the following measures be undertaken;
The user is advised that mobile phones shou ld 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 re present an ideal reference design for an en d product and does not fulfil the regulatory standards for an end product.
R12UZ0012EG0110 Rev. 1.10 Page 3 of 34 Apr 03, 2017
How to Use This Manual
Document Type
Description
Document Title
Document No.
Quick Start Guide
Provides simple instruction to
Quick Start Guide
R12QS0007EG Schematics
Full detail circuit schematics
Hear-it! Solution Kit
R01UH0692EG
Hardware Manual
Provides technical details of
RX230 Group, RX231
R01UH0496EJ
BSP FIT application
Provides technical details of
Board Support Package Module Using Firmware
R01AN1685EJ
DMACA FIT
Provides technical details of
DMA Co ntroller DMACA
R01AN2063EJ CMT FIT
Provides technical details of
CMT Module Using
R01AN1856EU
1. Purpose and Target Readers
This manual is designed to provide the user with an understandi ng of the demonstrati on application, how to use
2
studio IDE to develop and debug software for the Hear-it! Sol ution Kit. It is intended for use rs designing code
e on the Hear-it! Solution Kit, using the many different incorporated peripheral devices.
2
The manual comprises of step-by-step instruct ions to l oad and de bug a pr oject in e 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.
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.
studio, but does not intend
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.
setup the solution kit and run the first sample.
of Hear-it!
the RX231 MCU.
Schematics
Group User’s Manual: Hardware
note
application note
how to integrate and use the BSP FIT module.
how to integrate and use the DMACA FIT module.
Integration Technology
Control Module Using Firmware Integration Technology
application note
R12UZ0012EG0110 Rev. 1.10 Page 4 of 34 Apr 03, 2017
how to integrate and use the CMT FIT module.
Firmware Integration Technology
RSPI FIT
application note
Provides technical details of
RSPI Clock
R01AN1914EJ SSI FIT application
Provides technical details of
SSI Module Using
R01AN2150EJ
USB host
Provides technical details of USB peripheral driver FIT
USB Basic Mini Host
R01AN2166EJ
USB host CDC FIT
Provides technical details of
USB Host
R01AN2167EJ USB host mass
Provides technical details of
USB Host Mass Storage
R01AN2169EJ Open source FAT
Provides technical details of
Open Source FAT file
R20AN0038EJ
how to integrate and use the RSPI FIT module.
synchronous Single Master Control Module Firmware Integration Technology
note
peripheral driver FIT application note
application note
storage class driver FIT application note
file system FIT application note
how to integrate and use the SSI FIT module.
how to integrate and use the module.
how to integrate and use the USB host CDC FIT module.
how to integrate and use the USB host mass storage class driver FIT module.
how to integrate and use the M3S-TFAT-Tiny FIT m odule.
Firmware Integration Technology
and Peripheral Driver (USB Mini Firmware) Using Firmware Integration Technology
Communication Device Class Driver for USB Mini Firmware Using Firmware Integration Technology
Class Driver for USB Mini Firmware Using Firmware Integration Technology
System [M3S-TFAT­Tiny] Module Firmware Integration Technology
R12UZ0012EG0110 Rev. 1.10 Page 5 of 34 Apr 03, 2017
2. List of Abbreviations and Acronyms
Abbreviation
Full Form
ADC
Analog-to-Digital Converter
BTL
Bridge-Tied Load
BPF
Band-Pass Filter
CAN
Controller Area Network
CDC
Communication Device Class
CMT
Compare Match Timer
CODEC
Coder-decoder
DAC
Digital-to-Analog Converter
DMA
Direct Memory Access
DMAC
Direct Memory Access Controller
DSP
Digital Signal Processor
FAT
File Allocation T able
FIR
Finite Impulse Response
FIT
Firmware Integration Technology
HPF
High-Pass Filter
I2S
Inter-IC Sound
ISR
Interrupt Service Routine
LPF
Low-Pass Filter
MCU
Microcontroller Unit
MTU
Multi-Function T i m er P ulse 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 Only Memory
RSPI
Renesas Serial Peripheral Interface
RTC
Real Time Clock
SCI
Serial Communications Interface
SPI
Serial Peripheral Interface
SSI
Serial Sound Interface
USB
Universal Serial Bus
WAV
Waveform Audio File Format
R12UZ0012EG0110 Rev. 1.10 Page 6 of 34 Apr 03, 2017
All trademarks and registered trademarks are the property of their respective owners.
R12UZ0012EG0110 Rev. 1.10 Page 7 of 34 Apr 03, 2017
Table of Contents
1. Overview .......................................................................................................................... 10
1.1 Purpose .................................................................................................................................................... 10
2. Introduction ...................................................................................................................... 11
2.1 Target Device ........................................................................................................................................... 11
3. Description of Application Firmware ................................................................................. 12
3.1 USB Playback Sample ............................................................................................................................. 12
3.2 Audio Streaming Sample ......................................................................................................................... 13
4. Hardware Design ............................................................................................................. 14
4.1 Operating Check Conditions .................................................................................................................... 14
4.2 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 .................................................................................................................... 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
5.3.2 USB Playback Application .............................................................................................................. 21
5.4 Build Configuration ................................................................................................................................... 22
5.5 Running in Debug Mode .......................................................................................................................... 23
5.6 Running the Hear-it! Application Code ..................................................................................................... 23
6. Description of Software .................................................................................................... 24
6.1 USB Playback Sample ............................................................................................................................. 24
6.1.1 Operation ........................................................................................................................................ 24
6.1.2 PCM Data Transfer ........................................................................................................................ 24
R12UZ0012EG0110 Rev. 1.10 Page 8 of 34 Apr 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
R12UZ0012EG0110 Rev. 1.10 Page 9 of 34 Apr 03, 2017
Hear-it! Solution Kit 1 Overview

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
R12UZ0012EG0110 Rev. 1.10 Page 10 of 34 Apr 03, 2017
Hear-it! Solution Kit 2 Introduction

2. Introduction

The Hear-it! Solution Kit is designed to demonstrate the cap ability of t he Renesas RX231 microco ntroller 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. The single­board PCB also incorporates an integrated E2-Lite debugger/programmer, a PMOD 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 starting point for their own applications.
Renesas Firmware Integration T echnol ogy (FIT) is used to initialise and drive hardware modul es that are needed for this sample. Using FIT ensures the portability of this sample between different microcontrollers in the RX family.

2.1 Tar get Device

RX231 100pin LFQFP package, 512K/64K ROM/RAM, Part number R5F52318ADFP
TM
interface for connection
R12UZ0012EG0110 Rev. 1.10 Page 11 of 34 Apr 03, 2017
Loading...
+ 23 hidden pages