| Electronic Components Datasheet Search |
|
ADFS5758 Datasheet(PDF) 38 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADFS5758 Datasheet(HTML) 38 Page - Analog Devices |
|
38 / 75 page ![]() ADFS5758 Data Sheet Rev. 0 | Page 38 of 75 SPI INTERFACE AND DIAGNOSTICS The ADFS5758 is controlled over a 4-wire serial interface with an 8-bit cyclic redundancy check (CRC-8) enabled by default. The input shift register is 32 bits wide and data is loaded into the device MSB first under the control of a serial clock input, SCLK. Data is clocked in on the falling edge of SCLK. If CRC is disabled, the serial interface is reduced to 24 bits. A 32-bit frame is still accepted but the last eight bits are ignored. Table 12. Writing to a Register (CRC Enabled) MSB LSB D31 D30:D29 D28:D24 D23:D8 D7:D0 Slip bit ADFS5758 address Register address Data CRC As shown in Table 12, every SPI frame contains two ADFS5758 address bits. These bits must match the hardware ADFS5758 address pins (AD0 and AD1) for a particular device to accept the SPI frame on the bus. SPI Cyclic Redundancy Check To verify that data has been received correctly in noisy environ- ments, the ADFS5758 offers the option of a CRC based on an 8-bit cyclic redundancy check (CRC-8). The device controlling the ADFS5758 generates an 8-bit frame check sequence using the following polynomial: C(x) = x8 + x2 + x1 + 1 This sequence is added to the end of the data-word, and 32 bits are sent to the ADFS5758 before taking SYNC high. If the SPI_CRC_EN bit is set high (default state), the user must supply a frame of exactly 32 bits wide that contains the 24 data bits and 8-bit CRC. If the CRC check is valid, the data is written to the selected register. If the CRC check fails, the FAULT pin goes low and the FAULT pin status and the digital diagnostic status bit (DIG_DIAG_STATUS) in the status register are set. A subsequent readback of the DIGITAL_DIAG_RESULTS register reveals that the SPI_CRC_ERR bit is also set. This register is a per bit, write to clear register (see the Sticky Diagnostic Results Bits section). Therefore, the SPI_CRC_ERR bit can be cleared by writing a 1 to Bit D0 of the DIGITAL_DIAG_RESULTS register. Doing so clears the SPI_CRC_ERROR bit and causes the FAULT pin to return high (assuming that there are no other active faults). When configuring the FAULT_PIN_CONFIG register, the user can decide whether the SPI CRC error affects the FAULT pin. See the FAULT Pin Configuration Register section for further details. The SPI CRC feature can be used for both the transmission and receipt of data packets. SDI SYNC SCLK UPDATE ON SYNC HIGH MSB D23 LSB D0 24-BIT DATA 24-BIT DATA TRANSFER—NO CRC ERROR CHECKING SDI FAULT SYNC SCLK UPDATE ON SYNC HIGH ONLY IF CRC CHECK PASSED FAULT PIN GOES LOW IF CRC CHECK FAILS MSB D31 LSB D8 D7 D0 24-BIT DATA 8-BIT CRC 32-BIT DATA TRANSFER WITH CRC ERROR CHECKING Figure 80. CRC Timing (Assume LDAC = 0) SPI Interface Slip Bit A further enhancement to the robustness of the interface is the addition of the slip bit. The MSB of the SPI frame must equal the inverse of MSB − 1 for the frame to be considered valid. If an incorrect slip bit is detected, the data is ignored and the SLIPBIT_ERR bit in the DIGITAL_DIAG_RESULTS register is asserted. SPI Interface SCLK Count Feature An SCLK count feature is also built into the SPI diagnostics, meaning that only SPI frames with exactly 32 SCLK falling edges (24 or 32 if SPI CRC is enabled) are accepted by the interface as a valid write. SPI frames of lengths other than these are ignored and the SCLK_COUNT_ERR flag asserts in the DIGITAL_DIAG_RESULTS register. Readback Modes The ADFS5758 offers four readback modes, as follows: • Two-stage readback mode • Autostatus readback mode • Shared SYNC autostatus readback mode • Echo mode The two stage readback consists of a write to a dedicated register, TWO_STAGE_READBACK_SELECT, to select the register location to be read back. This write is followed by a no operation (NOP) command, during which the contents of the selected register are available on SDO. Table 13. SDO Contents for Read Operation MSB LSB [D31:D30] D29 [D28:24] [D23:D8] [D7:D0] 0b10 FAULT pin status Register address Data CRC |
|
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 |