Monitoring TMS320C240 Peripheral Registers in the Debugger Software



Similar documents
Floating Point C Compiler: Tips and Tricks Part I

Binary Search Algorithm on the TMS320C5x

SN54165, SN54LS165A, SN74165, SN74LS165A PARALLEL-LOAD 8-BIT SHIFT REGISTERS

Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

Fast Logarithms on a Floating-Point Device

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

Using C to Access Data Stored in Program Space Memory on the TMS320C24x DSP

SDLS068A DECEMBER 1972 REVISED OCTOBER Copyright 2001, Texas Instruments Incorporated

Signal Conditioning Wheatstone Resistive Bridge Sensors

EDI s x32 MCM-L SRAM Family: Integrated Memory Solution for TMS320C4x DSPs

EDI s x32 MCM-L SRAM Family: Integrated Memory Solution for TMS320C3x DSPs

SN28838 PAL-COLOR SUBCARRIER GENERATOR

bq2114 NiCd or NiMH Gas Gauge Module with Charge-Control Output Features General Description Pin Descriptions

RETRIEVING DATA FROM THE DDC112

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

Controlling TAS5026 Volume After Error Recovery

Motor Speed Measurement Considerations When Using TMS320C24x DSPs

Wireless Subwoofer TI Design Tests

Chapter 13. PIC Family Microcontroller

TSL250, TSL251, TLS252 LIGHT-TO-VOLTAGE OPTICAL SENSORS

Smart Battery Module with LEDs and Pack Supervisor

SN54F157A, SN74F157A QUADRUPLE 2-LINE TO 1-LINE DATA SELECTORS/MULTIPLEXERS

TSL INTEGRATED OPTO SENSOR

How To Make A Two Series Cell Battery Pack Supervisor Module

PAC52XX Clock Control Firmware Design

High-Speed Gigabit Data Transmission Across Various Cable Media at Various Lengths and Data Rate

CUSTOM GOOGLE SEARCH PRO. User Guide. User Guide Page 1

Audio Tone Control Using The TLC074 Operational Amplifier

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

How To Fix An Lmx9838 Bluetooth Serial Port Module With Bluetooth (Bluetooth 2) From A Bluetooth Bluetooth 4.2 Device With A Bluembee 2.2 Module

Next-Generation BTL/Futurebus Transceivers Allow Single-Sided SMT Manufacturing

APPLICATION BULLETIN

A Low-Cost, Single Coupling Capacitor Configuration for Stereo Headphone Amplifiers

Teaching DSP through the Practical Case Study of an FSK Modem

SN54HC157, SN74HC157 QUADRUPLE 2-LINE TO 1-LINE DATA SELECTORS/MULTIPLEXERS

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

TMS320C3x/C4x Assembly Language Tools User s Guide

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

Simplifying System Design Using the CS4350 PLL DAC

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

Using C to Access Data Stored in Program Memory on the TMS320C54x DSP

TI and ibiquity Introduce Industry s Lowest Cost Single-Chip AM/FM and HD Radio Baseband John Gardner Digital Radio Marketing Manager

Using Code Coverage and Multi-event Profiler in Code Composer Studio v2.3 for Robustness and Efficiency Analyses

USER GUIDE EDBG. Description

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

Command Processor for MPSSE and MCU Host Bus Emulation Modes

Application Note AN0008. Data Logging Extension. For. Venus 8 GPS Receiver

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

Multi-Transformer LED TV Power User Guide. Anderson Hsiao

Freescale Semiconductor, I

VisualDSP Emulation Tools Installation Guide for Windows 95/98/NT/2000

Implementing a Hardware Monitor Using the TMS320C40 Analysis Module and JTAG Interface for Performance Measurements in a Multi-DSP System

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

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

System Considerations

Software Serial Port for ROM/RAM Monitor

USB - FPGA MODULE (PRELIMINARY)

Serial Communications

MAX II ISP Update with I/O Control & Register Data Retention

UART Boot Loader Design on the Kinetis E Series

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

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

Field Software Updates Using TPMS LF An example using the Low Frequency radio (LFR) for wireless software updating

AN3998 Application note

Bluetooth HID Profile

73M1866B/73M1966B FXOCTL Application User Guide November 2, 2009 Rev. 4.1 UG_1x66B_009

WHAT DESIGNERS SHOULD KNOW ABOUT DATA CONVERTER DRIFT

Current-Transformer Phase-Shift Compensation and Calibration

National CR16C Family On-Chip Emulation. Contents. Technical Notes V

13. Publishing Component Information to Embedded Software

