Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Embedding Audio into your RX Application © 2012 Renesas Electronics America Inc. All rights reserved.2 Renesas Technology & Solution Portfolio © 2012 Renesas Electronics America Inc. All rights reserved.3 Microcontroller and Microprocessor Line-up Wide Format LCDs Industrial & Automotive, 130nm 350µA/MHz, 1µA standby 44 DMIPS, True Low Power Embedded Security, ASSP 165 DMIPS, FPU, DSC 1200 DMIPS, Performance 1200 DMIPS, Superscalar 500 DMIPS, Low Power 165 DMIPS, FPU, DSC 25 DMIPS, Low Power 10 DMIPS, Capacitive Touch Industrial & Automotive, 150nm 190µA/MHz, 0.3µA standby Industrial, 90nm 242µA/MHz, 0.2µA standby Automotive & Industrial, 90nm 600µA/MHz, 1.5µA standby Automotive & Industrial, 65nm 600µA/MHz, 1.5µA standby Automotive, 40nm 500µA/MHz, 35µA deep standby Industrial, 40nm 242µA/MHz, 0.2µA standby Industrial, 90nm 1mA/MHz, 100µA standby Industrial & Automotive, 130nm 144µA/MHz, 0.2µA standby 2010 2013 32-bit8/16-bit © 2012 Renesas Electronics America Inc. All rights reserved.4 Microcontroller and Microprocessor Line-up Wide Format LCDs Industrial & Automotive, 130nm 350µA/MHz, 1µA standby 44 DMIPS, True Low Power Embedded Security, ASSP 165 DMIPS, FPU, DSC 1200 DMIPS, Performance 1200 DMIPS, Superscalar 500 DMIPS, Low Power 165 DMIPS, FPU, DSC 25 DMIPS, Low Power 10 DMIPS, Capacitive Touch Industrial & Automotive, 150nm 190µA/MHz, 0.3µA standby Industrial, 90nm 242µA/MHz, 0.2µA standby Automotive & Industrial, 90nm 600µA/MHz, 1.5µA standby Automotive & Industrial, 65nm 600µA/MHz, 1.5µA standby Automotive, 40nm 500µA/MHz, 35µA deep standby Industrial, 40nm 242µA/MHz, 0.2µA standby Industrial, 90nm 1mA/MHz, 100µA standby Industrial & Automotive, 130nm 144µA/MHz, 0.2µA standby 2010 2013 32-bit8/16-bit © 2012 Renesas Electronics America Inc. All rights reserved.5 Microcontroller and Microprocessor Line-up Wide Format LCDs Industrial & Automotive, 130nm 350µA/MHz, 1µA standby 44 DMIPS, True Low Power Embedded Security, ASSP 165 DMIPS, FPU, DSC 1200 DMIPS, Performance 1200 DMIPS, Superscalar 500 DMIPS, Low Power 165 DMIPS, FPU, DSC 25 DMIPS, Low Power 10 DMIPS, Capacitive Touch Industrial & Automotive, 150nm 190µA/MHz, 0.3µA standby Industrial, 90nm 242µA/MHz, 0.2µA standby Automotive & Industrial, 90nm 600µA/MHz, 1.5µA standby Automotive & Industrial, 65nm 600µA/MHz, 1.5µA standby Automotive, 40nm 500µA/MHz, 35µA deep standby Industrial, 40nm 242µA/MHz, 0.2µA standby Industrial, 90nm 1mA/MHz, 100µA standby Industrial & Automotive, 130nm 144µA/MHz, 0.2µA standby 2010 2013 32-bit8/16-bit 32-Bit High Performance DSP, FPU with High Integration © 2012 Renesas Electronics America Inc. All rights reserved.6 ‘Enabling The Smart Society’ Challenge: “Improving the interface to the new smart machines is one of the important concepts of the Smart Society. Audio is an effective way of improving information delivery” Solution: “This class will show you how simple it can be to add various levels of audio to your next project” © 2012 Renesas Electronics America Inc. All rights reserved.7 Agenda Discuss audio formats and requirements Embedded applications not high quality music players Hardware Requirements DAC PWM RX Audio Demo Components Basic decoding scheme Peripheral Blocks Lab Summary © 2012 Renesas Electronics America Inc. All rights reserved.8 Audio Experience BMW pursuing better acoustics to improve efficiency Audio used to compensate for low RPM rumble - At Mercedes-Benz engineers record the sounds of those servo motors used to raise the windows and adjust the seats, then compare them with sounds made by a BMW and other competitor if it sounds well made, it probably is Do Your Products Sound Priceless? © 2012 Renesas Electronics America Inc. All rights reserved.9 Audio Considerations © 2012 Renesas Electronics America Inc. All rights reserved.10 Key Considerations What type of audio is needed Simple tones Speech Music What are characteristics and requirements File size – Internal Flash – External file storage – File system MCU and Bus Bandwidth Transducer (speaker) Amplifier/filter requirements [...]... Electronics America Inc All rights reserved 2 3 4 5 1mSecs/div RX Audio Demo 25 © 2012 Renesas Electronics America Inc All rights reserved Renesas RX6 3N RDK Graphics LCD J-Link debugger User push buttons Speaker Stereo headphone jack SD-Card MIC and amplifier 26 POT VR1 © 2012 Renesas Electronics America Inc All rights reserved LED Ring RX Audio Demo SD-Card stack & low-level drivers FAT file system... browser Supports MP3 WAV ADPCM Stereo PWM output Software volume control YRDK RX6 3N 27 © 2012 Renesas Electronics America Inc All rights reserved © 2012 Renesas Electronics America Inc All rights reserved RX Audio Demo - supported formats MP3 MPEG-1 /Audio( ISO/IEC11172-3)LayerIII MPEG-2 /Audio( ISO/IEC 13818-3)LayerIII MPEG-2.5 (For Low Sampling Frequencies) ADPCM WAV (uncompressed... All Inc All rights reserved © 2012 Renesas Electronics America rights reserved RX Audio Demo Decode path block diagram SDCard Raw binary 29 RSPI MMC Blocks © 2012 Renesas Electronics America Inc All rights reserved © 2012 Renesas Electronics America Inc All rights reserved FAT File I/O MP3 MP3 decode Render Timers RX Audio Demo Rendering block diagram Render Load next PCM sample Reload Ping DTC L... TPU1.TGRB clears all channels at the audio sample rate Timer count value TPU1.TGRB Sets Playback Rate TPU0.TGRA TPU0.TGRB Elapsed time Channel A PWM Channel B PWM 31 © 2012 Renesas Electronics America Inc All Inc All rights reserved © 2012 Renesas Electronics America rights reserved RX Audio Demo MCU peripherals used Two synchronizable "TPU" timer channels for PWM audio rendering Data Transfer Controller... All rights reserved Signal Compression - ADPCM PCM stores digitized audio - WAVE is a PCM file DPCM (Differentia) stores the difference from predicted last sample ADPCM – Adaptive – adapts step size for better compression (4:1} 16 © 2012 Renesas Electronics America Inc All rights reserved Audio Data Compression Comparison Audio Files Format (compression type) Uncompressed WAV MP3 MP3 (VBR)... sampling rate/2 May cause amplitude distortion Buffer and filter can be combined Output resistance of the DAC should be considered in the filter design Simple RC acceptable in many applications Some systems like audio the speaker or listener filters many of the unwanted higher frequencies 20 © 2012 Renesas Electronics America Inc All rights reserved PWM vs DAC Resolution At 10 kHz DAC settling... be a problem so all 1024 states of 10 bit DAC available Using 16 bit MTU timer 48 Mhz / 44.1 kHz = 1088 Can utilize more that 10 bits (1024) Increased resolution just adds audio dynamic range If a lower resolution audio is used interrupts can be “skipped” while still using PWM carrier 21 © 2012 Renesas Electronics America Inc All rights reserved © 2010 Renesas Electronics America Inc All rights... potentiometer setting for audio playback volume 1 Compare Match Timer (CMT) channel for timed delays in SDCard driver code Real-time clock (RTC) used for file time stamp 32 © 2012 Renesas Electronics America Inc All Inc All rights reserved © 2012 Renesas Electronics America rights reserved Lab Time ! 33 © 2012 Renesas Electronics America Inc All rights reserved Summary Audio formats and requirements... PWM Audio Various quality levels depending on need Trade-off – File storage size – Decode bandwidth – Quality 34 © 2012 Renesas Electronics America Inc All rights reserved Questions? 35 © 2012 Renesas Electronics America Inc All rights reserved ‘Enabling The Smart Society’ Challenge: “Improving the interface to the new smart machines is one of the important concepts of the Smart Society Audio. .. important concepts of the Smart Society Audio is one of the most effective ways of improving information delivery” Solution: “This class will show you how simple it can be to add various levels of audio to your next project” 36 © 2012 Renesas Electronics America Inc All rights reserved . Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Embedding Audio into your RX Application © 2012 Renesas Electronics America Inc. All rights reserved.2 Renesas. rights reserved.7 Agenda Discuss audio formats and requirements Embedded applications not high quality music players Hardware Requirements DAC PWM RX Audio Demo Components Basic decoding. the Smart Society. Audio is an effective way of improving information delivery” Solution: “This class will show you how simple it can be to add various levels of audio to your next project” ©