| 数据搜索系统,热门电子元器件搜索 |
|
AD7940BRJ-R2 数据表(PDF) 17 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD7940BRJ-R2 数据表(HTML) 17 Page - Analog Devices |
|
17 / 20 page ![]() AD7940 Rev. 0 | Page 17 of 20 MICROPROCESSOR INTERFACING The serial interface on the AD7940 allows the part to be directly connected to a range of many different microprocessors. This section explains how to interface the AD7940 with some of the more common microcontroller and DSP serial interface protocols. AD7940 TO TMS320C541 The serial interface on the TMS320C541 uses a continuous serial clock and frame synchronization signals to synchronize the data transfer operations with peripheral devices such as the AD7940. The CS input allows easy interfacing between the TMS320C541 and the AD7940 with no glue logic required. The serial port of the TMS320C541 is set up to operate in burst mode with internal CLKX (TX serial clock) and FSX (TX frame sync). The serial port control register (SPC) must have the following setup: FO = 0 FSM = 1 MCM = 1 TXM = 1 The format bit, FO, must be set to 1 to set the word length to 8 bits, in order to implement the power-down mode on the AD7940. The connection diagram is shown in Figure 21. It should be noted that for signal processing applications, it is imperative that the frame synchronization signal from the TMS320C541 provide equidistant sampling. AD7940* TMS320C541* *ADDITIONAL PINS OMITTED FOR CLARITY SDATA DR CS FSX FSR SCLK CLKX CLKR Figure 21. Interfacing to the TMS320C541 AD7940 TO ADSP-218x The ADSP-218x family of DSPs can be interfaced directly to the AD7940 with no glue logic required. The SPORT control regis- ter should be set up as follows: TFSW = RFSW = 1, Alternate Framing INVRFS = INVTFS = 1, Active Low Frame Signal DTYPE = 00, Right Justify Data SLEN = 1111, 16-Bit Data-Words ISCLK = 1, Internal Serial Clock TFSR = RFSR = 0, Frame First Word IRFS = 0 ITFS = 1 To implement power-down mode, SLEN should be set to 0111 to issue an 8-bit SCLK burst. The connection diagram is shown in Figure 22. The ADSP-218x has the TFS and RFS of the SPORT tied together, with TFS set as an output and RFS set as an input. The DSP operates in alter- nate framing mode, and the SPORT control register is set up as described. The frame synchronization signal generated on the TFS is tied to CS, and, as with all signal processing applications, equidistant sampling is necessary. In this example, the timer interrupt is used to control the sampling rate of the ADC. SCLK AD7940* SDATA CS ADSP-218x* SCLK *ADDITIONAL PINS OMITTED FOR CLARITY DR RFS TFS Figure 22. Interfacing to the ADSP-218x The timer register is loaded with a value that provides an interrupt at the required sample interval. When an interrupt is received, the values in the transmit autobuffer start to be trans- mitted and TFS is generated. The TFS is used to control the RFS and, therefore, the reading of data. The data is stored in the receive autobuffer for processing or to be shifted later. The fre- quency of the serial clock is set in the SCLKDIV register. When the instruction to transmit with TFS is given, i.e., TX0 = AX0, the state of the SCLK is checked. The DSP waits until the SCLK has gone high, low, and high before transmission will start. If the timer and SCLK values are chosen such that the instruction to transmit occurs on or near the rising edge of SCLK, the data may be transmitted, or it may wait until the next clock edge. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |