⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initaic10.h

📁 一个滤波器和一个音效处理程序 TI 的CCS 编译器编程。
💻 H
字号:
; THIS PROGRAM IS PROVIDED "AS IS". TI MAKES NO WARRANTIES OR
; REPRESENTATIONS, EITHER EXPRESS, IMPLIED OR STATUTORY, 
; INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS 
; FOR A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR 
; COMPLETENESS OF RESPONSES, RESULTS AND LACK OF NEGLIGENCE. 
; TI DISCLAIMS ANY WARRANTY OF TITLE, QUIET ENJOYMENT, QUIET 
; POSSESSION, AND NON-INFRINGEMENT OF ANY THIRD PARTY 
; INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE PROGRAM OR 
; YOUR USE OF THE PROGRAM.
;
; IN NO EVENT SHALL TI BE LIABLE FOR ANY SPECIAL, INCIDENTAL, 
; CONSEQUENTIAL OR INDIRECT DAMAGES, HOWEVER CAUSED, ON ANY 
; THEORY OF LIABILITY AND WHETHER OR NOT TI HAS BEEN ADVISED 
; OF THE POSSIBILITY OF SUCH DAMAGES, ARISING IN ANY WAY OUT 
; OF THIS AGREEMENT, THE PROGRAM, OR YOUR USE OF THE PROGRAM. 
; EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF 
; REMOVAL OR REINSTALLATION, COMPUTER TIME, LABOR COSTS, LOSS 
; OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR LOSS OF 
; USE OR INTERRUPTION OF BUSINESS. IN NO EVENT WILL TI'S 
; AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF 
; YOUR USE OF THE PROGRAM EXCEED FIVE HUNDRED DOLLARS 
; (U.S.$500).
;
; Unless otherwise stated, the Program written and copyrighted 
; by Texas Instruments is distributed as "freeware".  You may, 
; only under TI's copyright in the Program, use and modify the 
; Program without any charge or restriction.  You may 
; distribute to third parties, provided that you transfer a 
; copy of this license to the third party and the third party 
; agrees to these terms by its first use of the Program. You 
; must reproduce the copyright notice and any other legend of 
; ownership on each copy or partial copy, of the Program.
;
; You acknowledge and agree that the Program contains 
; copyrighted material, trade secrets and other TI proprietary 
; information and is protected by copyright laws, 
; international copyright treaties, and trade secret laws, as 
; well as other intellectual property laws.  To protect TI's 
; rights in the Program, you agree not to decompile, reverse 
; engineer, disassemble or otherwise translate any object code 
; versions of the Program to a human-readable form.  You agree 
; that in no event will you alter, remove or destroy any 
; copyright notice included in the Program.  TI reserves all 
; rights not specifically granted under this license. Except 
; as specifically provided herein, nothing in this agreement 
; shall be construed as conferring by implication, estoppel, 
; or otherwise, upon you, any license or other right under any 
; TI patents, copyrights or trade secrets.
;
; You may not use the Program in non-TI devices.

************************************************************************
**  File Name:    InitAIC10.h
**  Part Number:  TLV320AIC10/11EVM-SW-0111
************************************************************************
**  Copyright (c) Texas Instruments, Inc. 2000
************************************************************************
**
**  Release History:
**     Version      Date          Engr          Description
**      1.00     10-11-2000    Wendy X Fang   Original Release
**
************************************************************************
**
**  Function:
**    This header file defines values for AIC10 CODEC control registers,
**    which will be updated by costoms when additional AICs is added to
**    the EVM board (?? should fixed before final release ??).
**
************************************************************************
**  References:
**    (1) Data Manual: General-Purpose 3V to 5.5V 16bit 22KSPS DSP Codec 
**        - TLV320AIC10
************************************************************************

************************************************************************
**  Define Statements
************************************************************************
SECRequ      .set   0x0001          ; in prim comm, request for 2nd comm
ReadCR1      .set   0x1200          ; in 2nd comm, read AIC10 CR1 request

******* Master AIC Control Register Values (in 2nd Comm) *******
WriteMCR1    .set   0x0200          ; use default
WriteMCR2    .set   0x0402          ; N=2 for fs = 16Khz 
WriteMCR3    .set   0x0618          ; turn on OFF-HOOK to DAA
WriteMCR4    .set   0x0800          ; gain: Input=0dB, Output=24db

******* Slave AIC(s) Control Register Values (in 2nd Comm) *******
WriteSCR1    .set   0x0250          ; enable MIC op-amp interface
WriteSCR2    .set   0x0402          ; N=2 for fs = 16Khz
WriteSCR3    .set   0x0600          ; use default
WriteSCR4    .set   0x0800          ; gain: Input=24dB, Output=24db

************************************************************************
**  Varaible & Initialization
************************************************************************
             .global  AIC10Num, MasterOnFlag, IdentErrs
      
InitVari     .usect ".variable", 1  ; initial point of data 
FSCount      .usect ".variable", 1  ; comm FS (frame sync) counter
CRegCount    .usect ".variable", 1  ; AIC control register counter

AIC10Num     .usect ".variable", 1  ; number of AIC10 chips on EVM
MasterOnFlag .usect ".variable", 1  ; a master AIC10 on board flag
IdentErrs    .usect ".variable", 1  ; AIC10 hw errors identified

MstCR1       .usect ".variable", 1  ; master AIC10 CR1 status
MstCR2       .usect ".variable", 1  ; master AIC10 CR2 status
MstCR3       .usect ".variable", 1  ; master AIC10 CR3 status
MstCR4       .usect ".variable", 1  ; master AIC10 CR4 status
SlvCR1       .usect ".variable", 1  ; slave AIC10 CR1 status
SlvCR2       .usect ".variable", 1  ; slave AIC10 CR2 status
SlvCR3       .usect ".variable", 1  ; slave AIC10 CR3 status
SlvCR4       .usect ".variable", 1  ; slave AIC10 CR4 status

************************************************************************
** external variables
************************************************************************
             .ref   LoopCount       ; main loop counter

************************************************************************
**  End of File -- InitAIC10.h
************************************************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -