《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 模擬設(shè)計(jì) > 設(shè)計(jì)應(yīng)用 > 模擬對數(shù)字:架起ADC到處理器的橋梁
模擬對數(shù)字:架起ADC到處理器的橋梁
摘要: 當(dāng)你設(shè)計(jì)轉(zhuǎn)換器數(shù)字接口時(shí),不要把一切事情視為理所當(dāng)然。閱讀ADC芯片手冊,核對向數(shù)字接口傳輸?shù)奈坏奈恢谩?
Abstract:
Key words :

  作為一個(gè)模擬世界的后裔,我經(jīng)常可以在走廊上聽到些評論,關(guān)于數(shù)字設(shè)計(jì)師多么不理解模擬問題。數(shù)字設(shè)計(jì)師們也毫不留情地批評模擬集成電路設(shè)計(jì)師。這兩個(gè)陣營涇渭分明,除非參與者們打破界限,一起進(jìn)入混合信號領(lǐng)域的研究。

  對典型的模擬精神,不是所有轉(zhuǎn)換器都用相同的數(shù)據(jù)格式。一些轉(zhuǎn)換器用無符號二進(jìn)制數(shù)類型,其他轉(zhuǎn)換器使用有符號二進(jìn)制補(bǔ)碼數(shù)據(jù)。甚至更復(fù)雜的問題,轉(zhuǎn)換器輸出12位或是14位數(shù)據(jù),還有16位輸出。還有另一種24位Δ-Σ轉(zhuǎn)換器技術(shù)。

  先不管這些模擬設(shè)計(jì)結(jié)果的目的。對于這些轉(zhuǎn)換器而言,ADC最低有效位的位置是這些8位、16位或是32位字處理器的第0位。對模擬電路設(shè)計(jì)者來說,這具有重要意義。然而,12位轉(zhuǎn)換器的符號位是處理器的位置11。如果分配16位寬度的變量C為轉(zhuǎn)換器輸出值,假定C符號位是位置15。處理器不能從轉(zhuǎn)換器識別出負(fù)數(shù),所有來自12位的雙極性ADC數(shù)據(jù)都是正的。因?yàn)榉栁惶幱阱e(cuò)誤位置。

  你可以通過幾個(gè)步驟來解決這個(gè)問題。首先,讀-修改-寫步驟,將處理器寄存器中的數(shù)據(jù)移位。CPU讀取數(shù)據(jù)、移動(dòng)包含數(shù)據(jù)的寄存器的位到必要的位置,然后將這些數(shù)據(jù)寫回內(nèi)存。DSP可以在一個(gè)時(shí)鐘周期內(nèi)完成移位。控制器需要很多時(shí)鐘周期才能完成移位的過程。如果你選用了這種控制策略,要小心緩存區(qū)的不連續(xù)性。這意味著緩存區(qū)無法辨別DMA控制器是否將新數(shù)據(jù)寫入內(nèi)存。結(jié)果,CPU將緩存區(qū)的舊數(shù)據(jù)進(jìn)行移位操作。需要記住的是,無論什么時(shí)候向左移了一位,就意味著ADC轉(zhuǎn)換結(jié)果乘了2。

  另一種方式是在處理器循環(huán)中將數(shù)據(jù)右移。這種方式的缺點(diǎn)占用CPU并需要額外指令。另一種選擇是直接將轉(zhuǎn)換器與處理器的數(shù)據(jù)總線相連。如果你將12位轉(zhuǎn)換器的第11位與處理器總線上的第15位相連,那么符號位就會(huì)處于正確的位置。然后將數(shù)據(jù)的第11位到第14位置零來完成數(shù)據(jù)獲取,否則這些位的數(shù)據(jù)是不確定的。這種方法只適用于有并行接口。在這種方案中,基于DMA移動(dòng)就不需要數(shù)據(jù)移位了。

  使用串行端口的用戶比并行端口的用戶要幸運(yùn)的多,因?yàn)榇蟛糠痔幚砥鞯拇卸丝谔峁┙邮盏?ldquo;左移用零填充至最低有效位”或“右移符號位擴(kuò)展至最高有效位”特點(diǎn)。這種特色大大減少了CPU處理內(nèi)存中數(shù)據(jù)的工作。一些串行端口只工作在接收數(shù)據(jù)長度是2的冪時(shí),例如16位數(shù)據(jù)長度。這些端口不能工作在12、14或是24位數(shù)據(jù)長度時(shí)。

  模擬工程師幫助處理處理器接口問題。據(jù)我所知,處理器都是8位、16位或是32位的,我從沒聽說過12位或14位的處理器。除非所有的模擬芯片設(shè)計(jì)者突破界限,否則為轉(zhuǎn)換器設(shè)計(jì)數(shù)字接口是理所當(dāng)然的。閱讀ADC數(shù)據(jù)手冊,核對向數(shù)字接口傳輸?shù)奈坏奈恢谩H绻麑DC數(shù)據(jù)接口做了初始檢查,那么你會(huì)因?yàn)殚_始的付出獲得更多成功。

  英文原文:

  Analog versus digital: Bridging the ADC-to-processor divide

  Don’t take things for granted when you are designing the digital interface to a converter. Read the ADC data sheet and verify the bit positions in the transmission across the digital interface.

  By Bonnie Baker -- EDN, 5/10/2007

  As an analog-world descendant, I always hear comments in the hallway about how digital designers don’t really understand analog issues. Digital designers will go so far as to unsympathetically say the same about analog-IC designers. There is no bridge between these two camps unless the participants ride the fence and enter the mixed-signal domain together.

  True to the analog spirit, not all data converters use the same digital format. Some converters use unsigned-binary-data types; other converters use two’s-complement signed data. To even further complicate matters, some converters produce 12- or 14-bit output words, and others produce 16-bit output words. Yet another technology is the 24-bit delta-sigma converter.

 

  Forget the reasons for these analog-design decisions. With all of these converters, the location of the ADC LSB is in the processor’s 0-bit location within the 8-, 16-, or 32-bit word. This situation makes perfect sense to an analog designer. However, the signed-bit of a 12-bit converter resides in position 11

 

