Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920



Similar documents
Simple Voice over IP (VoIP) Implementation

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Hello, and welcome to this presentation of the STM32 Serial Audio Interface. I will present the features of this interface, which is used to connect

Data sheet Wireless UART firmware version 4.02

Rayson Technology Co., Ltd.

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Network administrators must be aware that delay exists, and then design their network to bring end-to-end delay within acceptable limits.

4. H.323 Components. VOIP, Version 1.6e T.O.P. BusinessInteractive GmbH Page 1 of 19

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

LIN (Local Interconnect Network):

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

Introduction and Comparison of Common Videoconferencing Audio Protocols I. Digital Audio Principles

MP3 Player CSEE 4840 SPRING 2010 PROJECT DESIGN.

AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AN3998 Application note

Starlink 9003T1 T1/E1 Dig i tal Trans mis sion Sys tem

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

Broadband Networks. Prof. Dr. Abhay Karandikar. Electrical Engineering Department. Indian Institute of Technology, Bombay. Lecture - 29.

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Atmel Norway XMEGA Introduction

Quectel Wireless Solutions Wireless Module Expert U10 UMTS Module Presentation

Microcontrollers in Practice

DECT Module UM-9802 Datasheet

VMR6512 Hi-Fi Audio FM Transmitter Module

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

CHAPTER 8 MULTIPLEXING

point to point and point to multi point calls over IP

AN4646 Application note

Configuration Guide. T.38 Protocol in AOS L1-29.1D September 2011

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

Introduction to. LIN (Local Interconnect Network)

Introduction to Packet Voice Technologies and VoIP

Computer Organization & Architecture Lecture #19

Programming Audio Applications in the i.mx21 MC9328MX21

USER GUIDE EDBG. Description

TCOM 370 NOTES 99-6 VOICE DIGITIZATION AND VOICE/DATA INTEGRATION

Implementing an In-Service, Non- Intrusive Measurement Device in Telecommunication Networks Using the TMS320C31

Serial Communications

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

This idea could limit unnecessary visits and help developing countries to provide healthcare remotely as well.

Tutorial for MPLAB Starter Kit for PIC18F

IP SLAs Overview. Finding Feature Information. Information About IP SLAs. IP SLAs Technology Overview

AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.

Multichannel Voice over Internet Protocol Applications on the CARMEL DSP

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Line Cards Description

BROADBAND AND HIGH SPEED NETWORKS

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

Analog vs. Digital Transmission

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications

Serial Communications

MicroMag3 3-Axis Magnetic Sensor Module

Application Note, V2.2.1, July 2003 AP OCDS Level 1 JTAG Connector. 16-Bit & 32-Bit Microcontrollers. AI Microcontrollers. Never stop thinking.

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

VegaStream Information Note T.38 protocol interactions

Computer and Set of Robots

ARIB STD-T64-C.S0042 v1.0 Circuit-Switched Video Conferencing Services

Curso de Telefonía IP para el MTC. Sesión 2 Requerimientos principales. Mg. Antonio Ocampo Zúñiga

For version p (September 4, 2012)

Clearing the Way for VoIP

Software User Guide UG-461

SC14404 Complete Baseband Processor for DECT Handsets

TUTORIAL FOR CHAPTER 8

ZIGBEE BASED MINE SAFETY MONITORING SYSTEM WITH GSM

Bluetooth Module Car Kits

Possible Applications

Wireless Microcontrollers for Environment Management, Asset Tracking and Consumer. October 2009

Single or multi-channel recording from microphone channels and telecommunications lines simultaneously

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

PCM Encoding and Decoding:

SDLC Controller. Documentation. Design File Formats. Verification

Video Conferencing Unit. by Murat Tasan

Natalie Feature List SC14CVMDECT

How to design and implement firmware for embedded systems

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Using Xbee in Serial Communication

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

(Refer Slide Time: 2:10)

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Notes Odom, Chapter 4 Flashcards Set:

COMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 5 INPUT/OUTPUT UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

VADC Versatile Analog to Digital Converter. XMC Microcontrollers August 2014

Rayson. Bluetooth Module

Virtual KNX/EIB devices in IP networks

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

In-Vehicle Networking

Definitions and Documents

How To Encode Data From A Signal To A Signal (Wired) To A Bitcode (Wired Or Coaxial)

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

Transcription:

Application Note, v1.0, 2001-10 Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920 Abstract The paper describes the interfaces and the handling of Audio Data via Bluetooth. The application example was equipped with the Bluetooth chipset PMB6752 & PMB6625 (PCM interface) and the Tricore 32 bit microcontroller (SSC interface) from Infineon Technologies. It will also described how emulate a PCM communication with the SSC peripheral on TC1920. Infotainment Author: Tobias Wenzel AI SM IT Never stop thinking.

