STM32 Journal. In this Issue:

Similar documents
STM32F7 series ARM Cortex -M7 powered Releasing your creativity

STM32 F-2 series High-performance Cortex-M3 MCUs

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

STM32 F2 series High performance Cortex M3 MCUs

STM32 Journal. In this Issue:

Interconnects, Memory, GPIO

STM32 F0 Value Line. Entry-level MCUs

Designing with STM32F2x & STM32F4

Xynergy It really makes the difference!

STM32 Cortex-M3 STM32F STM32L STM32W

STM32L4+ MCU series Excellence in ultra-low-power with more performance

Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery

T he key to building a presence in a new market

ARM Cortex core microcontrollers 3. Cortex-M0, M4, M7

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

Unlocking the Potential of Your Microcontroller

AT-501 Cortex-A5 System On Module Product Brief

STM8L and STM32 L1 series. Ultra-low-power platform

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU

AK-STM32-ETH Development Board

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

ARM Cortex-M4 Architecture and Instruction Set 1: Architecture Overview


Introducing STM32 L0x Series. April

LPC4370FET256. Features and benefits

Renesas Synergy MCUs Build a Foundation for Groundbreaking Integrated Embedded Platform Development

STM32F3. Cuauhtémoc Carbajal ITESM CEM 12/08/2013

STM32L4 System operating modes

AN4777 Application note

STM32G0 MCU Series Efficiency at its Best

STM32 MCU family. 32 bit Flash microcontrollers powered by ARM Cortex M processor

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

STM bit ARM Cortex MCUs STM32F030 Series

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

An Introduction to the Stellaris LM4F Family of Microcontrollers

ECE 471 Embedded Systems Lecture 2

Course Introduction. Purpose: Objectives: Content: Learning Time:

Military Grade SmartFusion Customizable System-on-Chip (csoc)

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

NXP Unveils Its First ARM Cortex -M4 Based Controller Family

NXP Microcontrollers Selection Guide

突破 8-/16-/32- 位和 DSP 界限的 ARM MCU 解决方案

New STM32WB Series MCU with Built-in BLE 5 and IEEE

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Universität Dortmund. ARM Cortex-M3 Buses

HotChips An innovative HD video and digital image processor for low-cost digital entertainment products. Deepu Talla.

ARDUINO MEGA INTRODUCTION

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

Key Benefits. SAM S70 and E70 Devices

SAM A5 ARM Cortex - A5 MPUs

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

AN5123 Application note

ECE 471 Embedded Systems Lecture 2

ECE 471 Embedded Systems Lecture 3

Blackfin Online Learning & Development

STM32F4 Introduction F1/F2/F4 Comparison Features Highlight

Low Power System Design Using Atmel ARM Cortex -based Products Copyright Atmel Corporation

Hello and welcome to this Renesas Interactive module that provides an architectural overview of the RX Core.

Classification of Semiconductor LSI

Product Technical Brief S3C2416 May 2008

Copyright 2016 Xilinx

MeshConnect. Voice over

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Lab 1 Introduction to Microcontroller

ARM Processor Architecture

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

2-Oct-13. the world s most energy friendly microcontrollers and radios