Application Note AN0008. Data Logging Extension. For. Venus 6 GPS Receiver

MPR121 Serial Communication

Guidelines for Software Development Efficiency on the TMS320C6000 VelociTI Architecture

Application Report. Jim Patterson... Americas Field Applications

Product Brief. 2.0 microtoled. Intelligent GOLDELOX Display Module. µtoled-20-g2. Rev 1.0

MCF54418 NAND Flash Controller

SN54ALS191A, SN74ALS191A SYNCHRONOUS 4-BIT UP/DOWN BINARY COUNTERS

LM5030 LM5030 Application: DC - DC Converter Utilizing the Push-Pull Topology

Code Composer Studio s Command Window

Filter Design in Thirty Seconds

August 2001 PMP Low Power SLVU051

Intel RAID Controller Troubleshooting Guide

Lab Experiment 1: The LPC 2148 Education Board

Using the RS232 serial evaluation boards on a USB port

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

Hardware and Software Requirements

Application Note AN107

Adapting the PowerPC 403 ROM Monitor Software for a 512Kb Flash Device

Texas Instruments. FB PS LLC Test Report HVPS SYSTEM AND APPLICATION TEAM REVA

Nemo 96HD/HD+ MODBUS

Application Report. 1 Introduction. 2 Resolution of an A-D Converter. 2.1 Signal-to-Noise Ratio (SNR) Harman Grewal... ABSTRACT

Signal Conditioning Piezoelectric Sensors

8051 MICROCONTROLLER COURSE

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Production Flash Programming Best Practices for Kinetis K- and L-series MCUs

Programing the Microprocessor in C Microprocessor System Design and Interfacing ECE 362

Temperature & Humidity SMS Alert Controller

PN7120 Windows IoT Porting Guidelines. Rev October

Transcription:

TMS320 DSP DESIGNER S NOTEBOOK Monitoring TMS320C240 Peripheral Registers in the Debugger Software APPLICATION BRIEF: SPRA276 Jeff Crankshaw Digital Signal Processor Solutions May 1997

IMPORTANT NOTICE Texas Instruments (TI) reserves the right to make changes to its products or to discontinue any semiconductor product or service without notice, and advises its customers to obtain the latest version of relevant information to verify, before placing orders, that the information being relied on is current. TI warrants performance of its semiconductor products and related software to the specifications applicable at the time of sale in accordance with TI s standard warranty. Testing and other quality control techniques are utilized to the extent TI deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. Certain application using semiconductor products may involve potential risks of death, personal injury, or severe property or environmental damage ( Critical Applications ). TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED, OR WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT APPLICATIONS, DEVICES OR SYSTEMS OR OTHER CRITICAL APPLICATIONS. Inclusion of TI products in such applications is understood to be fully at the risk of the customer. Use of TI products in such applications requires the written approval of an appropriate TI officer. Questions concerning potential risk applications should be directed to TI through a local SC sales office. In order to minimize risks associated with the customer s applications, adequate design and operating safeguards should be provided by the customer to minimize inherent or procedural hazards. TI assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein. Nor does TI warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of TI covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used. Copyright 1997, Texas Instruments Incorporated

TRADEMARKS TI is a trademark of Texas Instruments Incorporated. Other brands and names are the property of their respective owners.

CONTACT INFORMATION US TMS320 HOTLINE (281) 274-2320 US TMS320 FAX (281) 274-2324 US TMS320 BBS (281) 274-2323 US TMS320 email dsph@ti.com

Contents Abstract... 7 Design Problem... 8 Solution... 8 Examples Example 1. INIT File... 8

Monitoring TMS320C240 Peripheral Registers in the Debugger Software Abstract This document discusses how to view the peripheral registers on a C240 or F240 device while running the emulator. It includes a lengthy code example. Monitoring TMS320C240 Registers in the Debugger Software 7