Revision History: 2001-10 v1.0 Previous Version: - Page Subjects (major changes since last revision) Table of Contents 1 Application Overview........................................ 3 2 Audio Data Flow............................................. 4 3 Audio Communication Tricore - BT Module...................... 6 3.1 Audio Interface Line Description................................. 6 3.2 BT Module PCM handling...................................... 7 3.3 Host SSC handling........................................... 7 4 Acronyms ad Abbreviations................................... 9

ApNote Bluetooth Audio Transfer Application Overview 1 Application Overview As a main application in the Car Infotainment environment, Bluetooth is used to transfer voice or audio data for example between a mobile phone and the car audio system. The driver of the car is able to phone over the free voice system and the voice data will be transferred via BT to the personal mobile phone located for example in the jacket on the back seats. In order to enable this hands-free application, the car audio system needs to control the mobile phone like to establish a BT link, place a call or accept/reject an incoming call. The HMI (Human Machine Interface) is different dependent what application and equipment is used. The user control can be done by speech recognition or push buttons. In Figure 1-1 the hardware structure of a BT node is shown. The BT node is based on Infineon devices, the TriCore microcontroller TC1920 and a BT module, which contains the Infineon Bluetooth chipset (PMB6752 & PMB6625). BT PMB6752&PMB6625 BT UART PCM ASC SSC Tricore TC1920 CODEC Figure 1-1 Bluetooth Node Structure The UART interface is used to exchange BT control data and asynchronous data. The same interface can also be used for synchronous audio data. In order to split audio data from control or asynchronous data, a second interface (PCM) can be used to transfer synchronous audio data. The Tricore devices TC1920 does not support a PCM channel. Therefore this application note describes how to emulate a PCM interface using a Synchronous Serial Interface (SSC). Application Note 3 v1.0, 2001-10

ApNote Bluetooth Audio Transfer Audio Data Flow 2 Audio Data Flow The audio data, which are transferred via Bluetooth, are modified and coded several times. In the following figure the flow of Audio data is shown from analog data to Bluetooth air coded data and vice versa. Analog Out BT Analog In CODEC Step 1 Data Modification (optional) Step 2 Audio Air Interface A/Mu-Coding (optional) Step 3 Air Coding Step 5 Tricore TC1920 Serial Interface (SSC/ASC) Audio Data Line Transfer Step 4 Serial Interface (PCM/UART) BT Module Figure 1 Audio Data Flow and Modification As it is shown in the figure above, the audio data flow is working in both directions, from step1 to step5 and step5 to step1. Description of the steps: Step 1 Audio data will be transferred into digital data or vice versa in a CODEC module. Step 2 Depending on the application, audio will be modified like sample conversion between 11 and 8 khz, echo cancellation or noise reduction. Step 3 There are two different audio formats specified transferring audio data to the Bluetooth module and vice versa: 8 bit logarithmic PCM format (A-law or Mu-law) 8/16 bit linear data Application Note 4 v1.0, 2001-10

ApNote Bluetooth Audio Transfer The following table gives an overview about Audio coding on Bluetooth: Table2-1 Audio Input Coding Bluetooth Formats A-law or Mu-law coding Step 4 Audio Data Flow Synchronous Audio Data can be transferred either via PCM Interface or via UART interface from Bluetooth baseband to host controller. The transfer on bit stream is handled bidirectional in both directions from and to the BT module. Step 5 sample size in bits Input Interface sample rate/khz 8 bit UART/PCM 8 64 bitrate in kbit/s linear 8/16 bit UART/PCM 8 64/128 Up to three bidirectional audio channels can be tranferred via the BT network simultanously. Each synchronous channel is transferred with 64kbit/s. Transferring logarithmic data, the Bluetooth chipset supports encoding and decoding from line to air data from A-law to Mu-law or vice versa. Moreover A/Mu-law coded data as well as linear data can be converted into CVSD (Continous Variable Slope Delta Modulation) format. Application Note 5 v1.0, 2001-10