XMEGA Series Of AVR Processor. Presented by: Manisha Biyani ( ) Shashank Bolia (

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

The Next Steps in the Evolution of Embedded Processors

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Welcome to this presentation of the STM32 direct memory access controller (DMA). It covers the main features of this module, which is widely used to

Introduction to ARM LPC2148 Microcontroller

AN Migrating to the LPC1700 series

ARM architecture road map. NuMicro Overview of Cortex M. Cortex M Processor Family (2/3) All binary upwards compatible

ATmega128. Introduction

AN4749 Application note

Hello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory.

Microcontroller basics

S2C K7 Prodigy Logic Module Series

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

The Next Steps in the Evolution of ARM Cortex-M

Kinetis KE1xF512 MCUs

Product Technical Brief S3C2440X Series Rev 2.0, Oct. 2003

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006

ootbrobotics.com Electronics and Robotics LLC

Graduate Institute of Electronics Engineering, NTU 9/16/2004

Chapter 5. Introduction ARM Cortex series

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

Arduino Uno R3 INTRODUCTION

Zynq-7000 All Programmable SoC Product Overview

New STM32WB Series MCU with built-in Bluetooth 5 and IEEE

ARM Processors for Embedded Applications

Chapter 15. ARM MCUs Architecture, Programming and Development Tools

University Program Advance Material

Cannon Mountain Dr Longmont, CO LS6410 Hardware Design Perspective

Embedded Programming with ARM Cortex-M3 Basic Experiments 1

Transcription:

Volume 1, Issue 2 In this Issue: Bringing 32-bit Performance to 8- and 16-bit Applications Developing High-Quality Audio for Consumer Electronics Applications Bringing Floating-Point Performance and Precision to Embedded Applications Introducing a Graphical User Interface to Your Embedded Application

Developing High-Quality Audio for Consumer Electronics Applications By Paul Beckmann, CEO/CTO, DSP Concepts Dragos Davidescu, Chief System Architect, STMicroelectronics John Knab, Application Engineer, STMicroelectronics With the falling cost of manufacturers are considering adding digital audio functionality to more and more consumer devices and other embedded support the wide variety of media sources users want to access such as an iphone, Internet Achieving high-quality sound output, however, is non- greatly upon the final system to design even when prototype addition, implementing realtime digital signal processing algorithms introduces a whole new set of concerns implementing advanced filters and processing algorithms, In this article, we ll show how based digital signal processing (FPU) capabilities to enable implement enhanced algorithms, convert between multiple speed communications without impacting audio quality, optimize designs to balance quality and cost, and manage other system user interface, all with a single Consumer Audio Traditionally, introducing audio to an embedded application requires digital signal-processing capabilities beyond the capabilities advanced audio algorithms to achieve full performance: Spatial enhancement: In spacious, rich sound, spatial enhancement is required is to compensate for the close Multi-channel audio: For systems supporting more than signal requires processing to create the additional audio Equalization: be equalized to achieve better in use change, the equalization Developers can employ a variety of equalization methods, including graphic and parametric applications, developers may even want to design their own equalization algorithms using a Peak limiting: nonlinearity at louder sound gain and carefully controlling the louder with a minimum amount Boost: When listening to music at low volume levels, much detail, and therefore depth, can certain other frequencies at low volume levels using loudness compensation or perceptual volume-control techniques can Level matching: Level matching eliminates the need for users to 11

Digital audio has commonly been implemented in consumer electronics and embedded applications using a second however, manufacturers need to be able to process audio on the In general, it is easier to than it is to implement real-time responsiveness and connectivity at processing audio, don t have the peripherals or interrupt responsiveness required for real- are also typically designed for high-end signal processing and massive parallelism that addition, DSPs are not designed to support communication station would still require a second processor to handle With the introduction of DSP advanced math processing System Power supply 1.2 V regulator POR/PDR/PVD Xtal oscillators 32 khz + 4 ~26 MHz Internal RC oscillators 32 khz + 16 MHz PLL Clock control RTC/AWU SysTick timer 2x watchdogs (independent and window) 51/82/114/140 I/Os Cyclic redundancy check (CRC) Control 2x 16-bit motor control PWM Synchronized AC timer 10x 16-bit timers 2x 32-bit timers capabilities required to handle not only basic audio processing but the advanced algorithms required to improve quality as requiring developers to handcode assembly as is typical for ease-of-use and faster time-to- ART Accelerator STM32 F4 ARM Cortex-M4 168 MHz Floating-point unit (FPU) Nested vector interrupt controller (NVIC) MPU JTAG/SW debug/etm Multi-AHB bus matrix 16-channel DMA Crypto/hash processor 3DES, AES 256 SHA-1, MD5, HMAC True random number generator (RNG) architected to provide short and deterministic interrupt latency as well as ultra low-power operation Architecture ST has been designed to to a wide range of consumer audio applications, including Up to 1-Mbyte Flash memory Up to 192-Kbyte SRAM FSMC/SRAM/NOR/NAND/CF/LCD parallel interface 80-byte + 4-Kbyte backup SRAM 512 OTP bytes Connectivity Camera interface 3x SPI, 2x I 2 S, 3x I 2 C Ethernet MAC 10/100 with IEEE 1588 2x CAN 2.0B 1x USB 2.0 OTG FS/HS 1x USB 2.0 OTG FS SDIO 6x USART LIN, smartcard, lrda, modem control Analog 2-channel 2x 12-bit DAC 3x 12-bit ADC 24 channels / 2.4 MSPS Temperature sensor Figure 1 capabilities such as DSP unit to allow manufacturers to produce consumer audio 12

DSP application example: MP3 audio playback General Purpose MCUs Min Max Discrete DSPs Cortex-M4 Specialised Audio DSPs 0 5 10 15 20 25 30 MHz required for MP3 decode (smaller is better!) DSP Concept Figure 2 audio processing capabilities peripheral integration, a single implementing embedded audio that combines performance, ease-of-use, connectivity, and signal processing to achieve for accelerating audio design, enhancing performance, and lowering system cost include: Digital Signal Processing Instructions: include single-cycle multiply- saturated arithmetic, and both designed to enable high-quality audio in consumer electronics and embedded applications in a 13

Floating-Point Unit: algorithms can be implemented the integrated FPU, there is no also be substantially faster and The bus size of the processor has a tremendous impact on both performance and power samples are streaming at 16 bits, the system still needs 32-bits to store intermediate accumulate) with only one 7-layer 32-bit multi-ahb bus matrix Instructions Cortex-M4 with CPU 120 168 MHz Data 64 Kbytes SRAM System Generalpurpose DMA1 8 channels DMA_MEM1 DMA_P1 Multi-Layer Bus Fabric: processing is maintaining consumer audio device, move not only signal data but manage program memory, communication ports, and other and real-time nature of audio algorithms also requires them to be integrated with application code to ensure that Generalpurpose DMA2 8 channels DMA_MEM2 DMA_P2 Ethernet MAC 10/100 DMA USB OTG HS DMA 100 Mbit/s 480 Mbit/s 12.5 MByte/s 60 MByte/s 672 MByte/s D 672 MByte/s I Bus masters designed to minimize this problem so that developers do not need to spend time This is achieved through the low interrupt service overhead of the multi-layer bus fabric that to occur simultaneously without Bus Slaves FSMC AHB2 peripheral AHB1 peripheral SRAM 16 Kbytes SRAM 112 Kbytes ART Accelerator D I Flash 1 Mbyte AHB1/APB1 AHB1/APB2 Figure 3 3 shows the high level of parallelism that can be achieved through simultaneous transfers over a multi-layer fabric: from Flash with data stored in The compressed audio stream is received over USB and CPU with DSP and FPU functionality accesses the

