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
#Digital Sidetone
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 |
Submit Documentation Feedback