當(dāng)前位置:首頁 > 工業(yè)控制 > 電子設(shè)計自動化

  廉價的復(fù)合信號處理器消除了外部模擬電路。

  將一個LVDT(線性可變差分變壓器)連接到微控制器是有挑戰(zhàn)性的工作,因為LVDT需要交流輸入激勵和交流輸出的測量,以確定其可移動核的位置(參考文獻1)。多數(shù)微控制器都缺乏專用交流信號生成與處理能力,因此需要外部電路產(chǎn)生任意諧波、波幅與穩(wěn)定頻率的正弦波信號。LVDT輸出信號的波幅與相位轉(zhuǎn)換成與微控制器內(nèi)部ADC兼容的形式,一般需要添加外部電路。

  與傳統(tǒng)微控制器相比,Cypress半導(dǎo)體公司的PSoC微控制器含有用戶可配置的邏輯和模擬模塊,簡化交流信號的生成與測量。PSoC器件具有無需連續(xù)CPU的干預(yù)就能生成模擬信號的獨特功能。PSoC靈活的模擬與數(shù)字模塊可以驅(qū)動一支LVDT,并無需外部電路就可以測量其輸出。圖1顯示的是LVDT接口的完整電路,圖2顯示的是PSoC微控制器的內(nèi)部電路框圖。

圖1 LVDT接口的完整電路

圖2 PSoC微控制器的內(nèi)部電路框圖

  PSoC采用多對用戶可配置的開關(guān)電容器模塊,實現(xiàn)帶通和低通濾波器。通過生成方波,并通過建立在首個開關(guān)電容器模塊中的穩(wěn)壓器,加在PSoC開關(guān)電容濾波器上,從而創(chuàng)建

高質(zhì)量正弦波。通過一個中心位于方波基頻的窄帶帶通濾波器,方波可以去除絕大多數(shù)諧波。

  為從PSoC開關(guān)電容帶通濾波器產(chǎn)生最高保真度的正弦波,要使用盡可能高的過采樣速率,因數(shù)約為33,即每個正弦波周期33階。合成的正弦波足夠平滑到足以驅(qū)動能衰減殘余更高諧波的LVDT。用可編程增益放大器調(diào)整PSoC的內(nèi)部電壓基準(zhǔn),可以在濾波前對方波幅度作粗略的控制。為補償波形直流偏置電壓,放大器對2.6V內(nèi)部模擬地基準(zhǔn)進行緩沖,并驅(qū)動用作LVDT模擬地回路的輸出管腳。

  LVDT輸出由幅度可變的正弦波電壓組成,其相對于正弦波激勵電壓的相位角要經(jīng)受一個相當(dāng)大的可變移位,有時相移會超過180。LVDT的信號驅(qū)動PSoC的可編程增益放大器,其輸出送至開關(guān)電容低通濾波器,跟隨一個用于同步整流的穩(wěn)壓器。整流后的信號驅(qū)動一輸出管腳,以及PSoC的開關(guān)電容ADC。

  將LVDT輸出加在同步穩(wěn)壓器上,跟隨一個低通濾波器,產(chǎn)生直流電壓送至ADC或直接驅(qū)動模擬反饋控制系統(tǒng)。在PSoC微控制器中,連接到ADC的低通開關(guān)電容濾波器需要相同的采樣時鐘驅(qū)動這兩個電路,導(dǎo)致PsoC的11位Δ-S ADC的轉(zhuǎn)換速率大約是低通濾波器角頻率的一半。同步穩(wěn)壓產(chǎn)生兩倍激勵頻率紋波頻率,因此更容易被低通濾波器去除。將、重新設(shè)計低通濾波器的角頻率為激勵頻率的三分之一,就可以在等于或低于1 LSB(最低有效位)標(biāo)準(zhǔn)差下,使LVDT輸出的測量達到11位分辨率。

  用配置為計數(shù)器鏈的邏輯電路塊將PsoC的24MHz內(nèi)部系統(tǒng)時鐘分頻,產(chǎn)生開關(guān)電容器模擬電路模塊所需的數(shù)字時鐘信號。在加電或復(fù)位后,PSoC的CPU配置所有可配置的模擬和數(shù)字電路模塊,并開始運行。從那以后,硬件便能夠激勵LVDT,并無需CPU參與的情況下,以每秒500次采樣速率測量其輸出。當(dāng)PSoC CPU運行在12MHz時,處理ADC內(nèi)部動作和中斷只消耗CPU不到3%的資源。

  大量PSoC資源仍可用于計算LVDT位置,以及在LCD模塊上以文本形式顯示結(jié)果。四個模擬電路模塊、五個邏輯電路模塊和很多I/O管腳都可用于支持更高要求的應(yīng)用。圖3顯示了可用于附加功能的可配置模塊。

圖3 可用于附加功能的可配置模塊

  參考文獻:

  1、"Linear variable differential transformer," Wikipedia

  英文原文:

  PSoC microcontroller and LVDT measure position

  Low-cost mixed-signal processor eliminates external analog circuitry.

  Sigurd Peterson, Sig3 Consulting, Aloha, OR; Edited by Brad Thompson and Fran Granville -- EDN, 10/26/2006

  Connecting an LVDT (linear-variable-differential transformer) to a microcontroller can prove challenging because an LVDT requires ac-input excitation and measurement of ac outputs to determine its movable core's position (Reference 1). Most microcontrollers lack dedicated ac-signal-generation and -processing capabilities and thus require external circuitry to generate harmonic-free, amplitude- and frequency-stable sine-wave signals. Conversion of an LVDT's output signals' amplitude and phase into a form compatible with a microcontroller's internal ADC usually requires additional external circuitry.

  In contrast with conventional microcontrollers, Cypress Semiconductor Corp's PSoC microcontrollers include user-configurable logic and analog blocks that simplify generation and measurement of ac signals. PSoC devices have the unusual feature of being able to generate analog signals without demanding continuous CPU attention. The PSoC's flexible analog and digital blocks can drive an LVDT and measure its outputs without requiring any external circuitry. Figure 1 shows the complete circuit of the LVDT interface, and Figure 2 shows the PSoC microcontroller's internal circuit blocks.

  The PSoC uses pairs of user-configurable switched-capacitor blocks to implement both bandpass and lowpass filters. You can create a high-quality sine wave by generating a square wave and applying it to a PSoC switched-capacitor filter through a modulator built into the first switched-capacitor block. Passing the square wave through a narrow bandpass filter centered on the square wave's fundamental frequency removes most of the harmonics.

  To obtain the highest fidelity sine waveform from a PSoC switched-capacitor bandpass filter, use the highest possible oversampling rate—a factor of approximately 33—or 33 steps per sine-wave cycle. The resultant sine wave is smooth enough to drive an LVDT, which attenuates any residual higher order harmonics. Scaling the PSoC's internal voltage reference with a programmable-gain amplifier provides coarse control over the square wave's amplitude before it undergoes filtering. To compensate for the waveform's dc-offset voltage, an amplifier buffers the 2.6V internal analog-ground reference and drives an output pin that serves as the LVDT's analog-ground return.

  The LVDT's output consists of a variable-amplitude sine-wave voltage whose phase angle with respect to the sine-wave excitation voltage undergoes a significant and variable shift that sometimes exceeds 180°. A signal from the LVDT drives one of the PSoC's programmable-gain amplifiers, whose output feeds a switched-capacitor lowpass filter followed by a modulator for synchronous rectification. The rectified signal drives an output pin and o

ne of the PSoC's switched-capacitor ADCs.

  Applying the LVDT's output to a synchronous rectifier followed by a lowpass filter produces a dc voltage that can feed an ADC or directly drive an analog feedback-control system. In a PSoC microcontroller, a lowpass switched-capacitor filter connected to an ADC requires that the same sample clock drive both circuits, resulting in a conversion rate for the PSoC's 11-bit delta-sigma ADC that's approximately one-half of the lowpass filter's corner frequency. Synchronous rectification produces a ripple frequency twice that of the excitation frequency and thus is easier to remove with a lowpass filter. Relocating the lowpass filter's corner frequency to one-third of the excitation frequency allows measurements of the LVDT's output to 11-bit resolution with a standard deviation of 1 LSB (least significant bit) or less.

  Dividing the PSoC's 24-MHz internal system clock with logic blocks configured as counter chains generates all of the digital clock signals the switched-capacitor analog-circuit blocks require. After power application or a reset, the PSoC's CPU configures all the configured analog and digital blocks and starts their operation. From then on, the hardware excites the LVDT and measures its output at 500 samples/sec without further intervention by the CPU. With the PSoC's CPU running at 12 MHz, processing the ADC's housekeeping activities and interrupts consumes less than 3% of the CPU's resources.

  Plenty of the PSoC's resources remain available for calculating the LVDT's position and for displaying the results in text format on an LCD module. Four analog blocks, five logic blocks, and many I/O pins remain available to support a more demanding application. Figure 3 shows configurable blocks that are available for adding features.

  英文原文地址:http://www.edn.com/article/CA6382647.html

