0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
AN-2001

AN-2001

  • 厂商:

    NSC

  • 封装:

  • 描述:

    AN-2001 - The following sections will demonstrate how to achieve - National Semiconductor

  • 数据手册
  • 价格&库存
AN-2001 数据手册
Daisy Chaining Precision DACs Daisy Chaining Precision DACs National Semiconductor Application Note 2001 Tom Domanski September 25, 2009 1.0 Introduction It is not uncommon for the system designer to face a quagmire of reconciling the system complexity with the desire to keep the system footprint small. One specific example that often arises in the context of small system footprint is the need for single master controller to communicate with a number of slave devices. This is not much of a problem if the master controller has multiple I/O resources available, and the routing of individual busses to the slave devices can be accommodated by ample board space. Challenge arises when the master controller has only one I/O port available, and the signal routing space is scarce. In these cases Daisy Chaining of slave devices may be the solution to consider. This application note concerns exclusively the family of Precision DAC devices offered by National Semiconductor Corp. All of the devices mentioned in this note have a unidirectional SPI interface through which they receive data and configuration commands from the master controller. However, since the protocol details of each SPI interface differ slightly, due care must be taken when architecting systems comprising multiple Precision DACs. The following sections will demonstrate how to achieve an arbitrary number of analog output channels that are controlled by a single 3-wire SPI interface. These expansion schemes will exploit the Daisy Chaining capability of the 8-channel DACs (DACxx8S085), and unique properties of the SPI interface of the Micro Power family of devices (DACxx4S085, DACxx2S085 and DACxx1S101). (2 channel), DACxx1S101 (single channel). A typical digital interface connectivity is shown in Figure 1. Here, a controller transfers data into a single DAC via the unidirectional SPI bus. 30105805 FIGURE 1. Typical Digital Interface Connectivity A typical bus cycle is shown in Figure 2. A bus cycle is initiated with the falling edge of SS. The DAC shifts bits presented by MOSI into its internal shift register on each falling edge of the SCLK, for 16 clock cycles. After the 16th falling edge the DATA contained in the shift register is interpreted by the DAC’s internal controller resulting in output level and/or mode of operation update. Also, on that 16th falling edge of the CLOCK the internal SCLK and DIN busses of the DAC are gated off and therefore any further DATA present at DIN pin, or SCLK pulse, is ignored. The SS signal can be raised again any time after 16th falling edge. Subsequent DATA transfers will commence with the falling edge of the SS. 2.0 Revisiting Micro Power DACs' Digital Interface: 1, 2 and 4 Channel Devices The series of Micro Power DACs comprises the following families of devices: DACxx4S085 (4 channel), DACxx2S085 AN-2001 30105808 FIGURE 2. Typical Bus Cycle © 2009 National Semiconductor Corporation 301058 www.national.com AN-2001 Obviously the above described scheme allows the controller to interface with a single device only. In many applications this is sufficient, but if more channels are needed see next section for solutions providing 8 DAC channels, and more. For more detailed information on the DACxx4S085, DACxx2S085 and DACxx1S101 please refer to the respective device Data Sheet. 3.0 Revisiting Eight-Channel DACs' Digital Interface This group of DACs has just 3 members: DAC088S085, DAC108S085 and DAC128S085 (8-channel devices with 8, 10 and 12-bit resolutions respectively).These 8-channel de- vices were designed to interface to the controller individually, or in the group of N devices in the so called Daisy Chain scheme. A typical digital interface connectivity is shown in Figure 3. Here, a controller transfers data into N DACs via the unidirectional SPI bus. Unlike the DACs in the previous section, DACxx8S085 features DOUT output, which is the output of the DAC’s internal shift register. The DATA that was shifted into the DIN input of the device will start appearing at DOUT output after 16 SCLK cycles. Therefore, it is possible to feed the DOUT of the first device in the chain to the DIN of the following device. Arbitrarily long chain of devices can be assembled. 30105809 FIGURE 3. Typical Controller to N 8–Channel DACs Interface: Daisy Chain The arbitrary length of the chain is possible only because the individual devices do not “count” the shifted DATA bits, rather they wait for the rising edge of SS to decode the contents of the internal shift register. A typical bus cycle for a device in this family of DACs is shown in Figure 4. Falling edge of SS initiates the DATA transfer into the DAC’s shift register. On each falling edge of SCLK a bit is acquired. After 16 CLOCK cycles the DATA starts to appear at the DOUT output of the DAC. Rising edge of SS will cause the internal controller to interpret the contents of the shift register resulting in output level and/or mode of operation update. Caution: It should be noted that the DATA at DOUT is preceded by a “1” bit. Even though this pre-amble bit may be shifted into the following devices in the Daisy Chain, if the DATA protocol is strictly observed, this bit will not be present in any of the shift registers when the SS is raised (moment of shift register content decode) – the DATA protocol dictates that all transfers into the DACxx8S085 consist of series of at least N*16 bits where N is the number of devices in the chain. Refer to the DACxx8S085 Data Sheet for details. Note that Figure 4. shows a bus cycle of just one device in the chain. Also note that the number of SCLK cycles during the interval when SS is low exceeds 16. Therefore, after delay, DOUT starts presenting data that was shifted into DIN input of the internal shift register. When the rising edge of SS arrives, only 16 bits shifted in immediately before this edge are decoded by the internal controller. The data preceding the 16 decoded bits (marked as “runt” in Figure 4), is captured by the next device in the Daisy Chain, or simply discarded. www.national.com 2 AN-2001 30105810 FIGURE 4. 8–Channel DAC Bus Cycle Daisy Chain scheme shown in Figure 3 provides (k*8) analog channels, where k=0…N, which can be controlled by a single, unidirectional SPI bus. The following section describes how to combine both the Micro Power DACs (1, 2 and 4 channel devices), and 8-channel DACs on a single SPI bus, and thus enable creation of arbitrary number of analog output channels. For more detailed information on the DACxx8S085, please refer to the respective device Data Sheet. 4.0 Flexible DAC Channel Expansion The previously presented DAC families, in Sections 2 and 3, provide a wide range of choices to the system designer. But still there are some limitations: first scheme, in Section 2.0 Revisiting Micro Power DACs' Digital Interface: 1, 2 and 4 Channel Devices, allows for at most 4 channels (1, 2, or 4), the second allows for any multiple of 8-channels to be controlled by a single SPI bus (say 8, 16, 24…..). But what if 10 channels are needed? The technique presented in Figure 5 creates a DAC solution with a number of channels = (0|1|2|4)+k*8, where k=0…N (e.g. 1, 2, 4, 8, 9, 10, 12, 16, 17… are some of the possible DAC channel multiples that can be created). 30105811 FIGURE 5. Flexible DAC Channel Expansion 3 www.national.com AN-2001 A bus cycle of this scheme is shown in Figure 6. As in the previous sections the DATA transfer is initiated by the falling edge of SS. And as in the previous sections the first 16 bits of DATA are shifted into both the device (A) and device (1) in FIGURE 5. But after the 16th falling edge of the SCLK attention needs to be paid to the differences in SPI protocol between device (A) and devices (1)… (N). Consider device (A) first. After the 16th falling edge of SCLK device (A) will stop the shifting operation, the contents of its shift register will be decoded, and the state of this device will update. Internal SCLK and DIN buses will be gated off, and device (A) will ignore any further DATA. It will stay in this state until next appearance of falling edge of SS. Now, consider devices in the Daisy Chain (1) through (N). As SS signal stays low, and SCLK transitions continue, so does the shift operation of the chain of devices (1)… (N). If the transitions continue for at least N*16 additional SCLK cycles beyond DATA(A) interval, the initial DATA(A) will pass through the (1)…(N) chain and will never be captured (decoded) by these devices. Therefore, to program the (1)…(N) devices the 16 bit DATA (A) word has to be followed by N*16 data words ( Nth word first ) which are immediately followed by rising edge of SS. For example, if device (A) is present and N=2, then the data transfer must consist of at least 16+2*16=48 bits: the first 16 bits will are decoded by device (A), next 16 bits will be decoded by device (2), and the last 16 bits will be decoded by device (1). If there are any extra SCLK cycles present, these will shift in the “runt” data. 30105812 FIGURE 6. Flexible DAC Bus Cycle Another way of looking at this data protocol is to consider interval when SS is low as a “frame” of data. The data for device (A) is left-justified within the “frame”: the SCLK falling edges 1 through 16 immediately following falling edge of SS are of interest. Whereas the N*16 bits of data destined for devices (1)… (N) are right-justified within the “frame”: if total data transfer consists of M bits, then bits of interest are M, (M-1)… (M-N*16+1). The excess SCLK pulses between the DATA(A) and DATA(1..N) will result in “runt”, or discarded, data. CAUTION: Observe that the data destined for the Daisy Chained devices (1)… (N) appears in reverse order from the actual physical device arrangement – compare Figure 5 and Figure 6. This simply arises from the fact that the first data word has to travel the farthest down the chain. However, the bit order within each data word is not reversed: it is still MSB first. Figure 7 shows the internal shift register contents of each device following the execution of the bus cycle shown in Figure 6. Here, device (A) contains DATA(A), while that same DATA (A) and the “runt” data have been pushed through, and discarded by the Daisy Chain of devices (1)…(N). Devices in the Daisy Chain contain the DATA that followed DATA(A) and “runt” data. Thus every DAC in the diagram shown in Figure 5 has acquired unique data, which is requisite for independent control of each device by a single master. www.national.com 4 AN-2001 30105813 FIGURE 7. Data Register Contents Resulting From Bus Cycle Shown in Figure 6 5.0 Conclusion This application note presented a summary of interface methods available in the Precision DAC products from National Semiconductor Corp. In particular, the architecture shown in Section 4.0 Flexible DAC Channel Expansion described the methods of interfacing DACs from 2 distinct families of DACs: Micro Power (1, 2 and 4 channel), and 8 channel. This Flexible DAC Expansion technique allows the system designer ultimate freedom in mixing and matching DACs in order to achieve desired number of analog output channels controllable by a single SPI master. Note: This Application Note applies to: • DAC081S101, DAC101S101, DAC121S101; • DAC082S085, DAC102S085, DAC122S085; • DAC084S085, DAC104S085, DAC124S085; and • DAC088S085, DAC108S085, DAC128085 5 www.national.com Daisy Chaining Precision DACs Notes For more National Semiconductor product information and proven design tools, visit the following Web sites at: Products Amplifiers Audio Clock and Timing Data Converters Interface LVDS Power Management Switching Regulators LDOs LED Lighting Voltage Reference PowerWise® Solutions Temperature Sensors Wireless (PLL/VCO) www.national.com/amplifiers www.national.com/audio www.national.com/timing www.national.com/adc www.national.com/interface www.national.com/lvds www.national.com/power www.national.com/switchers www.national.com/ldo www.national.com/led www.national.com/vref www.national.com/powerwise WEBENCH® Tools App Notes Reference Designs Samples Eval Boards Packaging Green Compliance Distributors Quality and Reliability Feedback/Support Design Made Easy Solutions Mil/Aero PowerWise® Design University Design Support www.national.com/webench www.national.com/appnotes www.national.com/refdesigns www.national.com/samples www.national.com/evalboards www.national.com/packaging www.national.com/quality/green www.national.com/contacts www.national.com/quality www.national.com/feedback www.national.com/easy www.national.com/solutions www.national.com/milaero www.national.com/solarmagic www.national.com/training Serial Digital Interface (SDI) www.national.com/sdi www.national.com/wireless www.national.com/tempsensors SolarMagic™ THE CONTENTS OF THIS DOCUMENT ARE PROVIDED IN CONNECTION WITH NATIONAL SEMICONDUCTOR CORPORATION (“NATIONAL”) PRODUCTS. NATIONAL MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS PUBLICATION AND RESERVES THE RIGHT TO MAKE CHANGES TO SPECIFICATIONS AND PRODUCT DESCRIPTIONS AT ANY TIME WITHOUT NOTICE. NO LICENSE, WHETHER EXPRESS, IMPLIED, ARISING BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. TESTING AND OTHER QUALITY CONTROLS ARE USED TO THE EXTENT NATIONAL DEEMS NECESSARY TO SUPPORT NATIONAL’S PRODUCT WARRANTY. EXCEPT WHERE MANDATED BY GOVERNMENT REQUIREMENTS, TESTING OF ALL PARAMETERS OF EACH PRODUCT IS NOT NECESSARILY PERFORMED. NATIONAL ASSUMES NO LIABILITY FOR APPLICATIONS ASSISTANCE OR BUYER PRODUCT DESIGN. BUYERS ARE RESPONSIBLE FOR THEIR PRODUCTS AND APPLICATIONS USING NATIONAL COMPONENTS. PRIOR TO USING OR DISTRIBUTING ANY PRODUCTS THAT INCLUDE NATIONAL COMPONENTS, BUYERS SHOULD PROVIDE ADEQUATE DESIGN, TESTING AND OPERATING SAFEGUARDS. EXCEPT AS PROVIDED IN NATIONAL’S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, NATIONAL ASSUMES NO LIABILITY WHATSOEVER, AND NATIONAL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY RELATING TO THE SALE AND/OR USE OF NATIONAL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. LIFE SUPPORT POLICY NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE CHIEF EXECUTIVE OFFICER AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b) support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in a significant injury to the user. A critical component is any component in a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness. National Semiconductor and the National Semiconductor logo are registered trademarks of National Semiconductor Corporation. All other brand or product names may be trademarks or registered trademarks of their respective holders. Copyright© 2009 National Semiconductor Corporation AN-2001 For the most current product information visit us at www.national.com National Semiconductor Americas Technical Support Center Email: support@nsc.com Tel: 1-800-272-9959 www.national.com National Semiconductor Europe Technical Support Center Email: europe.support@nsc.com National Semiconductor Asia Pacific Technical Support Center Email: ap.support@nsc.com National Semiconductor Japan Technical Support Center Email: jpn.feedback@nsc.com
AN-2001 价格&库存