in the processor. If you assign a 16-bit-wide C variable to the converter’s output word, C assumes that the sign bit is in position 15. The processor does not recognize a negative number from the converter and assumes that all codes from the 12-bit, bipolar-in ADC are positive. This situation occurs because the signed bit is in the wrong position.

 

  You can approach this problem in several ways. The first, a read-modify-write approach, shifts data in the processor register. The CPU reads the data, shifts the bits in the register containing the data by the necessary amount of bit positions, and writes the data back to memory. A DSP can complete this shift with one cycle. A controller requires many cycles for this shift process. If this strategy is the one you choose, be careful of cache incoherency. Cache incoherency means that the cache is unaware that the DMA controller has placed new words in memory. As a result, the CPU instead shifts the old contents of the cache. It is important to remember that whenever you implement a bit shift to the left, you multiply the ADC results by two.

  Another option is to shift the data into the right position in a processor loop. On the downside, this approach uses the CPU and requires additional MIPS. Another alternative is to directly connect the converter to the processor’s data bus. If you connect bit 11 of the 12-bit converter to bit 15 of the processor’s data bus, the sign bit will then be in the right place. Complete the data-acquisition task by zeroing register bits 11 through 14. Otherwise, these bits are indeterminate. This approach is possible only with parallel interfaces. In this scenario, the DMA-based transfer need not shift data later on.

 

  Serial-port users are more fortunate than parallel-port users because most of the serial ports in processors offer the receiving feature of “left justify and zero fill LSBs” or “right justify and sign-extend MSBs.” This feature significantly reduces the amount of work the CPU

 