Design Problem Solution Example 1. INIT File How do I view the peripheral registers on a C240 or F240 device while I am running the emulator? The C24x DSP controllers are designed around the C2xLP core processor and utilize the same software development tools as the other devices in the C2xx generation. However, the C24x devices integrate many peripherals that are unique to the DSP family, such the Event Manager and the dual 10-bit ADCs. Also, all of the peripheral registers are mapped into data space. The C2xx C Source debugger software provides the capability to customize the debugger display. By using the wa command, you may display any data memory location and give it a meaningful name. Typing the following on the command line of the debugger will bring up the Watch window with the contents of data memory location 701Ah and label that data as SYSSR: wa *0x0701A, SYSSR This is the location of the System Status register for C240 and F240 devices. Details of the wa command and Watch window may be found in Chapter 8 and Chapter 13 of the TMS320C2xx C Source Debugger User s Guide (SPRU151). A command file customized for the C240 that includes memory map definitions and wa commands for all registers is included below. This file is also available on the TI Web site and the TMS320 BBS. echo C240init.CMD for C240 mr ;DATA MEMORY ma 0x00000,1,0x005F,ram ;MMRs ma 0x00060,1,0x0020,ram ;On-Chip RAM B2 ma 0x00100,1,0x0100,ram ;On-Chip RAM B0 if CNF=0 ma 0x00300,1,0x0100,ram ;On-Chip RAM B1 ma 0x07010,1,0x0010,ioport ;Peripheral System Config & Control ma 0x07020,1,0x0010,ioport ;Peripheral WDT / RTI ma 0x07030,1,0x0010,ioport ;Peripheral - ADC ma 0x07040,1,0x0010,ioport ;Peripheral - SPI ma 0x07050,1,0x0010,ioport ;Peripheral - SCI ma 0x07070,1,0x0010,ioport ;Peripheral Ext Ints ma 0x07090,1,0x0010,ioport ;Peripheral Digital I/O ma 0x07400,1,0x000D,ioport ;Peripheral Event Mgr GPT 8 SPRA276

ma 0x07411,1,0x000C,ioport ;Peripheral - Event Mgr CMP,PWM ma 0x07420,1,0x0007,ioport ;Peripheral - Event Mgr CAP,QEP ma 0x0742C,1,0x0009,ioport ;Peripheral - Event Mgr Int Cntl ;PROGRAM MEMORY ma 0x00000,0,0x03FFF,rom ;Internal Prog mem (Flash or ROM) ;Available if MPNMC=0. ma 0x0fe00,0,0x100, ram ;Available if CNF=1 i.e. B0 ;System Module Registers ;~~~~~~~~~~~~~~~~~~~~~~~ ;wa *0x07018, SYSCR ;System Module Control Register ;wa *0x0701A, SYSSR ;System Module Status Register ;wa *0x0701E, SYSIVR ;System Interrupt Vector Register ;Interrupt Registers ;~~~~~~~~~~~~~~~~~~~ ;wa *0x07070, XINT1_CR ;Int1 (type A) Control reg ;wa *0x07072, NMI_CR ;Non maskable Int (type A) Control reg ;wa *0x07078, XINT2_CR ;Int2 (type C) Control reg ;wa *0x0707A, XINT3_CR ;Int3 (type C) Control reg ;wa *0x0742C, PDPINT_CR ;Power Drive Protection Int cntl reg ;Digital I/O ;~~~~~~~~~~~ ;wa *0x07090, OPCRA ;Output Control Reg A ;wa *0x07092, OPCRB ;Output Control Reg B ;wa *0x07094, IPSRA ;Input Status Reg A ;wa *0x07096, IPSRB ;Input Status Reg B ;wa *0x07098, IOPA_DDR ;I/O port A Data & Direction reg. ;wa *0x0709A, IOPB_DDR ;I/O port B Data & Direction reg. ;wa *0x0709C, IOPC_DDR ;I/O port C Data & Direction reg. ;wa *0x0709E, IOPD_DDR ;I/O port D Data & Direction reg. ;WatchDog(WD)/Real Time Int(RTI)/Phase Locked Loop(PLL) Registers ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;wa *0x07021, RTI_CNT ;RTI Counter reg ;wa *0x07023, WD_CNT ;WD Counter reg ;wa *0x07025, WD_KEY ;WD Key reg ;wa *0x07027, RTI_CR ;RTI Control reg ;wa *0x07029, WD_CR ;WD Control reg ;wa *0x0702B, PLL_CR1 ;PLL control reg 1 ;wa *0x0702D, PLL_CR2 ;PLL control reg 2 ;Analog-to-Digital Converter(ADC) registers ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;wa *0x07031, ADC_CR_SR ;ADC Control & Status reg ;wa *0x07033, ADC_CFG ;ADC Configuration reg ;wa *0x07035, ADC_CH_SEL ;ADC Channel Select reg ;wa *0x07037, ADC_CH0_DATA ;ADC Channel 0 Result Data ;wa *0x07039, ADC_CH1_DATA ;ADC Channel 1 Result Data Monitoring TMS320C240 Registers in the Debugger Software 9

