| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
MCP3464 bảng dữ liệu(PDF) 59 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP3464 bảng dữ liệu(HTML) 59 Page - Microchip Technology |
|
59 / 108 page ![]() 2019-2021 Microchip Technology Inc. DS20006180D-page 59 MCP3461/2/4 6.0 SPI SERIAL INTERFACE AND DEVICE OPERATION 6.1 Overview The MCP3461/2/4 devices use an SPI interface for reading and writing the internal registers. The SPI interface includes a four-wire (CS, SCK, SDI, SDO) serial SPI interface that is compatible with SPI Modes 0,0 and 1,1. Data are clocked out of the device on the falling edge of SCK and data are clocked into the device on the rising edge of SCK. In these modes, the SCK clock can Idle either high (1,1) or low (0,0). The digital interface is asynchronous with the MCLK clock that controls the ADC sampling and digital filtering. All digital input pins are Schmitt Triggered to avoid system noise perturbations on the communications. The SPI interface is maintained in a Reset state during POR. Each SPI communication starts with a CS falling edge and stops with the CS rising edge. Each SPI communi- cation is independent. When CS is logic high, SDO is in high-impedance; the transitions on SCK and SDI have no effect. Changing from SPI Mode 1,1 to an SPI Mode 0,0 and vice-versa is possible and must be done while the CS pin is logic high. Any CS rising edge clears the communication and resets the SPI digital interface. See Figure 1-1 for the SPI timing details. The MCP3461/2/4 digital interface is capable of handling various Continuous Read and Write modes, which allows for ADC data streaming or full register map writing within only one communication (and there- fore, with only one unique COMMAND byte). It also includes single-byte Fast commands that allow faster access to common and useful configurations. The device does not include a Master Reset pin, but it includes an SPI Fast command to be able to fully reset the part at any time and place it back in a default configuration. The device family also includes advanced security features to secure communication and alert users of unwanted Write commands which change the desired configuration. To secure the entire configuration of the device, the device includes an 8-bit lock code (LOCK[7:0]), which blocks all write commands to the full register map if the value of the lock code is not equal to a defined password (0xA5). The user can protect its configuration by changing the LOCK[7:0] value to 0x00 after full programming, so that any unwanted Write command will not result in a change in the configuration. Each SPI read communication can be secured through a selectable CRC-16 checksum provided on the SDO pin at the end of every communi- cation sequence. This checksum computation is compatible with the DMA CRC hardware of the PIC24 and PIC32 MCUs, as well as many other MCU refer- ences, resulting in no additional overhead for the added security. Once the part is locked (write-protected), an additional checksum calculation is also running continuously in the background to ensure the integrity of the full regis- ter map. All writable registers of the register map are processed through a CRC-16 calculation engine and give a CRC-16 checksum that depends on the configuration. This checksum is readable from the CRC register and updated at all times when MCLK is running. If a change in this checksum happens, a CRC interrupt generates a flag to warn the user that the configuration has been corrupted. The MCP3461/2/4 devices also include additional digital signal pins, such as a dedicated IRQ interrupt output pin and a Master Clock (MCLK) input/output pin, which allow easier synchronization and faster interrupt handling, facilitating the implementation of the device in many different applications. 6.2 SPI Communication Structure The MCP3461/2/4 interface has a simple communica- tion structure. Every communication starts with a CS falling edge and stops with a CS rising edge. After the communication start, the communication is always started by the COMMAND byte (8 bits) clocking on the SDI input. The COMMAND byte defines the command that will be executed by the digital interface. It includes the device address, the register address bits and the command-type bits. The COMMAND byte is typically followed by data bytes clocked on SDI if the command type is a write, and on SDO if the command type is a read. The COMMAND byte can also define a Fast command, in which case, it is not followed by any other byte. The following sub- sections detail the COMMAND byte structure and all possible commands. During the COMMAND byte clocking on SDI, a STATUS byte is also propagated on the SDO output to enable easy polling of the device status. During this time, the interface is full-duplex, but the part can still be used by MCUs handling only half-duplex communications if the STATUS byte is ignored. 6.2.1 COMMAND BYTE STRUCTURE The COMMAND byte fully defines the command that is executed by the part. This byte is divided into three parts: the Device Address bits (CMD[7:6]), the Com- mand Address bits (CMD[5:2]) and the Command Type bits (CMD[1:0]). A representation of this COMMAND byte is available in Figure 6-1. FIGURE 6-1: COMMAND Byte. CMD[7] Device Address Bits CMD[6] CMD[5] CMD[4] CMD[3] CMD[2] CMD[1] CMD[0] Register Address / Fast Command bits Command Type Bits |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |