| Electronic Components Datasheet Search |
|
AD5592R Datasheet(PDF) 27 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD5592R Datasheet(HTML) 27 Page - Analog Devices |
|
27 / 42 page ![]() Data Sheet AD5592R Rev. C | Page 27 of 42 CONFIGURING THE AD5592R/AD5592R-1 The AD5592R/AD5592R-1 I/Ox pins are configured by writing to a series of configuration registers. The control registers are accessed when the MSB of a serial write is 0, as shown in Table 13. The control register map for the AD5592R/AD5592R-1 is shown in Table 14. At power-up, the I/Ox pins are configured as 85 kΩ pull-down resistors connected to GND. The input/output channels of the AD5592R/AD5592R-1 can be configured to operate as DAC outputs, ADC inputs, digital outputs, digital inputs, three-state, or connected to GND with 85 kΩ pull-down resistors. When configured as digital outputs, the I/Ox pins have the additional option of being configured as push/pull or open-drain. The input/output channels are configured by writing to the appropriate configuration registers, as shown in Table 15 and Table 16. To assign a particular function to an input/output channel, the user writes to the appropriate register and sets the corresponding bit to 1. For example, setting Bit D0 in the DAC configuration register to 1 configures I/O0 as a DAC (see Table 20). In the event that the bit for an input/output channel is set in multiple configuration registers, the input/output channel takes the function dictated by the last write operation. The exceptions to this rule are that an I/Ox pin can be set as both a DAC and an ADC or as a digital input and output. When an I/Ox pin is configured as a DAC and ADC, its primary function is as a DAC, and the ADC can measure the voltage being provided by the DAC. This feature can monitor the output voltage to detect short circuits or overload conditions. When a pin is configured as both a general-purpose input and output, the primary function is as an output pin. This configuration allows the status of the output pin to be determined by reading the GPIO register. Figure 40 shows a typical configuration example where I/O0 and I/O1 are configured as ADCs, I/O2 and I/O3 are configured as DACs, I/O4 is a general-purpose output pin, I/O5 is a general-purpose input pin, and I/O6 and I/O7 are three-state. The general-purpose control register also contains other functions associated with the DAC and ADC, such as the lock configuration bit. When the lock configuration bit is set to 1, any writes to the pin configuration registers are ignored, thus preventing the function of the I/Ox pins from being changed. The I/Ox pins can be reconfigured at any time when the AD5592R/ AD5592R-1 is in an idle state, that is, no ADC conversions are taking place and no registers are being read back. The lock configuration bit must also be 0. Table 15. I/Ox Pin Configuration Registers MSB LSB D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 Register address Reserved IO7 IO6 IO5 IO4 IO3 IO2 IO1 IO0 Table 16. Bit Descriptions for the I/Ox Pin Configuration Registers Bit(s) Bit Name Description D15 MSB Set this bit to 0. D14 to D11 Register address Selects which pin configuration register is addressed. 0100: ADC pin configuration. 0101: DAC pin configuration. 0110: pull-down configuration. (Default condition at power-up.) 1000: GPIO write configuration. 1010: GPIO read configuration. 1100: GPIO open-drain configuration. 1101: three-state configuration. D10 to D8 Reserved Reserved. Set these bits to 0. D7 to D0 IO7 to IO0 Enable register function on selected I/Ox pin. 0: no function selected. 1: set the selected I/Ox pin to the register function. Figure 40. Typical Configuration Example SYNC SDI CONFIGURE I/O0 AND I/O1 AS ADCS 0b0010 0000 0000 00 11 CONFIGURE I/O2 AND I/O3 AS DACS 0b0010 1000 0000 1100 SYNC SDI SYNC CONFIGURE I/O4 AS GPO 0b0100 0000 0001 0000 CONFIGURE I/O5 AS GPI 0b0101 0100 0010 0000 SDI CONFIGURE I/O6 AND I/O7 AS THREE-STATE PINS 0b0110 1000 1100 0000 |
|
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 |