Texas Instruments TAS3002 manual Operation, 6.3.1Write Cycle Example, 1. I 2C Protocol Definitions

Page 30
Table 6−1. I 2C Protocol Definitions

Table 6−1 lists the definitions used by the I 2C protocol.

 

Table 6−1. I 2C Protocol Definitions

DEFINITION

DESCRIPTION

 

 

Transmitter

The device that sends data

 

 

Receiver

The device that receives data

 

 

Master

The device that initiates a transfer, generates clock signals, and terminates the transfer

 

 

Slave

The device addressed by the master

 

 

Multimaster

More than one master can attempt to control the bus at the same time without corrupting the message.

 

 

Arbitration

Procedure to ensure the message is not corrupted when two masters attempt to control the bus.

 

 

Synchronization

Procedure to synchronize the clock signals of two or more devices

6.3 Operation

The 7-bit address for the TAS3002 device is 0110 10X R/W where X is a programmable address bit, set by terminal 7 (CS1). Combining CS1 and the R/W bit, the TAS3002 device can respond to four different I2C addresses (two read and two write). These two addresses are licensed I2C addresses that do not conflict with other licensed I2C audio devices. In addition to the 7-bit device address, subaddresses direct communication to the proper memory location within the device. A complete table of subaddresses and control registers is provided in Appendix A. For example, to change bass to 10-dB gain, Section 6.3.1 shows the data that is written to the I2C port:

Table 6−2. I 2C Address Byte Table

I2C ADDRESS BYTE

A6 − A1

CS1 (A0)

 

 

 

R/W

 

68h

011010

0

0

 

 

 

 

 

 

69h

011010

0

1

 

 

 

 

 

 

6Ah

011010

1

0

 

 

 

 

 

 

6Bh

011010

1

1

 

 

 

 

 

 

 

6.3.1Write Cycle Example

Start

Slave Address

R/W

A

Subaddress

A

Data

A

Stop

 

 

FUNCTION

DESCRIPTION

 

 

 

 

Start

Start condition as defined in I2C

Slave address

0110100 (CS1 = 0)

 

 

 

 

 

0 (write)

R/W

 

 

 

A

Acknowledgement as defined in I2C (slave)

Subaddress (treble control register)

0000 0101

 

 

Data (0 dB gain)

0111 0010

 

 

Stop

Stop condition as defined in I2C

NOTE: Table is for serial data (SDA); serial clock (SCL) is not shown but conditions apply as well.

Whenever writing to a subaddress, the correct number of data bytes must follow in order to complete the write cycle. For example, if the volume control register with subaddress 04h is written to, six bytes of data must follow; otherwise, the cycle is incomplete and errors occur.

6−2

Image 30
Contents Digital Audio Processor With Codec Data ManualTAS3002 2001IMPORTANT NOTICE 1.2Features 1 Introduction1.1 Description 1.3Functional Block Diagram Figure 1−1. TAS3002 Block Diagram Figure 1−2. TAS3002 Terminal Assignments 1.4 Terminal Assignments1.5 Terminal Functions Table 1−1. TAS3002 Terminal FunctionsTable 1−1. TAS3002 Terminal Functions Continued Page 2 Audio Data Formats 2.1 Serial Interface FormatsTable 2−1. Serial Interface Options … … … … … … … …2.2 Digital Output Modes … … … …… … … … 2.2.2I2S Serial-InterfaceFormatFigure 2−2. I 2S Serial-InterfaceFormat … … … …… … … … 2.2.3MSB-Left-Justified, Serial-InterfaceFormat… … … … … … … …UNIT 2.3 Switching CharacteristicsPARAMETER tcSCLK SCLK LRCLK tdSDOUT SDOUT1 SDOUT2 SDOUT0Page 3.2 Analog Output 3 Analog Input/Output3.1 Analog Input 3.2.1Direct Analog Output3.2.2Analog Output With Gain Figure 3−2. VCOM Decoupling NetworkFigure 3−3. Analog Output With External Amplifier 3.2.3Reference Voltage Filter TAS3002Figure 3−4. TAS3002 Reference Voltage Filter Page 4.2 Software Soft Mute 4.1 Soft Volume Update4 Audio Control/Enhancement Functions 4.3 Input Mixer Control4.4 Mono Mixer Control 4.5 Treble ControlFigure 4−1. TAS3002 Mixer Function 4.6 Bass Control 4.7 De-EmphasisMode DMFigure 4−2. De-EmphasisMode Frequency Response 4.8 Analog Control Register 40h Table 4−1. Analog Control Register Description4.9.2Loudness Gain 4.9 Dynamic Loudness Contour4.9.1Loudness Biquads 4.9.3Loudness Contour Operation4.10 Dynamic Range Compression/Expansion DRCE 4.11 AllPass FunctionTable 4−2. Main Control Register 1 Description 4.12 Main Control Register 1 01h4.13 Main Control Register 2 43h Table 4−3. Main Control Register 2 DescriptionPage 5.1 Biquad Block Figure 5−1. Biquad Cascade Configuration5 Filter Processor 5.1.1Filter CoefficientsPage 6.2 I2C Protocol 6 I2C Serial Control Interface6.1 Introduction Figure 6−1. Typical I 2C Data Transfer SequenceTable 6−1. I 2C Protocol Definitions 6.3 Operation6.3.1Write Cycle Example Table 6−2. I 2C Address Byte Table6.3.2TAS3002 I2C Readback Example 6.3.3I2C Wait States6.4.2Write Byte Protocol 6.4 SMBus Operation6.4.1Block Write Protocol Table 6−3. I 2C Wait States6.4.3Wait States 6.4.4TAS3002 SMBus ReadbackPage 7.2.2Reset 7.2 Power-Up/Power-DownReset7.2.1Power-UpSequence 7 Microcontroller Operation7.2.4Fast Load Mode 7.2.3Reset CircuitFigure 7−1. TAS3002 Reset Circuit TAS30027.3 Power-DownMode 7.2.5Codec Reset7.4 Test Mode 7.3.1Power-DownTiming SequenceFigure 7−2. Power-DownTiming Sequence 7.5 Internal Interface7.6.2GPI Architecture Table 7−1. GPI Terminal ProgrammingStart Power Up Initialize Default EEPROM Figure 7−3. Internal Interface Flow ChartRestore Volume and MCR Slave Write GPI Power Down7.7 External EEPROM Memory Maps Table 7−2. 512-ByteEEPROM Memory Map 2.0 ChannelsFUNCTION ADDRESSBYTE NUMBER TAS3002FUNCTION TAS3002 ADDRESSNUMBER CATEGORYFUNCTION TAS3002 ADDRESSNUMBER CATEGORY8 Electrical Characteristics Static Digital Specifications8.2 Recommended Operating Conditions Figure 8−1. ADC Digital Filter Characteristics 8.4 ADC Digital FilterFigure 8−4. ADC High-PassFilter Characteristics 8.5 Analog-to-DigitalConverter8.6 Input Multiplexer 8.7 DAC Interpolation Filter8.8 Digital-to-AnalogConverter 8.9 DAC Output Performance Data8.10 I2C Serial Port Timing Characteristics Figure 8−7. I 2C Bus TimingTAS3002 9 System DiagramsFigure 9−1. Stereo Application ClockTAS3001 Figure 9−2. TAS3002 Device, 2.1 ChannelsTAS3002 10 Mechanical Information PFB S-PQFP-G48PLASTIC QUAD FLATPACK 10−2