很抱歉,暂时无法提供与“AN-2001”相匹配的价格&库存,您可以联系我们找货

免费人工找货
AGQ20012
  •  国内价格
  • 1+6.2586

库存:26

ULN2001D
  •  国内价格
  • 1+0.82801
  • 100+0.77281
  • 300+0.71761
  • 500+0.66241
  • 2000+0.63481
  • 5000+0.61825

库存:0

2200159
  •  国内价格
  • 1+27.00001
  • 10+26.00001
  • 100+23.60001
  • 500+22.40001

库存:0

AGN20012
  •  国内价格
  • 1+6.66
  • 30+6.435
  • 100+5.985
  • 500+5.535
  • 1000+5.31

库存:0

mSMD200-16V
  •  国内价格
  • 1+0.23498
  • 10+0.2169
  • 30+0.21329

库存:1498

TPS2001DDBVR
    •  国内价格
    • 1+0.9734

    库存:2955

    ERJPB3B2001V
    •  国内价格
    • 10+0.23042
    • 100+0.21078
    • 500+0.19115
    • 1000+0.17151
    • 2000+0.15842
    • 4000+0.15449

    库存:0

    ERJ3EKF2001V
    •  国内价格
    • 20+0.02188
    • 200+0.02035
    • 600+0.01882
    • 3000+0.01729

    库存:4435

    ERJ-6ENF2001V
    •  国内价格
    • 50+0.06354
    • 150+0.05403
    • 1000+0.04451
    • 5000+0.04071

    库存:0

    ERJPB6B2001V
    •  国内价格
    • 20+0.27923
    • 200+0.25942
    • 600+0.23962
    • 3000+0.21982

    库存:0