;Serial Peripheral Interface (SPI) Registers ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;wa *0x07040, SPI_CR1 ;SPI Config Control Reg 1 ;wa *0x07041, SPI_CR2 ;SPI Operation Control Reg 2 ;wa *0x07042, SPI_SR ;SPI Status Reg ;wa *0x07044, SPI_BAUD ;SPI Baud rate control reg ;wa *0x07046, SPI_EMU ;SPI Emulation buffer reg ;wa *0x07047, SPI_BUF ;SPI Serial Input buffer reg ;wa *0x07049, SPI_DAT ;SPI Serial Data reg ;wa *0x0704D, SPI_PORT_CR1 ;SPI Port control reg1 ;wa *0x0704E, SPI_PORT_CR2 ;SPI Port control reg2 ;wa *0x0704F, SPI_PRI_CR ;SPI Priority control reg ;Serial Communications Interface (SCI) Registers ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;wa *0x07050, SCI_COM_CR ;SCI Comms Control Reg ;wa *0x07051, SCI_CR1 ;SCI Control Reg 1 ;wa *0x07052, SCI_HBAUD ;SCI Baud rate control ;wa *0x07053, SCI_LBAUD ;SCI Baud rate control ;wa *0x07054, SCI_CR2 ;SCI Control Reg 2 ;wa *0x07055, SCI_RX_STAT ;SCI Receive status reg ;wa *0x07056, SCI_RX_EMU ;SCI EMU data buffer ;wa *0x07057, SCI_RX_BUF ;SCI Receive data buffer ;wa *0x07059, SCI_TX_BUF ;SCI Transmit data buffer ;wa *0x0705D, SCI_PORT_CR1 ;SCI Port control reg1 ;wa *0x0705E, SCI_PORT_CR2 ;SCI Port control reg2 ;wa *0x0705F, SCI_PRI_CR ;SCI Priority control reg ;Event Manager (EV) ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;wa *0x07400, GPTCON ;General Timer Controls ;wa *0x07401, T1CNT ;T1 Counter Register ;wa *0x07402, T1CMP ;T1 Compare Register ;wa *0x07403, T1PER ;T1 Period Register ;wa *0x07404, T1CON ;T1 Control Register ;wa *0x07405, T2CNT ;T2 Counter Register ;wa *0x07406, T2CMP ;T2 Compare Register ;wa *0x07407, T2PER ;T2 Period Register ;wa *0x07408, T2CON ;T2 Control Register ;wa *0x07409, T3CNT ;T3 Counter Register ;wa *0x0740a, T3CMP ;T3 Compare Register ;wa *0x0740b, T3PER ;T3 Period Register ;wa *0x0740c, T3CON ;T3 Control Register ;wa *0x07411, COMCON ;Compare Unit Control Register ;wa *0x07413, ACTR ;Full Compare Output Action Ctl. Reg. ;wa *0x07414, SACTR ;Simple Compare Output Action Ctl. Reg. ;wa *0x07415, DBTCON ;wa *0x07417, CMPR1 ;wa *0x07418, CMPR2 ;Dead Band Timer Control ;Full Compare Channel 1 Threshold ;Full Compare Channel 2 Threshold 10 SPRA276

;wa *0x07419, CMPR3 ;wa *0x0741a, SCMPR1 ;wa *0x0741b, SCMPR2 ;wa *0x0741c, SCMPR3 ;wa *0x07420, CAPCON ;wa *0x07422, CAPFIFO ;wa *0x07423, FIFO1 ;wa *0x07424, FIFO2 ;wa *0x07425, FIFO3 ;wa *0x07426, FIFO4 ;wa *0x0742c, IMRA ;wa *0x0742d, IMRB ;wa *0x0742e, IMRC ;wa *0x0742f, IFRA ;wa *0x07430, IFRB ;wa *0x07431, IFRC ;wa *0x07432, IVRA ;wa *0x07433, IVRB ;wa *0x07434, IVRC ;Full Compare Channel 3 Threshold ;Simple Comp Channel 1 Threshold ;Simple Comp Channel 2 Threshold ;Simple Comp Channel 3 Threshold ;Capture Unit Control ;FIFO1-4 Status Register ;Capture Channel 1 FIFO Top ;Capture Channel 2 FIFO Top ;Capture Channel 3 FIFO Top ;Capture Channel 4 FIFO Top ;Group A Interrupt Mask Register ;Group B Interrupt Mask Register ;Group C Interrupt Mask Register ;Group A Interrupt Flag Register ;Group B Interrupt Flag Register ;Group C Interrupt Flag Register ;Group A Int. Vector Offset Register ;Group B Int. Vector Offset Register ;Group C Int. Vector Offset Register echo C240init.CMD HAS BEEN LOADED Monitoring TMS320C240 Registers in the Debugger Software 11