| Electronic Components Datasheet Search |
|
AD7731 Datasheet(PDF) 37 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD7731 Datasheet(HTML) 37 Page - Analog Devices |
|
37 / 44 page ![]() AD7731 –37– REV. 0 MICROCOMPUTER/MICROPROCESSOR INTERFACING The AD7731’s flexible serial interface allows for easy interface to most microcomputers and microprocessors. The pseudo-code of Table XVIII and Table XIX outline typical sequences for interfacing a microcontroller or microprocessor to the AD7731. Figures 18, 19 and 20 show some typical interface circuits. The serial interface on the AD7731 has the capability of operat- ing from just three wires and is compatible with SPI interface protocols. The three-wire operation makes the part ideal for isolated systems where minimizing the number of interface lines minimizes the number of opto-isolators required in the system. Register lengths on the AD7731 vary from 8 to 16 to 24 bits. The 8-bit serial serial ports of most microcontrollers can handle communication with these registers as either one, two or three 8-bit transfers. DSP processors and microprocessors generally transfer 16 bits of data in a serial data operation. Some of these processors, such as the ADSP-2105, have the facility to program the amount of cycles in a serial transfer. This allows the user to tailor the number of bits in any transfer to match the register length of the required register in the AD7731. In any case, writing 32 bits of data to a 24-bit register is not an issue pro- vided the final 8 bits of the word are all 1s. This is because the part returns to the Communications Register following a write operation. AD7731 to 68HC11 Interface Figure 18 shows an interface between the AD7731 and the 68HC11 microcontroller. The diagram shows the minimum (three-wire) interface with CS on the AD7731 hard-wired low. In this scheme, the RDY bit of the Status Register is monitored to determine when the Data Register is updated. An alternative scheme, which increases the number of interface lines to four, is to monitor the RDY output line from the AD7731. The moni- toring of the RDY line can be done in two ways. First, RDY can be connected to one of the 68HC11’s port bits (such as PC0) which is configured as an input. This port bit is then polled to determine the status of RDY. The second scheme is to use an interrupt driven system in which case, the RDY output is con- nected to the IRQ input of the 68HC11. For interfaces which require control of the CS input on the AD7731, one of the port bits of the 68HC11 (such as PC1), which is configured as an output, can be used to drive the CS input. The 68HC11 is configured in the master mode with its CPOL bit set to a logic zero and its CPHA bit set to a logic one. When the 68HC11 is configured like this, its SCLK line idles low between data transfers. Therefore, the POL input of the AD7731 should be hard-wired low. For systems where it is preferable that the SCLK idle high, the CPOL bit of the 68HC11 should be set to a logic 1 and the POL input of the AD7731 should be hard-wired to a logic high. The AD7731 is not capable of full duplex operation. If the AD7731 is configured for a write operation, no data appears on the DATA OUT lines even when the SCLK input is active. However, when the AD7731 is configured for continuous read operation, data presented to the part on the DATA IN line is monitored to determine when to exit the continuous read mode. SYNC RESET AD7731 SCLK DATA OUT DATA IN CS POL SS SCK MISO MOSI 68HC11 DVDD DVDD Figure 18. AD7731 to 68HC11 Interface AD7731 to 8051 Interface An interface circuit between the AD7731 and the 8XC51 micro- controller is shown in Figure 19. The diagram shows the mini- mum number of interface connections with CS on the AD7731 hard-wired low. In the case of the 8XC51 interface the mini- mum number of interconnects is just two. In this scheme, the RDY bit of the Status Register is monitored to determine when the Data Register is updated. The alternative scheme, which increases the number of interface lines to three, is to monitor the RDY output line from the AD7731. The monitoring of the RDY line can be done in two ways. First, RDY can be con- nected to one of the 8XC51’s port bits (such as P1.0) which is configured as an input. This port bit is then polled to determine the status of RDY. The second scheme is to use an interrupt driven system in which case, the RDY output is connected to the INT1 input of the 8XC51. For interfaces which require control of the CS input on the AD7731, one of the port bits of the 8XC51 (such as P1.1), which is configured as an output, can be used to drive the CS input. |
|
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 |