must perform once the data is in memory, with one drawback. Some serial ports work only if the received word length is a power of two, such as a 16-bit word length. This receiving feature does not work with 12-, 14-, or 24-bit values.

 

  Analog designers can help with the processor-interface problem. All the processors I know about have 8-, 16- or 32-bit data types, but I have never heard of a 12- or 14-bit data type. Until all of the analog-chip designers take the leap and straddle the fence, don’t take things for granted when you are designing the digital interface to a converter. Read the ADC data sheet and verify the bit positions in the transmission across the digital interface. If you do this initial examination of the ADC’s documented digital interface, you will be more successful with your first spin on the design.

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。
亚洲一区二区欧美_亚洲丝袜一区_99re亚洲国产精品_日韩亚洲一区二区
国产精品ⅴa在线观看h| 999在线观看精品免费不卡网站| 国内久久精品| 久久精品日韩欧美| 亚洲欧美视频| 亚洲一区www| 亚洲特黄一级片| 亚洲私人影院在线观看| 中日韩美女免费视频网址在线观看 | 国产精品久久97| 欧美精品在线观看播放| 欧美成人中文字幕| 欧美好骚综合网| 欧美美女bbbb| 欧美日韩你懂的| 欧美午夜精品伦理| 国产精品成人免费| 国产精品欧美在线| 国产视频久久| 激情久久中文字幕| 亚洲高清精品中出| 亚洲精品男同| 一区二区激情| 午夜一区不卡| 亚洲第一毛片| 日韩手机在线导航| 亚洲神马久久| 欧美一区二区三区在线| 久久婷婷国产综合精品青草| 久久综合网hezyo| 欧美风情在线| 国产精品久在线观看| 国产视频一区在线| 在线成人av网站| 日韩视频在线免费观看| 亚洲永久在线| 亚洲国产精品精华液网站| 夜夜嗨av一区二区三区网页| 亚洲欧美成人在线| 久久久www成人免费毛片麻豆| 免费的成人av| 欧美日韩一区免费| 国产视频一区在线观看一区免费| 在线观看亚洲一区| 一本久道综合久久精品| 亚洲综合色在线| 午夜日韩电影| 久久国产手机看片| 六月婷婷一区| 欧美视频福利| 国内久久精品视频| 亚洲美女视频在线免费观看| 亚洲欧美日韩一区在线观看| 欧美日韩美女一区二区| 亚洲国产一区二区三区在线播| 最新亚洲一区| 亚洲视频在线一区观看| 欧美一区亚洲二区| 亚洲精品日韩在线观看| 亚洲免费小视频| 亚洲国产一区二区三区a毛片| 亚洲视频日本| 久久免费视频在线| 国产精品a久久久久久| 韩日在线一区| 99pao成人国产永久免费视频| 午夜国产欧美理论在线播放| 亚洲乱码国产乱码精品精可以看| 欧美一区二区三区婷婷月色 | 亚洲视频二区| 亚洲国产欧美在线人成| 亚洲欧美一区二区激情| 欧美成人有码| 国产午夜精品麻豆| 一区二区高清在线观看| 亚洲黄色高清| 久久国产免费| 国产精品久久久久久久久久免费看 | 欧美激情精品久久久六区热门 | 一区二区动漫| 亚洲一区二区网站| 久久久久久伊人| 国产午夜精品一区二区三区欧美| 麻豆成人综合网| 国产精品家教| 最新高清无码专区| 欧美在线一区二区三区| 亚洲自拍偷拍一区| 亚洲自啪免费| 亚洲精选在线| 久久9热精品视频| 亚洲综合精品一区二区| 欧美激情二区三区| 黄色成人在线网址| 午夜精品剧场| 亚洲欧洲av一区二区| 欧美日本韩国一区二区三区| 伊人春色精品| 欧美在线观看日本一区| 午夜综合激情| 国产精品看片资源| 中国日韩欧美久久久久久久久| 亚洲蜜桃精久久久久久久| 久久综合一区| 激情综合久久| 久久精品一区二区三区中文字幕| 欧美在线免费观看视频| 国产精品综合色区在线观看| 亚洲午夜一区| 午夜精品久久久久久久久久久| 欧美视频在线观看一区二区| 日韩亚洲在线观看| 一区二区三区免费网站| 欧美久久在线| 日韩亚洲不卡在线| 一区二区三区av| 欧美日韩国产三级| 日韩视频在线观看国产| 亚洲精品婷婷| 夜夜嗨av一区二区三区四季av | 黄色小说综合网站| 欧美在线观看一区二区| 久久国产高清| 国产一区二区三区免费不卡| 香蕉免费一区二区三区在线观看| 欧美中文字幕久久| 国产一区二区在线观看免费| 亚洲黄色尤物视频| 亚洲精品影院| 亚洲乱码国产乱码精品精| 另类欧美日韩国产在线| 伊人久久久大香线蕉综合直播| 亚洲成色777777女色窝| 久久在线播放| 伊人久久综合| 亚洲一区黄色| 久久精品国产999大香线蕉| 国产欧美一区二区精品性色| 午夜在线一区| 久久香蕉国产线看观看网| 黄色小说综合网站| 亚洲精品乱码久久久久久黑人| 欧美激情精品久久久久久免费印度| 亚洲伦理精品| 午夜精品国产| 国内伊人久久久久久网站视频 | 久久久91精品国产一区二区精品| 国产一区二区三区日韩欧美| 亚洲成人在线视频网站| 欧美激情中文不卡| 国产精品99久久久久久宅男| 久久国产精品亚洲77777| 在线看片成人| 亚洲一区二区不卡免费| 国产欧美一区二区三区视频| 亚洲国产欧美日韩精品| 欧美黄色aa电影| 亚洲一区精品在线| 久久久久成人精品| 亚洲日本中文字幕区| 香蕉成人伊视频在线观看| 激情小说另类小说亚洲欧美| 日韩一级精品| 国产伦精品一区二区三区四区免费 | 欧美在线观看视频在线 | 国产精品高潮久久| 欧美亚洲免费在线| 欧美国产高清| 亚洲欧美精品伊人久久| 欧美h视频在线| 亚洲午夜激情网站| 久久综合狠狠综合久久激情| 99综合精品| 久久亚洲精品一区| 99国产精品久久久| 久久三级福利| 一区二区av在线| 久久综合网络一区二区| 在线视频欧美精品| 另类图片综合电影| 亚洲一区二区欧美| 欧美成人中文字幕在线| 亚洲欧美成人精品| 欧美激情在线观看| 欧美永久精品| 欧美午夜激情小视频| 亚洲大片在线| 国产精品一区二区三区成人| aa级大片欧美三级| 樱桃成人精品视频在线播放| 一区二区三区精品国产| 欧美成人一区二区在线| 亚洲欧美日韩精品久久亚洲区 | 亚洲欧美综合一区| 欧美日韩国产色综合一二三四| 久久福利资源站| 国产精品日本精品| 一本大道久久a久久精品综合| 狠狠色综合网| 欧美一级艳片视频免费观看|