| Electronic Components Datasheet Search |
|
MCP3462T-E/ST Datasheet(PDF) 61 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP3462T-E/ST Datasheet(HTML) 61 Page - Microchip Technology |
|
61 / 108 page ![]() 2019-2021 Microchip Technology Inc. DS20006180D-page 61 MCP3461/2/4 6.2.5 FAST COMMANDS DESCRIPTION There are five possible Fast commands available in the MCP3461/2/4 devices. For each command, only the COMMAND byte has to be provided on the SPI port and the command will be executed right after the COMMAND byte has been clocked. The Fast command codes are detailed in Table 6-1. All undefined command address codes for Fast commands will be ignored and will have no effect. SDO will stay in high-impedance after the COMMAND byte for a Fast command until a CS rising edge is provided. The Fast commands can be enabled or disabled by placing the EN_FASTCMD bit in the IRQ register to ‘1’ (default). Disabling Fast com- mands can increase the security of the device because it can avoid unwanted Fast commands to be executed, which can be useful in harsh environments. The ADC Start/Restart command (command address: ‘1010’) overwrites the ADC_MODE[1:0] bits to ‘11’, creating a conversion start (or a restart if the conversion was already running). The ADC Standby mode command (command address: ‘1011’) overwrites the ADC_MODE[1:0] bits to ‘10’, and is therefore, placing the ADC in Standby mode. The ADC Shutdown mode command (command address: ‘1100’) overwrites the ADC_MODE[1:0] bits to ‘00’, and is therefore, placing the ADC in ADC Shutdown mode. The Full Shutdown mode command (command address: ‘1101’) is overwriting the CONFIG0 register to 0x00h, which places the device in full ADC Shutdown mode. (see Section 5.9 “Low-Power Shutdown Modes” for a full description of this mode). The Full Reset command (command address: ‘1110’) resets the whole device and places the whole register map into its default state condition, including the non-writable registers. The only difference with a POR event is that the POR_STATUS bit in the IRQ register is set to ‘1’ after a full Reset and is reset to ‘0’ after a POR event. The Full Reset command is the only way with POR to clear the ADC Data Output register to its default value. 6.2.6 DEVICE ADDRESS AND STATUS BYTE DURING CONTROL BYTE During the clocking of the COMMAND byte on the SDI pin, the SDO pin displays a STATUS byte to help the user to quickly retrieve interrupt status information. The STATUS byte permits fast polling of the different interrupts without having to read the IRQ register. How- ever, it requires a MCU that can communicate in Full-Duplex mode (SDI and SDO are clocked at the same time). For MCUs that are only half-duplex, and for devices that do not incorporate a separate IRQ pin, or for applications that do not connect the existing IRQ pin, the polling of the IRQ status can still be done by reading the IRQ register continuously. The STATUS byte structure is described in Figure 6-2. FIGURE 6-2: STATUS Byte. The first two bits are always equal to ‘0’ and SDO toggles to ‘0’ as soon as a CS pin falling edge is performed. This allows the application of multiple devices with different device addresses sharing one common SPI bus and avoiding bus contention during STATUS byte clocking. The next three bits of the STATUS byte give a confirma- tion (Acknowledge) of the hard-coded device address. If the device address of the COMMAND byte and the internal device address of the chip match, these three bits will be transmitted and they are equal to: • STAT[5:4] = DEV_ADDR[1:0] • STAT[3] = DEV_ADDR[0] The STAT[3] bit permits the user to distinguish the SDO output from a High-Impedance state (device address is not matched) as the bits, STAT[4] and STAT[3], are complementary and will induce a toggle on the SDO output. If the two device address bits are not matched with the internally hard-coded device address bits, SDO is maintained in a High-Impedance state during the rest of the communication and the command is ignored. This behavior avoids potential bus contention errors if multiple devices with different device addresses are sharing the same SPI bus, as after the transmission of the first two bits, only one device is responding to the command (all other devices with non-matching device addresses have SDO kept in high-impedance). In this case, the user needs to abort the communication (CS rising edge) to be able to perform another command. The three LSbs of the STATUS byte are the three interrupt status bits: • STAT[2] = DR_STATUS ADC (Data Ready Interrupt Status) • STAT[1] = CRCCFG_STATUS (CRC Checksum Error on the Register Map Interrupt Status) • STAT[0] = POR_STATUS (POR Interrupt Status) STAT[7] 0 STAT[6] STAT[5] STAT[4] STAT[3] STAT[2] STAT[1] STAT[0] 0 DEV_ADDR [1] DEV_ADDR [0] DEV_ADDR [0] DR_ST ATUS CRCCFG_ ST ATUS POR_ST ATUS Device Address Acknowledge bits Interrupt Status bits |
|
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 |