compressed audio stream for decompression and signal processing (green) (yellow) Audio data is output to I2S Graphical icons are transferred from Flash to the display Communications Interfaces: Users want to be able to access including USB (host and device), devices that support a wide In addition to being able to receive data without loading the CPU, developers need to be able to address the many issues related to streaming can result in lost or dropped limitation, developers can utilize domains) while maintaining audio requires only 10% utilization, leaving plenty of headroom for Multiple Clock Sources: Consumer audio systems require frequencies and need to be for each of these can impact straightforward to achieve a clean and the second PLL is available Complete audio system STM32 F2 CPU load STM32 F4 CPU load Flash footprint RAM footprint MP3 decoder 17% 6% 23k 12344 MP3 encoder 22.5% 9% 25k 16060 WMA decoder 17.5% 6% 45k 36076 AAC+ v2 decoder 25% 11% 54k 87000 Channel mixer 2.5% 2% 0.6k 16 Parametric Equalizer 16% 12% 2k 300 Loudness Control 4.5% 3.5% 3.25k 632 SRC 22.5% 10% 17.5k 1880 Figure 4 In addition to being able to receive data without loading the CPU, developers need to be able to address the many issues related to streaming audio, including lost 15

DSP library includes a large point functions optimized for the algorithms commonly used processors built around the Concepts is the company that They have leveraged their Figure 5 to maintain a permanent USB connection and avoid audio Integrated Audio Interfaces: input to the I2S peripheral if simplifying design, integrating the I2S interfaces reduces component count, board size, MCU Peripherals: architecture includes all of the real-time peripherals required for level of performance to audio a long 32-bit multiply or When computing 16- and 32- systems can drop into sleep mode faster to conserve power or run more algorithms to further In addition to the integrated DSP developers have access to the Audio Algorithm Design Audio Weaver enables the audio processing portion that goes on between receiving an audio signal and outputting GUI-based development environment that enables developers to design the signal and connecting them using a drag-and-drop editor (see optimized code behind it, and the tool automatically creates 16

built from base audio functions, losses compared to hand- When algorithm code is written by hand, each design iteration requires substantial time investment since the code must be optimized and tuned to see what its actual impact on sound quality and processing the design cycle is much faster, giving developers the ability to quality while reducing system modules, and does not require has become possible to create highly tuned audio applications without engineers needing companies new to audio, complete reference designs are available, with assistance from DSP Concepts to tune them Companies that are comfortable with audio processing can functionality and build them into higher-level processing companies can accelerate design using Audio Weaver as core components that not only optimized code but provides a development environment that facilitates fast prototyping and value-add of Audio Weaver is Accelerating Optimization To speed design, Audio Weaver supports cross-platform the same algorithms on a PC as a powerful environment in which to design and tune the software in parallel with hardware hardware is available, the code This enables engineers to measure how much a particular improvement in sound quality will cost in terms of CPU utilization use of processing resources when many functions have to When algorithm code is written by hand, each design iteration requires substantial time investment since the code must be optimized and tuned to see what its actual Weaver, the design cycle is much faster, giving developers frequency response that is 3 db in CPU utilization between 17

to determine where to allocate At the end of the day, however, audio quality is not about response graphs but how it many development systems, and download code before they However, to assess the impact of Audio Weaver solves this problem by supporting a tuning interface that can of a button, developers can tuning interface is seamless and transparent, compared to instrumenting code that can easily without recompiling can substantially shorten the time the optimization process for not comprised solely of audio design, DSP Concepts also software functionality beyond its including: Boot loader Update manager System-level Design One of the challenges to adding audio to embedded designs, audio is typically not one of the applications To address this shortcoming, creating digital audio resources for its customers in order to designs as well as tools that enable the design of quality variety of evaluation boards reference designs that provide a representative design that can be used in a wide range of iap application, a complete The Apple iap application support both simple accessory and audio streaming accessory for ipod, iphone, and ipad to which developers connect their Apple Authentication Coprocessor (ACP) circuit Free Apple ipod Accessory Lingoes for authentication and Free USB Host Library with USB Host HID class for control and information data For audio streaming accessories, the Apple iap application also supports: Free USB Host Library USB Host Audio classes control Digital audio streaming Flash card reader capabilities, such as using an SD card or decoders are provided for this purpose free of charge Today s consumer audio devices require both high performance With its high performance fabric enabling simultaneous data transactions, and the right an ideal architecture for many embedded and consumer audio synchronized digital audio 18