ApNote Bluetooth Audio Transfer Audio Communication Tricore - BT Module 3 Audio Communication Tricore - BT Module The following example describes how to transfer audio data on a Tricore based Bluetooth node. In the example the Bluetooth Module is configured via the UART connection and audio data are transferred via PCM. On host side a PCM channel is emulated by a Synchronous Serial Interface (SSC) and an external interrupt is used to trigger incoming and outgoing data. 3.1 Audio Interface Line Description The following figures shows the physical connection between Tricore host and the Bluetooth Module. Interrupt P1.x PCM_FR SSC Module SCLK MRST MTSR PCM_CL PCM_IN PCM_OUT PCM Module ASC RxD TxD UARTOUT UARTIN UART Tricore TC1920 BT Module Figure 3-1 Signal Connection TC1920 to BT Module The UART based interface is mainly used to exchange control data and application data in a package format. In the system proposal, the UART is not used to transfer audio data. This is done with the PCM interface. Audio data are handled independently of the Bluetooth protocol and control software integrated e.g. in a BT stack and BT profile. As the TC1920 has no integrated PCM interface, an example is shown how to emulate PCM data transfer via a Synchronous Serial Channel (SSC). For this proposal the PCM interface on the BT module acts as the communication master. It generates the shift clock and the trigger signal PCM_FR. The PCM_FR signal indicates that on the next active edge of the shift clock data are transferred. The problem on SSC side is firstly to handle the trigger signal and secondly to handle the continuous PCM clock. If the data transfer is active, the PCM module generates a continuous clock. This is not compliant with the synchronous serial philosophy. Usually the SSC clock is only toggling in case of data transfer. In order to manage this significant difference, the shift counter in the SSC module should only be enabled in case of data transfer. This is done by software for each sampling. Of course this will increase the Application Note 6 v1.0, 2001-10

ApNote Bluetooth Audio Transfer Audio Communication Tricore - BT Module TriCore CPU load. Therefore it is recommended to handle this procedure by the PCP coprocessor, in order to spare Tricore CPU load. 3.2 BT Module PCM handling The initialization of the BT module is handled from the Tricore host via the UART interface. Basically a mono audio connection is required for the BT system with a bit rate of 64kbit/s and a sample rate of 8kHz. The data will be coded to 8bit u-law or a-law. For BT Air coding, CVSD coding is required. The PCM interface on the BT module is configured to master mode. In this case the PCM module generates the clock signal PCM_CL and the trigger signal PCM_FR. In master mode the clock (PCM_CL) frequency is fixed to 500kbit/s. On PCM bit transfer Short Frame Synchronization is used and MSB is shifted first. Data will be shifted on the falling edge of the shift clock. After a rising edge of PCM_FR valid data are shifted on the next falling edge. 3.3 Host SSC handling The SSC interface on TC1920 is configured to Slave mode. The data are transferred in full duplex mode on 8 bit data format. The MSB is shifted first on a falling edge of the shift clock SCLK. In addition to the SSC configuration, an external interrupt on TC1920 is generated after each rising edge of PCM_FR signal. Application Note 7 v1.0, 2001-10

The following figure gives an explanation of the PCM signals. ApNote Bluetooth Audio Transfer Audio Communication Tricore - BT Module PCM_FR PCM_IN 1 PCM_CLK 2 3 PCM_OUT Figure2 PCM data communication Note 1: After a rising edge of PCM_FR an interrupt on TC1920 is generated. In the interrupt routine transmit data will be copied into SSC transmit buffer and the SSC module is enabled. This will be reached by setting the SSC bit EN(SSC_CON register) to 1. The PCM_FR pulse is generated every 125uS by a sampling rate of 8kHz. Note 2: On this falling edge the MSB of SSC transmit data (PCM_IN) and the MSB of PCM transmit data (PCM_OUT) are transferred. Note 3: After shifting of the complete byte the receive interrupt of the SSC module is executed. In this interrupt routine, the received data from PCM_OUT are read from SSC receive buffer. In order to avoid unexpected behavior due to the continuous PCM shift clock, the SSC module is disabled. Then the system is waiting on the next rising edge of PCM_FR. Application Note 8 v1.0, 2001-10

4 Acronyms ad Abbreviations ApNote Bluetooth Audio Transfer Acronyms ad Abbreviations BT CODEC CVSD MSB PCM PCP SSC TC1920 Bluetooth COder DECoder Continuous Variable Slope Delta modulation Most Significant Bit Pulse Code Modulation Peripheral Control Processor High Speed Synchronous Serial Interface (Tricore peripheral) Tricore Infotainment Microcontroller Application Note 9 v1.0, 2001-10

Business excellence means intelligent approaches and clearly defined processes, which are both constantly under review and ultimately lead to good operating results. Better operating results and business excellence mean less idleness and wastefulness for all of us, more professional success, more accurate information, a better overview and, thereby, less frustration and more satisfaction. Dr. Ulrich Schumacher http://www.infineon.com Published by Infineon Technologies AG