Texas-instruments TMS320C6000 User Manual

Browse online or download User Manual for Hardware Texas-instruments TMS320C6000. Texas Instruments TMS320C6000 User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 62
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
TMS320C6000 DSK
Board Support Library
API Users Guide
Literature Number: SPRU432A
October 2001
Printed on Recycled Paper
Page view 0
1 2 3 4 5 6 ... 61 62

Summary of Contents

Page 1 - API User’s Guide

TMS320C6000 DSKBoard Support LibraryAPI User’s GuideLiterature Number: SPRU432AOctober 2001Printed on Recycled Paper

Page 2

BSL Introduction 1-21.1 BSL Introduction The BSL provides a C-language interface for configuring and controlling all on-board devices. The library con

Page 3 - Read This First

BSL API Modules1-3BSL Overview1.2 BSL API Modules For each on-board device, one header file and one source file will be gener-ated with the following

Page 4 - Notational Conventions

BSL API Modules 1-46711 DSK Module Support Table 1–3 shows which board each API module is supported on. Currently, allmodules described in the followi

Page 5 - How to Use This Manual

BSL Project Settings1-5BSL Overview1.3 BSL Project Settings 1.3.1 User’s Program SettingDue to the interdependancies between CSL and BSL, the CSL is

Page 6 - Contents

2-1AD535 API ModuleThis chapter provides a description of the AD535 API module, lists the individ-ual APIs within the module, and includes a reference

Page 7

AD535 API Module Description 2-22.1 AD535 API Module DescriptionThe AD535 module (audio codec supported by the C6711 DSK) serves as alevel of abstract

Page 8

AD535 API Module Description2-3AD535 API ModulePageDescriptionTypeSyntaxAD535_write F Writes data to be sent 2-16AD535_writeHwi F Writes data to be se

Page 9 - BSL Overview

AD535_Config2-5 AD535 API Module2.2 AD535 API Reference Closes codec channelAD535_closeFunction Void AD535_close( AD535_Handle hAD535);Arguments hAD

Page 10 - 1.1 BSL Introduction

AD535_config2-6 Description This is the AD535 configuration structure used to set up a codec channel.You create and initialize this structure and then

Page 11 - 1.2 BSL API Modules

AD553_freeMcbsp2-7 AD535 API ModuleDescription Sets 1 to the FREE field of the SPCR register of the given McBSP port.When FREE is set to 1, the serial

Page 12 - 1.2.2 Using BSL Handles

IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections,modifications, enhancements, improvemen

Page 13 - 1.3 BSL Project Settings

AD535_getMcbspHandle2-8 Returns McBSP HandleAD535_getMcbspHandleFunction Mcbsp_Handle AD535_getMcbspHandle( AD535_Handle hAD535,);Arguments hAD535 Ha

Page 14 - AD535 API Module

AD535_Id2-9 AD535 API ModuleDescription This AD535_Id structure is used to allocate a codec channel. You createand initialize this structure, then pas

Page 15 - Table 2–1. AD535 API Summary

AD535_inGain2-10 Sets AD535’s input gainAD535_inGainFunction void AD535_inGain( AD535_Handle hAD535, float inGain);Arguments hAD535 Handle to

Page 16

