| Electronic Components Datasheet Search |
|
AD8801 Datasheet(PDF) 12 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD8801 Datasheet(HTML) 12 Page - Analog Devices |
|
12 / 16 page ![]() REV. A –12– AD8801/AD8803 O1 O2 O3 O4 O5 O6 O7 O8 CS SHDN VDD VREFH GND AD8803 +5V P1.7 P1.6 P1.5 P1.4 1.5 1.6 1.7 PORT 1 8051 µC 1.4 SDI CLK VREFL Figure 26. An AD8801/AD8803-8051 µC Interface Using Parallel Port 1 Unlike the serial port interface of Figure 25, the parallel port in- terface only transmits 11 bits to the AD8801/AD8803. Also, the BYTESWAP subroutine is not required for the parallel inter- face, because data can be shifted out MSB first. However, the results of the two interface methods are exactly identical. In most cases, the decision on which method to use will be deter- mined by whether or not the serial data port is available for communication with the AD8801/AD8803. An MC68HC11-to-AD8801/AD8803 Interface Like the 8051, the MC68HC11 includes a dedicated serial data port (labeled SPI). The SPI port provides an easy interface to the AD8801/AD8803 (Figure 27). The interface uses three lines of Port D for the serial data, and one or two lines from Port C to control the SHDN and RS (AD8801 only) inputs. SDI CLK CS SHDN RS (AD8801 ONLY) AD8801/ AD8803* MC68HC11 * MOSI SCK SS PC0 PC1 (PD3) (PD4) (PD5) *ADDITIONAL PINS OMITTED FOR CLARITY Figure 27. An AD8801/AD8803-to-MC68HC11 Interface A software routine for loading the AD8801/AD8803 from a 68HC11 evaluation board is shown in Listing 3. First, the MC68HC11 is configured for SPI operation. Bits CPHA and CPOL define the SPI mode wherein the serial clock (SCK) is high at the beginning and end of transmission, and data is valid on the rising edge of SCK. This mode matches the requirements of the AD8801/AD8803. After the registers are saved on the stack, the DAC value and address are transferred to RAM and the AD8801/AD8803’s CS is driven low. Next, the DAC’s ad- dress byte is transferred to the SPDR register, which automati- cally initiates the SPI data transfer. The program tests the SPIF bit and loops until the data transfer is complete. Then the DAC value is sent to the SPI. When transmission of the second byte is complete, CS is driven high to load the new data and address into the AD8801/AD8803. |
|
|
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 |