Datasheet
TLV320AIC3120
www.ti.com
SLAS653A –FEBRUARY 2010–REVISED MAY 2012
4. Program ADC
(a) Set register page to 0
(b) Power up ADC channel
(c) Unmute digital volume control and set gain
A detailed example can be found in Section 5.5.9.
5.5.9 Example Register Setup to Record Analog Data Through ADC to Digital Out
A typical EVM I
2
C register control script follows to show how to set up the TLV320AIC3120 ADC in record
mode with f
S
= 44.1 kHz and MCLK = 11.2896 MHz.
# Key: w 30 XX YY ==> write to I2C address 0x30, to register 0xXX, data 0xYY
# # ==> comment delimiter
#
# The following list gives an example sequence of items that must be executed in the time
# between powering the device up and reading data from the device. Note that there are
# other valid sequences depending on which features are used.
#
# 1. Define starting point:
# (a) Power up applicable external hardware power supplies
# (b) Set register page to 0
#
w 30 00 00
# (c) Initiate SW Reset
#
w 30 01 01
#
# 2. Program Clock Settings
# (a) Program PLL clock dividers P,J,D,R (if PLL is necessary)
#
# PLL_clkin = MCLK, codec_clkin = PLL_CLK,
# P=1, R=1, J=8, D=0000
w 30 04 03
w 30 05 81
w 30 06 08
w 30 07 00
w 30 08 00
#
# (b) Power up PLL (if PLL is necessary)
w 30 05 91
# (c) Program and power up NADC
#
# NADC = 2, divider powered on
w 30 12 82
#
# (d) Program and power up MADC
#
# MADC = 8, divider powered on
w 30 13 88
#
# (e) Program OSR value
#
# AOSR = 128
w 30 14 80
#
# (f) Program I2S word length as required (16, 20, 24, 32 bits)
#
# mode is i2s, wordlength is 16, slave mode (default)
w 30 1B 00
#
# (g) Program the processing block to be used
#
# RB_R4
w 30 3d 04
#
Copyright © 2010–2012, Texas Instruments Incorporated APPLICATION INFORMATION 41
Submit Documentation Feedback
Product Folder Link(s): TLV320AIC3120