AD535_modifyReg2-11 AD535 API ModuleModifies specified control registerAD535_modifyRegFunction void AD535_modifyReg( AD535_Handle hAD535, AD535_Reg

Page 17 - 2.2 AD535 API Reference

AD535_open2-12 Opens codec channelAD535_openFunction AD535_Handle AD535_open ( AD535_Id *myId);Arguments myId Pointer to an object of type AD535_Id.

Page 18 - AD553_freeMcbsp

AD535_powerDown2-13 AD535 API ModuleSets AD535’s output gainAD535_outGainFunction void AD535_outGain( AD535_Handle hAD535, float outGain);A

Page 19

AD535_read2-14 Returns value of ouput from ADCAD535_readFunction int AD535_read( AD535_Handle hAD535);Arguments hAD535 Handle to codec channel, see A

Page 20 - AD535_Id

AD535_readReg2-15 AD535 API Modulead535Register Control register enumeration:- AD535_REG_CTRL0- AD535_REG_CTRL1- AD535_REG_CTRL2- AD535_REG_CTRL3- AD5

Page 21

AD535_reset2-16 Asserts software resetAD535_resetFunction void AD535_reset( AD535_Handle hAD535 );Arguments hAD535 Handle to codec channel, see AD535

Page 22 - AD535_micGain

AD535_writeReg2-17 AD535 API ModuleWrites value to input of DACAD535_writeHwiFunction void AD535_writeHwi( AD535_Handle hAD535, int val );Argument

Page 23 - AD535_modifyReg

iiiRead This FirstPrefaceRead This FirstAbout This Manual The TMS320C6000t DSK Board Support Library (BSL) is a set of applicationprogramming interfa

Page 24 - Opens codec channel

AD535_writeReg2-18 Description Writes value to the specified control register.6711 DSKNote: Only the Voice channel is available on this board. This me

Page 25 - AD535_outGain

3-1BOARD API ModuleThis chapter provides a description of the BOARD API module, lists the individ-ual APIs within the module, and includes a reference

Page 26

BOARD API Module Description 3-23.1 BOARD API Module DescriptionThe BOARD module is where we put board-specific content. This module hasthe potential

Page 27 - AD535_readReg

BOARD_SUPPORT3-3 BOARD API Module3.2 BOARD API Reference Returns value of specified memory-mapped registerBOARD_readRegFunction Uint32 BOARD_readReg(

Page 28

BOARD_writeReg3-4 Writes value to specified memory-mapped registerBOARD_writeRegFunction void BOARD_writeReg( BOARD_Reg boardRegister, Uint32

Page 29 - AD535_writeHwi

4-1BSL API ModuleThis chapter provides a description of the BSL API module and includes a ref-erence section showing the single API function within th

Page 30

BSL API Module Description 4-24.1 BSL API Module DescriptionThe BSL module serves to initialize the API modules supported by theboard.The following un

Page 31 - BOARD API Module

BSL_init4-3 BSL API Module4.2 BSL API ReferenceInitializes all programmable modules on boardBSL_initFunction void BSL_init();Arguments noneReturn Valu

Page 32 - Table 3–1. BOARD API Summary

5-1DIP API ModuleThis chapter provides a description of the DIP API module, lists the individualAPIs within the module, and includes a reference secti

Page 33 - 3.2 BOARD API Reference

DIP API Module Description 5-25.1 DIP API Module DescriptionThis module has the following single API for reading DIP switch positions:DIP_get(dip#) re

Page 34 - BOARD_writeReg

How to Use This Manualiv Notational Conventions This document uses the following conventions:- Program listings, program examples, and interactive

Page 35 - BSL API Module

DIP_SUPPORT5-3 DIP API Module5.2 DIP API Reference Returns current value of specified DIP switchDIP_getFunction Uint32 DIP_get( Uint32 dipNum);Argum

Page 36 - Table 4–1. BSL API Function

6-1FLASH API ModuleThis chapter provides a description of the FLASH API module, lists the individ-ual APIs within the module, and includes a reference

Page 37 - 4.2 BSL API Reference

FLASH API Module Description 6-26.1 FLASH API Module Description The FLASH module allows access to on-board flash and executes datamemory manipulatio

Page 38 - DIP API Module

FLASH_checksum6-3 FLASH API Module6.2 FLASH API Reference Returns checksum of specified Flash dataFLASH_checksumFunction Uint32 FLASH_checksum( Ui

Page 39 - Table 5–1. DIP API Summary

FLASH_erase6-4 Erases specified segment of Flash memoryFLASH_eraseFunction void FLASH_erase( Uint32 locator, Uint32 length);Arguments locator Addre

Page 40 - 5.2 DIP API Reference

FLASH_read6-5 FLASH API ModuleReads data from FLASH addressFLASH_readFunction void FLASH_read( Uint32 locator, Uint32 dst, Uint32 length);Argumen

Page 41 - FLASH API Module

FLASH_SUPPORT6-6 Compile time constantFLASH_SUPPORTConstant FLASH_SUPPORTDescription Compile time constant that has a value of 1 if the board supports

Page 42 - Table 6–1. FLASH API Summary

FLASH_write6-7 FLASH API ModuleDescription Writes data to the Flash address (locator) from a source address (src).This function is limited by the page

Page 43 - 6.2 FLASH API Reference

7-1LED API ModuleThis chapter provides a description of the LED API module, lists the individualAPIs within the module, and includes a reference secti

Page 44 - FLASH_erase

LED API Module Description 7-27.1 LED API Module DescriptionThis module has a simple API for configuring on-board LED outputs. Threestates can be set

Page 45 - Reads data from FLASH address

How to Use This ManualvRead This FirstTMS320C6000 Programmer’s Guide (literature number SPRU198)describes ways to optimize C and assembly code for the

Page 46 - FLASH_write

LED_on7-3 LED API Module7.2 LED API Reference Turns off specified LEDLED_offFunction void LED_off( Uint32 LedNum);Arguments LedNum Specifies which

Page 47

LED_SUPPORT7-4 Description Turns on the specified LED.C6711 DSK- LED_1 = USER_LED1- LED_2 = USER_LED2- LED_3 = USER_LED3 - LED_ALL = all user LEDsExam

Page 48 - LED API Module

A-1Appendix AGlossaryAAD535: The audio codec API module. Currently supported by the6711 DSK. address: The location of program code or data stored; an

Page 49 - Table 7–1. LED API Summary

Glossary A-2block: The three least significant bits of the program address. These corre-spond to the address within a fetch packet of the first instru

Page 50 - 7.2 LED API Reference

GlossaryA-3Glossaryclock cycle: A periodic or sequence of events based on the input from theexternal clock. clock modes: Options used by the clock gen

Page 51 - LED_toggle

Glossary A-4device ID: Configuration register that identifies each peripheral componentinterconnect (PCI). digital signal processor (DSP): A semicondu

Page 52 - Glossary

GlossaryA-5Glossaryexternal interrupt: A hardware interrupt triggered by a specific value on apin. external memory interface (EMIF): Microprocessor ha

Page 53

Glossary A-6indirect addressing: An addressing mode in which an address points toanother pointer rather than to the actual data; this mode is prohibit

Page 54

GlossaryA-7Glossarylittle endian: An addressing protocol in which bytes are numbered from rightto left within a word. More significant bytes in a word

Page 55

Glossary A-8Pperipheral: A device connected to and usually controlled by a host device.program cache: A fast memory cache for storing program instruct

Page 56

ContentsviiContents1 BSL Overview 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 57

GlossaryA-9Glossarysynchronous dynamic random-access memory (SDRAM): RAM whosecontents is refreshed periodically so the data is not lost. Transfer of

Page 58

IndexIndex-1IndexAAD535 API module, 2-1API constant, 2-5AD535_SUPPORT, 2-16API functionsAD535_close, 2-5AD535_config, 2-6AD535_getMcbspHandle, 2-8AD53

Page 59

IndexIndex-2 LLED API module, 7-1API constant, 7-3LED_SUPPORT, 7-4API functionsLED_off, 7-3LED_on, 7-3LED_toggle, 7-4API summary table, 7-2description

Page 60

Contentsviii 5 DIP API Module 5-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 61

TablesixContentsTables1–1. BSL Modules and Include Files 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 62

1-1BSL OverviewThis chapter provides an overview of the board support library (BSL), de-scribes its beneficial features, and lists each of its API mod

Comments to this Manuals

No comments