| Moteur de recherche de fiches techniques de composants électroniques |
|
AD7730LBR Fiches technique(PDF) 38 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD7730LBR Fiches technique(HTML) 38 Page - Analog Devices |
|
38 / 53 page ![]() AD7730/AD7730L –38– MICROCOMPUTER/MICROPROCESSOR INTERFACING The AD7730’s flexible serial interface allows for easy interface to most microcomputers and microprocessors. The pseudo-code of Table XIX and Table XX outline typical sequences for inter- facing a microcontroller or microprocessor to the AD7730. Figures 20, 21 and 22 show some typical interface circuits. The serial interface on the AD7730 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 AD7730 vary from 8 to 16 to 24 bits. The 8-bit 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 AD7730. In any case, writing 32 bits of data to a 24-bit register is not an issue provided the final eight bits of the word are all 1s. This is because the part returns to the Communications Register following a write operation. Even though some of the registers on the AD7730 are only eight bits in length, communicating with two of these registers in successive write operations can be handled as a single 16-bit data transfer if required. For example, if the DAC Register is to be updated, the processor must first write to the Communica- tions Register (saying that the next operation is a write to the Mode Register) and then write eight bits to the DAC Register. This can all be done in a single 16-bit transfer, if required, be- cause once the eight serial clocks of the write operation to the Communications Register have been completed, the part imme- diately sets itself up for a write operation to the DAC Register. AD7730 to 68HC11 Interface Figure 20 shows an interface between the AD7730 and the 68HC11 microcontroller. The diagram shows the minimum (three-wire) interface with CS on the AD7730 hardwired 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 AD7730. 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 AD7730, 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 AD7730 should be hardwired 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 AD7730 should be hard- wired to a logic high. The AD7730 is not capable of full duplex operation. If the AD7730 is configured for a write operation, no data appears on the DATA OUT lines even when the SCLK input is active. When the AD7730 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 AD7730 SCLK DATA OUT DATA IN CS POL SS SCK MISO MOSI 68HC11 DVDD DVDD Figure 20. AD7730 to 68HC11 Interface AD7730 to 8051 Interface An interface circuit between the AD7730 and the 8XC51 mi- crocontroller is shown in Figure 21. The diagram shows the minimum number of interface connections with CS on the AD7730 hardwired low. In the case of the 8XC51 interface, the minimum 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 AD7730. The monitor- ing of the RDY line can be done in two ways. First, RDY can be connected 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 deter- mine the status of RDY. The second scheme is to use an inter- rupt driven system, in which case the RDY output is connected to the INT1 input of the 8XC51. For interfaces that require control of the CS input on the AD7730, 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. The 8XC51 is configured in its Mode 0 serial interface mode. Its serial interface contains a single data line. As a result, the DATA OUT and DATA IN pins of the AD7730 should be connected together. This means that the AD7730 must not be REV. B |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |