This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

[FAQ] TAS2563: I2C & SPI Setup (Not via USB)

Intellectual 805 points

Replies: 1

Views: 29

Part Number: TAS2563

TAS2563EVM provides the option to use external I2C and SPI input aside from the default USB control. This post list some of the common configuration for external I2C and SPI communication as a quick reference. Note that each step listed instructions for two different setup: For TAS2563EVM and For Device Pin. 

I2C Mode Setup (NOT via USB):

Step 1:

    • For TAS2563EVM: Choose I2C by shorting jumper J18 to "I2C"
    • For Device Pin (Application Schematic): Set SPII2CZ_MISO pin to ground

Step 2:

    • For TAS2563EVM: Use a jumper to set I2C address in J19, remove I2C_Sel jumper on PPC3 – MB for external(non-USB) I2C communication 
    • For Device Pin (Application Schematic): Set I2C address according to Table 3, page 25 of Datasheet. (Note: ADDR_SPICLK Pin should be pulled to IOVDD. Default I2C address is 0x98 (8 bits) or 0X4C (7 bits))

Step 3:

    • For TAS2563EVM: N/A
    • For Device Pin (Application Schematic): Use external pull-up resistors for SDA and SCL pins. (Note: Use Table 4, page 26 of Datasheet for I2C mode of operations and recommended RC values)

I2C Command Syntax:

Interface Syntax: I [interface]

Register Write Syntax: w [I2C Address] [Register] [Data]

Register Read Syntax: r [I2C Address] [Register] [Read Amount]

Delay Syntax: d [delay time]

Breakpoint Syntax: b [“String”]

Wait for Flag Syntax: f [I2C Address] [Register] [Data]

Example:

w 98 00 00 #enter page 0
w 98 7f 00 #enter book 0
r 98 02 01 #read pwr_ctrl reg
w 98 02 01 #write pwr_ctrl reg to mute device

d 1 #Delay for 1mS

w 98 00 00 #enter page 0
w 98 7f 00 #enter book 0
r 98 7e 01 #read checksum

SPI Mode Setup:

Step 1:

    • For TAS2563EVM:: Choose SPI mode by shorting jumper J18 to "SPI" on TAS2563EVM and remove SPI_SEL jumper on PPC3-EVM-MB
    • For Device Pin (Application Schematic):  Pull SPII2CZ_MISO pin to IOVDD using a resistor

Terminals conventional naming:

SCL_SELZ -> SS

ADDR_SPICLK -> SCLK

SPII2CZ_MISO -> MISO

SDA_MOSI -> MOSI

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.