| Electronic Components Datasheet Search |
|
ADPD4000 Datasheet(PDF) 22 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADPD4000 Datasheet(HTML) 22 Page - Analog Devices |
|
22 / 82 page ![]() ADPD4000/ADPD4001 Data Sheet Rev. A | Page 22 of 82 HOST INTERFACE The ADPD4000/ADPD4001 provide two methods of communication with the host, a SPI port and I2C interface. The device also provides numerous FIFO, data register, error, and threshold status bits, each of which can be provided by an interrupt function from a GPIO, read from status registers, or appended as optional status bytes at the end of a FIFO packet. Interrupt Status Bits Data Register Interrupts The data interrupt status bits, INT_DATA_x for each time slot, are set every time the data registers for that time slot are updated. The state of the HOLD_REGS_x bit has no effect on the interrupt logic. FIFO Threshold Interrupt The FIFO threshold interrupt status bit, INT_FIFO_TH, is set when the number of bytes in the FIFO exceeds the value stored in the FIFO_TH register. The INT_FIFO_TH bit is cleared automatically when a FIFO read reduces the number of bytes below the value in the FIFO_TH register, which allows the user to set an appropriate data size for their host needs. Level Interrupts Two level interrupt status bits, INT_LEV0_x and INT_LEV1_x, provide an interrupt when the dark data or signal data values cross above or below a programmed threshold level. Two comparison circuits are available per time slot. The INT_LEV0_x or INT_LEV1_x status bits are set when the data register update meets the criteria set by the associated THRESH0_TYPE_x, THRESH0_DIR_x, THRESH0_CHAN_x settings, or by the associated THRESH1_TYPE_x, THRESH1_DIR_x, and THRESH1_CHAN_x settings. The Level 0 interrupt operates as follows. The user sets an 8-bit threshold value in the THRESH0_VALUE_x bit field for the corresponding time slot. This value is then shifted to the left by anywhere from 0 bits to 24 bits, specified by the setting of the THRESH0_SHIFT_x bit field. A comparison is then made between the shifted threshold value and the register chosen by the THRESH0_TYPE_x bit field and the THRESH0_CHAN_x bit. The INT_LEV0_x status bit is set if the selected data register meets the criteria set in the THRESH0_DIR_x bit field. The Level 1 interrupt operates in the same fashion. Clearing Interrupt Status Bits All status bits are set regardless of whether the status bit is routed to one of the interrupt outputs, Interrupt X or Interrupt Y. The status bits are independent of the interrupt enable bits. The status bits are always set by the corresponding event. The interrupt bits stay set until they are either manually or automatically cleared. The user can manually clear a given interrupt by writing a 1 to the matching interrupt status bit. In addition, the data interrupt status bits can be configured to clear automatically. When the INT_ACLEAR_DATA_x or INT_ACLEAR_FIFO bit is set, the appropriate interrupt status bit is automatically cleared when any matching data register or FIFO register is read. Automatic clearing of the interrupt status bits removes the need to manually clear these interrupts. Optional Status Bytes There is an option to append each data packet with status bits. This option is useful for hosts that cannot spare an interrupt channel to service. The status bytes can each be individually selected in the FIFO_STATUS_BYTES register. Each bit in the FIFO_ STATUS_BYTES register enables a status byte that is appended to the data packet in the FIFO. If any bit in the FIFO_STATUS_ BYTES register is set to 1, the byte that is appended to the data packet contains the status bits, as shown in Table 16. Table 16 shows the order, enable bit, and contents of each status byte. The 4-bit sequence number cycles from 0 to 15 and is incremented with wraparound every time the time slot sequence completes. This sequence number can also be made available bitwise on the GPIO pins. Table 16. FIFO Status Byte Order and Contents Byte Order Enable Bit Contents1 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 ENA_STAT_SUM 0 0 Any LEV1_x Any LEV0_x 4-bit sequence 1 ENA_STAT_D1 DATA_H DATA_G DATA_F DATA_E DATA_D DATA_C DATA_B DATA_A 2 ENA_STAT_D2 0 0 0 0 DATA_L DATA_K DATA_J DATA_I 3 ENA_STAT_L0 LEV0_H LEV0_G LEV0_F LEV0_E LEV0_D LEV0_C LEV0_B LEV0_A 4 ENA_STAT_L1 LEV1_H LEV1_G LEV1_F LEV1_E LEV1_D LEV1_C LEV1_B LEV1_A 5 ENA_STAT_LX LEV1_L LEV1_K LEV1_J LEV1_I LEV0_L LEV0_K LEV0_J LEV0_I 1 DATA_x refers to the data register interrupts for the corresponding time slot. LEV0_x and LEV1_x refer to Level 0 and Level 1 time slot interrupts, respectively, for Time Slot A through Time Slot L. |
|
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 |