| 数据搜索系统,热门电子元器件搜索 |
|
MAS9560 数据表(PDF) 16 Page - Micro Analog systems |
|
|
|||||||||||||||||||||||||||||
MAS9560 数据表(HTML) 16 Page - Micro Analog systems |
|
16 / 25 page ![]() 16 (25) DA9560.001 20 January, 2005 CONTROL INTERFACES MAS9560 registers (detailed description below) are controlled either via I 2C- or SPI bus. On-chip DAC data is written using I 2S-bus. Pin Bus Function MODE I 2C/SPI Select I 2C (MODE=1) or SPI (MODE=0) SCLK I 2C /SPI Serial Data Clock for I 2C and SPI SDI I 2C /SPI Serial Data I/O for I 2C and input for SPI SDO SPI Serial Data Output for SPI XCS SPI Chip Select for SPI (active low) DAI I 2S Serial Data input for I 2S WSI I 2S Frame Identification for I 2S CLI I 2S Serial Data Clock for I 2S ◆ I 2C Description I 2C – bus is selected by setting pin MODE = 1. I2C - bus is a 2-wire serial interface, so two lines, a serial data line (SDI) and serial clock line (SCLK), are required. MAS9560 data line is bi-directional for data acknowledge and transmit, but clock line is just a receiver, i.e., the clock is gotten from the master. Default state for both lines is high, since all devices connected on the bus form together an AND-function because of pull-up resistors. A master is controlling the bus, enabling clock and giving start and stop requests, so data transfer for MAS9560 is started with start-pulse given by a master device. As the master is changing SDI level from high to low while SCLK is high, this action is recognized as the start pulse. Stop pulse is similarly created: when SCLK is high SDI level is changed from low to high. During the data transition data line (SDI) level may not change when clock (SCLK) is high, because this is interpreted either as start or stop pulse. Data is transmitted in bytes, one byte is 8-bit long. Several bytes can be sent one by one until the master gives stop signal. I 2C data format is shown in table 1 below. The first byte in I 2C data after start pulse specifies unique device code and transfer mode. Device code is specified by 7 bits and is 1001 101 for MAS9560, last (8th) bit selects read/write-mode (r/w): high for read and low for write. After first byte is read, MAS9560 acknowledges it by pulling data line (SDI) down, keeping data line down and releasing the line only after the master driven clock line (SCLK) is again pulled down. After the device specific code MAS9560 is set as receiver for data as described above, sub-address is given as a second byte. This addresses the initial register number, and the following byte is the data which is written to the register. In case the fourth byte is written (and no stop bit is given), MAS9560 changes to increment mode and this fourth byte is written to a following register. All registers can be written by one start-stop sequence. On-chip incremental counter is just 4-bits long. Incrementing stops at address 0x0F to prevent overflow. In write mode MAS9560 gives acknowledge pulse after every byte. I 2C bus can also be used to read register values. In this case a sequence is as follows: First byte 1001 1010 is written after start pulse (MAS9560 acknowledges) after which register address is given, which is acknowledged by device. Next a new start pulse is given by the master and byte 1001 1011 is acknowledged by MAS9560, after which register (specified in initial sequence) data is written to data bus (MSB first). After that MAS9560 gives NAK (no acknowledge) signal which continues until ACK (acknowledge) or STOP signal is given by the master. In case ACK signal is given, the incremental mode of MAS9560 is enabled and next register data is written to SDI bus by MAS9560. The data is again followed by NAK signal, and the reading sequence can be repeated or stopped. Values of unspecified bits in registers with less than 8-bits are not set to any initial value, and their value can vary from time to time. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |