Texas Instruments TLV320AIC12KEVMB-K appendix Here is an example of a script

Page 28

Kit Operation

www.ti.com

Here is an example of a script:

#TLV320AIC12K/14K

#This configuration allows playing audio to the DAC from any media player on

#a computer and recording from the ADC on audio recording software. Pin

#MICIN is configured as the input. The input can be heard via OUTP1/M1 and

#OUTP2/P3 due to the digital sidetone. Audio files played on the computer

#can also be heard via those outputs.

#

#Hardware reset codec using TAS1020B's GPIO pin P3.5 i gpio

w 00 00 3F

#Delay has to be at least 6 MCLK cycles ~ 540ns

d 1

w 00 00 7F

#

#I2C interface i i2cstd

#reg 03 - Software reset w 80 03 21

#reg 01 - Clear ADC and DAC overflow flags. r 80 01 01

#reg 02 - Turbo Mode

w 80 01 A0

#

#reg 04 - Set clock divider values (4A and 4B). P=8, M=1, N=4. w 80 04 20

w 80 04 81

#reg 05 - 5B -> DAC PGA=–32dB, 5C -> Input Buffer Gain=24dB,

#Digital Sidetone Gain=–3dB. Defaults used for 5A and 5D.

w 80 05 4A w 80 05 83

#

#reg 06 - MICIN with external common mode, OUTP2/P3 drivers on. w 80 06 1C

#reg 01 - Continuous data transfer mode, 16 bits.

w 80 01 41

28

TLV320AIC12KEVMB-K and TLV320AIC14KEVMB-K User's Guide

SLAU229B–October 2007–Revised August 2008

Submit Documentation Feedback

Image 28
Contents SN74LVC125A EVM-Compatible Device Data SheetsSN74LVC1G07 Power Supply Pinout List of Jumpers USB-MODEVM SW2 Settings Features EVM OverviewIntroduction Analog InterfaceDigital Interface Alternate Analog ConnectorsDigital Interface Pinout AIC12K/14K Reset SCLSDA SclkPower Supplies USB-MODEVM Interface PowerPower Supply Pinout Stand-Alone OperationDefault Jumper Locations TLV320AIC12KEVMB-K/14KEVMB-K Block DiagramAnalog Input Analog OutputTLV320AIC12KEVMB-K/14KEVMB-K Block Diagram Installation USB-MODEVM SW2 SettingsUSB-MODEVM Interface Board Program DescriptionIndicators and Main Screen Controls Information TabInformation Tab Preset Configurations Tab Sounds and Audio Devices PropertiesPreset Configurations Device Controls TabDevice Controls Tab Control Register 1 Tab Control Register 1 Tab Control Register 2 Tab Control Register 2 Tab Control Register 3 Tab Control Register 4 Tab Control Register 5 Tab Command Line Interface Tab Command Line Interface Tab File Menu USB Control Endpoint Hidsetreport Request USB-MODEVM ProtocolSetreport Data Packet Configuration 0x01 0x80 0x02 Gpio Capability Gpio Pin AssignmentsWriting Scripts I2cstdI2cfast Spi8#example script i i2cfast 80 01 45 A0 r 80 01 Here is an example of a script EVM Bill of Materials TLV320AIC12KEVMB/14KEVMB Bill of MaterialsUSB-MODEVM Bill of Materials JMP1-JMP4 JMP8-JMP14JMP5, JMP6 JMP7Appendix a TLV320AIC12KEVMB/14KEVMB Schematic Schematic diagram is provided as a referenceTLV320AIC12K14KDBTEVMB Ti a Appendix B USB-MODEVM Schematic Untitled USB-MODEVM Interface Rick Downs FCC Warnings Evaluation BOARD/KIT Important NoticeDSP Rfid