日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

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

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

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

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

圖1 LVDT接口的完整電路

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

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

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

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

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

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

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

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

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

  參考文獻(xiàn):

  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)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請(qǐng)聯(lián)系該專(zhuān)欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請(qǐng)及時(shí)聯(lián)系本站刪除。
換一批
延伸閱讀

【2025年8月29日,中國(guó)上海訊】近日,第二十屆全國(guó)大學(xué)生智能汽車(chē)競(jìng)賽(以下簡(jiǎn)稱(chēng)“智能車(chē)大賽”)總決賽在杭州舉辦并圓滿(mǎn)結(jié)束。作為大賽主協(xié)辦單位,英飛凌科技從技術(shù)支持與人才培養(yǎng)上全方位支持賽事,踐行產(chǎn)學(xué)研合作,助力行業(yè)人...

關(guān)鍵字: 微控制器 LED驅(qū)動(dòng)芯片 人機(jī)交互

在工業(yè)物聯(lián)網(wǎng)(IIoT)與邊緣計(jì)算快速發(fā)展的背景下,Modbus協(xié)議憑借其輕量化特性成為微控制器(MCU)設(shè)備互聯(lián)的首選方案。然而,在資源受限的MCU(如STM32F0系列、ESP8266等,RAM通常小于32KB,F(xiàn)l...

關(guān)鍵字: 微控制器 Modbus 工業(yè)物聯(lián)網(wǎng)

在工業(yè)物聯(lián)網(wǎng)設(shè)備開(kāi)發(fā)中,Modbus從站功能已成為微控制器(MCU)的標(biāo)配能力。某智能電表項(xiàng)目通過(guò)在STM32上實(shí)現(xiàn)Modbus RTU從站,成功將設(shè)備接入現(xiàn)有SCADA系統(tǒng),開(kāi)發(fā)周期縮短40%。本文將系統(tǒng)解析MCU實(shí)現(xiàn)...

關(guān)鍵字: 微控制器 Modbus 協(xié)議棧優(yōu)化

2025年8月21日 – 專(zhuān)注于引入新品的全球電子元器件和工業(yè)自動(dòng)化產(chǎn)品授權(quán)代理商貿(mào)澤電子 (Mouser Electronics) 即日起開(kāi)售Silicon Labs全新xG26系列無(wú)線SoC和MCU。xG26片上系統(tǒng)...

關(guān)鍵字: SoC 微控制器 物聯(lián)網(wǎng)

現(xiàn)代汽車(chē)力求提供和家里一樣的舒適性和娛樂(lè)功能,因此,行業(yè)對(duì)電子控制單元(ECU)的需求呈現(xiàn)爆發(fā)式增長(zhǎng)。然而,傳統(tǒng)的總線技術(shù)和電氣/電子(E/E)架構(gòu)已經(jīng)難以滿(mǎn)足這種需求。本文探討以太網(wǎng)技術(shù)如何革新汽車(chē)空間,塑造完全互聯(lián)的...

關(guān)鍵字: 以太網(wǎng) ECU 微控制器

在科技飛速發(fā)展的當(dāng)下,智能設(shè)備已深度融入人們的生活與工作。其中,PDA(Personal Digital Assistant,個(gè)人數(shù)字助理)作為一款集信息輸入、存儲(chǔ)、管理和傳遞于一體,且具備辦公、娛樂(lè)、移動(dòng)通信等多種功能...

關(guān)鍵字: 智能設(shè)備 觸摸屏 微控制器

【2025年8月15日,德國(guó)慕尼黑訊】英飛凌科技股份公司(FSE代碼:IFX / OTCQX代碼:IFNNY)近日宣布完成對(duì)Marvell Technology, Inc.(NASDAQ代碼:MRVL)汽車(chē)以太網(wǎng)業(yè)務(wù)的收...

關(guān)鍵字: 以太網(wǎng) 機(jī)器人 微控制器

2025年7月25日,中國(guó) – 服務(wù)多重電子應(yīng)用領(lǐng)域、全球排名前列的半導(dǎo)體公司意法半導(dǎo)體 (STMicroelectronics,簡(jiǎn)稱(chēng)ST) (紐約證券交易所代碼:STM) 公布了按照美國(guó)通用會(huì)計(jì)準(zhǔn)則 (U.S. GAA...

關(guān)鍵字: 微控制器 數(shù)字IC 傳感器

我的項(xiàng)目是一個(gè)自動(dòng)植物澆水系統(tǒng),它通過(guò)檢查土壤濕度和只在需要的時(shí)候澆水來(lái)幫助照顧植物。這是一種保持植物健康的聰明、有效的方法——尤其是在你健忘、忙碌或不在家的時(shí)候。

關(guān)鍵字: 濕度傳感器 微控制器 水泵

Photon 2是一個(gè)光滑的微控制器非常強(qiáng)大和潛力。它有2.4 GHz和5 GHz Wi-Fi, BLE 5, 3mb內(nèi)存,2mb閃存文件系統(tǒng),內(nèi)置電池充電器,支持OTA等等。你可以在這里查看完整的數(shù)據(jù)表。此外,由于這是...

關(guān)鍵字: 物聯(lián)網(wǎng) Particle Photon 2 微控制器
關(guān)閉