| Electronic Components Datasheet Search |
|
AD5734R Datasheet(PDF) 17 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD5734R Datasheet(HTML) 17 Page - Analog Devices |
|
17 / 20 page ![]() AD5726 Rev. 0 | Page 17 of 20 MICROPROCESSOR INTERFACING Microprocessor interfacing to the AD5726 is via a serial bus that uses standard protocol compatible with microcontrollers and DSP processors. The communications channel is a 3-wire interface (minimum) consisting of a clock signal, a data signal, and a synchronization signal. The AD5726 requires a 16-bit data-word with data valid on the falling edge of SCLK. For all the interfaces, the DAC output update can be done automatically when all the data is clocked in, or it can be done under the control of LDAC. MC68HC11 Interface Figure 28 shows an example of a serial interface between the AD5726 and the MC68HC11 microcontroller. The serial peripheral interface (SPI) on the MC68HC11 is configured for master mode (MSTR = 1); clock polarity bit (CPOL = 0), and the clock phase bit (CPHA = 1). The SPI is configured by writing to the SPI control register (SPCR); see the 68HC11 User Manual. SCK of the MC68HC11 drives the SCLK of the AD5726, the MOSI output drives the serial data line (SDIN) of the AD5726. The CS is driven from one of the port lines, in this case PC7. When data is being transmitted to the AD5726, the CS line (PC7) is taken low and data is transmitted MSB first. Data appearing on the MOSI output is valid on the falling edge of SCK. Eight falling clock edges occur in the transmit cycle; thus, to load the required 16-bit word, PC7 is not brought high until the second 8-bit word has been transferred to the DACs input shift register. SDIN MOSI SCLK SCK CS PC7 AD5726* MC68HC11* *ADDITIONAL PINS OMITTED FOR CLARITY. Figure 28. MC68HC11 to AD5726 Interface 8xC51 Interface The AD5726 requires a clock synchronized to the serial data. For this reason, the 8xC51 must be operated in Mode 0. In this mode, serial data is transferred through RxD, and a shift clock is output on TxD. P3.3 and P3.4 are bit-programmable pins on the serial port and are used to drive CS and LDAC, respectively. The 8Cx51 provides the LSB of its SBUF register as the first bit in the data stream. The user must ensure that the data in the SBUF register is arranged correctly because the DAC expects MSB first. When data is to be transmitted to the DAC, P3.3 is taken low. Data on RxD is clocked out of the microcontroller on the rising edge of TxD and is valid on the falling edge. As a result, no glue logic is required between this DAC and the microcontroller interface. The 8xC51 transmits data in 8-bit bytes with only eight falling clock edges occurring in the transmit cycle. Because the DAC expects a 16-bit word, CS (P3.3) must be left low after the first eight bits are transferred. After the second byte has been transferred, the P3.3 line is taken high. The DAC can be updated using LDAC via P3.4 of the 8xC51 SDIN RxD SCLK TxD CS P3.3 LDAC P3.4 AD5726* 8xC51* *ADDITIONAL PINS OMITTED FOR CLARITY. Figure 29. 8xC51 to AD5726 Interface PIC16C6x/7x Interface The PIC16C6x/7x synchronous serial port (SSP) is configured as an SPI master with the clock polarity bit set to 0. This is done by writing to the synchronous serial port control register (SSPCON). See the PIC16/17 Microcontroller User Manual. In this example, I/O port RA1 is being used to pulse CS and enable the serial port of the AD5726. This microcontroller transfers only eight bits of data during each serial transfer operation; therefore, two consecutive write operations are needed. Figure 30 shows the connection diagram. SDIN SDO/RC5 SCLK SCLK/RC3 CS RA1 AD5726* PIC16C6x/7x* *ADDITIONAL PINS OMITTED FOR CLARITY. Figure 30. PIC16C6x/7x to AD5726 Interface Blackfin® DSP interface Figure 31 shows how the AD5726 can be interfaced to the Analog Devices Blackfin DSP. The Blackfin has an integrated SPI port that can be connected directly to the SPI pins of the AD5726. It also has programmable I/O pins that can be used to set the state of a digital input such as the LDAC pin. CS SPISELx SCLK SCK SDIN MOSI LDAC PF10 AD5726* ADSP-BF531 *ADDITIONAL PINS OMITTED FOR CLARITY. Figure 31. Blackfin DSP to AD5726 Interface |
|
|
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 |