| Motore di ricerca datesheet componenti elettronici |
|
DAC53XAXW Scheda tecnica(PDF) 47 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
DAC53XAXW Scheda tecnica(HTML) 47 Page - Texas Instruments |
|
47 / 88 page ![]() 6.5 Programming The DAC53xAxW are programmed through either a 3-wire SPI or 2-wire I2C interface. A 4-wire SPI mode is enabled by mapping the GPIO/SDO pin as SDO. The SPI readback operates at a lower SCLK than the standard SPI write operation. The type of interface is determined based on the first protocol to communicate after device power up. After the interface type is determined, the device ignores any change in the type while the device is on. The interface type can be changed after a power cycle. 6.5.1 SPI Programming Mode An SPI access cycle for DAC53xAxW is initiated by asserting the SYNC pin low. The serial clock, SCLK, can be a continuous or gated clock. SDI data are clocked on SCLK falling edges. The SPI frame for DAC53xAxW is 24 bits long. Therefore, the SYNC pin must stay low for at least 24 SCLK falling edges. The access cycle ends when the SYNC pin is deasserted high. If the access cycle contains less than the minimum clock edges, the communication is ignored. By default, the SDO function is not enabled (three-wire SPI). In the three-wire SPI mode, if the access cycle contains more than the minimum clock edges, only the first 24 bits are used by the device. When SYNC is high, the SCLK and SDI signals are blocked, and SDO becomes Hi-Z to allow data readback from other devices connected on the bus. Table 6-10 and Figure 6-14 describe the format for the 24-bit SPI access cycle. The first byte input to SDI is the instruction cycle. The instruction cycle identifies the request as a read or write command and the 7-bit address that is to be accessed. The last 16 bits in the cycle form the data cycle. Table 6-10. SPI Read/Write Access Cycle BIT FIELD DESCRIPTION 23 R/W Identifies the communication as a read or write command to the address register: R/W = 0 sets a write operation. R/W = 1 sets a read operation 22-16 A[6:0] Register address: specifies the register to be accessed during the read or write operation 15-0 DI[15:0] Data cycle bits: If a write command, the data cycle bits are the values to be written to the register with address A[6:0]. If a read command, the data cycle bits are don't care values. 1 24 8 9 D23 D16 D15 D0 Write command SYNC SCLK SDI SDO 1 24 8 9 D23 D16 D15 D0 Any command D23 D16 D15 D0 HiZ HiZ HiZ Write command echo Figure 6-14. SPI Write Cycle Read operations require that the SDO function is first enabled by setting the SDO-EN bit in the INTERFACE- CONFIG register. This configuration is called four-wire SPI. A read operation is initiated by issuing a read command access cycle. After the read command, a second access cycle must be issued to get the requested data. Table 6-11 and Figure 6-15 show the output data format. Data are clocked out on the SDO pin either on the falling edge or rising edge of SCLK according to the FSDO bit (see also Figure 5-3). Table 6-11. SDO Output Access Cycle BIT FIELD DESCRIPTION 23 R/W Echo R/W from previous access cycle 22-16 A[6:0] Echo register address from previous access cycle 15-0 DI[15:0] Readback data requested on previous access cycle www.ti.com DAC532A3W, DAC530A2W SLASFB3 – NOVEMBER 2023 Copyright © 2023 Texas Instruments Incorporated Submit Document Feedback 47 Product Folder Links: DAC532A3W DAC530A2W |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |