SBASA30 December 2020 PCM6480-Q1
PRODUCTION DATA
This section provides a typical EVM I2C register control script that shows how to set up the PCM6480-Q1 in a 4-channel digital PDM input and a 4-channel analog microphone record mode with differential inputs.
#
# Key: w 98 XX YY ==> write to I2C address 0x98, 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.
#
# Refer to the PCM6xx0-Q1 EVM user guide for key jumper settings and audio connections:
#
# 4-channel differential analog input : INP1/INM1 - Ch1, INP2/INM2 - Ch2, INP3/INM3 - Ch3 and INP4/INM4 - Ch4
# High swing mode enabled
# 4-channel digital PDM input : PDMDIN1_GPI1 - Ch5 and Ch6 and PDMDIN2_GPI2 - Ch7 and Ch8
# FSYNC = 44.1 kHz (Output Data Sample Rate), BCLK = 11.2896 MHz (BCLK/FSYNC = 256)
################################################################
#
#
# Power up IOVDD, AVDD and BSTVDD power supplies keeping SHDNZ pin voltage LOW
# Wait for IOVDD, AVDD and BSTVDD power supplies to settle to steady state operating voltage range.
# Release SHDNZ to HIGH.
# Wait for 1ms.
#
# Wake-up device by I2C write into P0_R2 using internal AREG
w 90 02 81
#
# Powerdown MICBIAS and ADC channels on fault detection (overtemperature, and so forth)
w 90 28 10
#
# Configure channel 1 DC-coupled, differential microphone input with high-swing mode
w 90 3C 18
#
# Configure channel 2 DC-coupled, differential microphone input with high-swing mode
w 90 41 18
#
# Configure channel 3 DC-coupled, differential microphone input with high-swing mode
w 90 46 18
#
# Configure channel 4 DC-coupled, differential microphone input with high-swing mode
w 90 4B 18
#
# Configure CH5_INSRC as Digital PDM Input by I2C write into P0_R80
w 98 50 40
#
# Configure CH6_INSRC as Digital PDM Input by I2C write into P0_R85
w 98 55 40
#
# Configure CH7_INSRC as Digital PDM Input by I2C write into P0_R90
w 98 5A 40
#
# Configure CH8_INSRC as Digital PDM Input by I2C write into P0_R95
w 98 5F 40
#
# Configure PDMCLK1_GPIO2 as PDMCLK by I2C write into P0_R34
w 98 22 41
#
# Configure PDMCLK1_GPIO3 as PDMCLK by I2C write into P0_R35
w 98 23 41
#
# Configure PDMDIN1_GPI1 as PDMDIN1 by I2C write into P0_R36
w 98 24 E0
#
# Configure PDMDIN2_GPI2 as PDMDIN2 by I2C write into P0_R37
w 98 25 F0
#
# Enable input channel 1 to channel 4 by I2C write into P0_R115
w 90 73 FF
#
# Enable ASI output channel 1 to channel 4 slots by I2C write into P0_R116
w 90 74 FF
#
# Power-up ADC,MICBIAS and PLL by I2C write into P0_R117
w 90 75 E0
#
# Apply FSYNC = 44.1 kHz and BCLK = 11.2896 MHz and
# Start recording data by host on ASI bus with TDM protocol 32-bit channel word length
#
# Wait for 10 ms.
# Enable diagnostics for channel 1 to channel 4 by I2C write into P0_R100
w 90 64 F0
#