本站聲明: 本文章由作者或相關(guān)機構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點,本站亦不保證或承諾內(nèi)容真實性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系本站刪除。
換一批
延伸閱讀

9月2日消息,不造車的華為或?qū)⒋呱龈蟮莫毥谦F公司,隨著阿維塔和賽力斯的入局,華為引望愈發(fā)顯得引人矚目。

關(guān)鍵字: 阿維塔 塞力斯 華為

加利福尼亞州圣克拉拉縣2024年8月30日 /美通社/ -- 數(shù)字化轉(zhuǎn)型技術(shù)解決方案公司Trianz今天宣布,該公司與Amazon Web Services (AWS)簽訂了...

關(guān)鍵字: AWS AN BSP 數(shù)字化

倫敦2024年8月29日 /美通社/ -- 英國汽車技術(shù)公司SODA.Auto推出其旗艦產(chǎn)品SODA V,這是全球首款涵蓋汽車工程師從創(chuàng)意到認證的所有需求的工具,可用于創(chuàng)建軟件定義汽車。 SODA V工具的開發(fā)耗時1.5...

關(guān)鍵字: 汽車 人工智能 智能驅(qū)動 BSP

北京2024年8月28日 /美通社/ -- 越來越多用戶希望企業(yè)業(yè)務(wù)能7×24不間斷運行,同時企業(yè)卻面臨越來越多業(yè)務(wù)中斷的風(fēng)險,如企業(yè)系統(tǒng)復(fù)雜性的增加,頻繁的功能更新和發(fā)布等。如何確保業(yè)務(wù)連續(xù)性,提升韌性,成...

關(guān)鍵字: 亞馬遜 解密 控制平面 BSP

8月30日消息,據(jù)媒體報道,騰訊和網(wǎng)易近期正在縮減他們對日本游戲市場的投資。

關(guān)鍵字: 騰訊 編碼器 CPU

8月28日消息,今天上午,2024中國國際大數(shù)據(jù)產(chǎn)業(yè)博覽會開幕式在貴陽舉行,華為董事、質(zhì)量流程IT總裁陶景文發(fā)表了演講。

關(guān)鍵字: 華為 12nm EDA 半導(dǎo)體

8月28日消息,在2024中國國際大數(shù)據(jù)產(chǎn)業(yè)博覽會上,華為常務(wù)董事、華為云CEO張平安發(fā)表演講稱,數(shù)字世界的話語權(quán)最終是由生態(tài)的繁榮決定的。

關(guān)鍵字: 華為 12nm 手機 衛(wèi)星通信

要點: 有效應(yīng)對環(huán)境變化,經(jīng)營業(yè)績穩(wěn)中有升 落實提質(zhì)增效舉措,毛利潤率延續(xù)升勢 戰(zhàn)略布局成效顯著,戰(zhàn)新業(yè)務(wù)引領(lǐng)增長 以科技創(chuàng)新為引領(lǐng),提升企業(yè)核心競爭力 堅持高質(zhì)量發(fā)展策略,塑強核心競爭優(yōu)勢...

關(guān)鍵字: 通信 BSP 電信運營商 數(shù)字經(jīng)濟

北京2024年8月27日 /美通社/ -- 8月21日,由中央廣播電視總臺與中國電影電視技術(shù)學(xué)會聯(lián)合牽頭組建的NVI技術(shù)創(chuàng)新聯(lián)盟在BIRTV2024超高清全產(chǎn)業(yè)鏈發(fā)展研討會上宣布正式成立。 活動現(xiàn)場 NVI技術(shù)創(chuàng)新聯(lián)...

關(guān)鍵字: VI 傳輸協(xié)議 音頻 BSP

北京2024年8月27日 /美通社/ -- 在8月23日舉辦的2024年長三角生態(tài)綠色一體化發(fā)展示范區(qū)聯(lián)合招商會上,軟通動力信息技術(shù)(集團)股份有限公司(以下簡稱"軟通動力")與長三角投資(上海)有限...

關(guān)鍵字: BSP 信息技術(shù)
關(guān)閉
關(guān)閉