| Electronic Components Datasheet Search |
|
CDB4396 Datasheet(PDF) 20 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
CDB4396 Datasheet(HTML) 20 Page - Cirrus Logic |
|
20 / 28 page ![]() CS4396 20 DS288PP1 6.0 CONTROL PORT INTERFACE The control port is used to load all the internal settings of the CS4396. The operation of the control port may be completely asynchronous to the audio sample rate. However, to avoid potential interference prob- lems, the control port pins should remain static if no operation is required. The control port has 2 modes: SPI and I2C, with the CS4396 operating as a slave device in both modes. If I2C operation is desired, AD0/CS should be tied to VD or DGND. If the CS4396 ever detects a high to low transition on AD0/CS after power-up, SPI mode will be selected. 6.1 SPI Mode In SPI mode, CS is the CS4396 chip select signal, CCLK is the control port bit clock, CDIN is the input data line from the microcontroller, CDOUT is the data output and the chip address is 0010000. The data is clocked on the rising edge of CCLK. Figure 5 shows the operation of the control port in SPI mode. To write to a register, bring CS low. The first 7 bits on CDIN form the chip address, and must be 0010000. The eighth bit is a read/write indicator (R/W). The next 8 bits form the Memory Address Pointer (MAP), which is set to 01h. The next 8 bits are the data which will be placed into the register designated by the MAP. 6.2 I2C Mode In I2C mode, SDA is a bi-directional data line. Data is clocked into and out of the part by the clock, SCL, with the clock to data relationship as shown in Figure 2. There is no CS pin. Pins AD0 and AD1 form the partial chip address and should be tied to VD or DGND as required. The 7-bit address field, which is the first byte sent to the CS4396, must be 00100(AD1)(AD0) where (AD1) and (AD0) match the setting of the AD0 and AD1 pins. The eighth bit of the address byte is the R/W bit (high for a read, low for a write). If the operation is a write, the next byte is the Memory Address Pointer, MAP, which selects the register to be read or written. The MAP is then followed by the data to be written. If the operation is a read, then the contents of the register pointed to by the MAP will be output after the chip address. For more information on I2C, please see “The I2C-Bus Specification: Version 2.0”, listed in the References section. Memory Address Pointer (MAP) INCR (Auto MAP Increment Enable) MAP0-2 (Memory Address Pointer) Default = ‘0’ Default = ‘001’ 0 - Disabled 1 - Enabled 765 4321 0 INCR Reserved Reserved Reserved Reserved MAP2 MAP1 MAP0 000 0000 1 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |