《電子技術應用》
您所在的位置:首頁 > 可編程邏輯 > 解決方案 > 用于位置測量的PSoC微控制器與LVDT

用于位置測量的PSoC微控制器與LVDT

2012-01-30

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

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

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

LVDT接口的完整電路

圖1 LVDT接口的完整電路

PSoC微控制器的內部電路框圖

圖2 PSoC微控制器的內部電路框圖

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

 

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

 

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

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

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

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

  大量PSoC資源仍可用于計算LVDT位置,以及在LCD模塊上以文本形式顯示結果。四個模擬電路模塊、五個邏輯電路模塊和很多I/O管腳都可用于支持更高要求的應用。圖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

本站內容除特別聲明的原創文章之外,轉載內容只為傳遞更多信息,并不代表本網站贊同其觀點。轉載的所有的文章、圖片、音/視頻文件等資料的版權歸版權所有權人所有。本站采用的非本站原創文章及圖片等內容無法一一聯系確認版權者。如涉及作品內容、版權和其它問題,請及時通過電子郵件或電話通知我們,以便迅速采取適當措施,避免給雙方造成不必要的經濟損失。聯系電話:010-82306118;郵箱:aet@chinaaet.com。
亚洲一区二区欧美_亚洲丝袜一区_99re亚洲国产精品_日韩亚洲一区二区
中文成人激情娱乐网| 亚洲欧美日韩精品久久久| 国产精品久久久久久一区二区三区| 美女诱惑黄网站一区| 久久精品水蜜桃av综合天堂| 亚洲综合日本| 亚洲免费人成在线视频观看| 一区二区三区www| 亚洲美女性视频| 亚洲精品国产精品国自产观看| 亚洲东热激情| 亚洲国产精品久久久久| 久久国产精彩视频| 久久福利毛片| 亚洲国产成人不卡| 亚洲国产成人精品久久久国产成人一区 | 亚洲一区二区三区在线观看视频 | 美女图片一区二区| 看片网站欧美日韩| 免费在线观看一区二区| 欧美成人综合在线| 欧美日韩国产综合一区二区| 欧美日韩国产黄| 国产精品电影观看| 国产精品人人做人人爽人人添| 国产精品视频99| 国产日韩欧美高清| 韩国av一区二区| 亚洲成色精品| 亚洲免费黄色| 亚洲欧美国产日韩天堂区| 欧美制服丝袜第一页| 亚洲精品乱码| 亚洲一区精品视频| 欧美一区2区三区4区公司二百| 久久精品国产亚洲一区二区三区 | 亚洲一区二区三区四区在线观看 | 国产精品毛片| 欧美性视频网站| 国产精品日日摸夜夜摸av| 国产日产欧产精品推荐色 | 国产日韩欧美在线| 极品av少妇一区二区| 亚洲高清在线视频| 亚洲免费精彩视频| 亚洲一区在线直播| 亚洲国产91精品在线观看| 夜夜狂射影院欧美极品| 欧美一区二区三区免费在线看 | 久久精品亚洲精品国产欧美kt∨| 亚洲人妖在线| 亚洲在线日韩| 久久人人97超碰人人澡爱香蕉| 欧美黄色一区| 国产欧美日本| 亚洲国产小视频| 亚洲一区二区三区视频| 亚洲激情视频网| 亚洲欧美综合国产精品一区| 免费成人高清视频| 国产精品xvideos88| 今天的高清视频免费播放成人| 99精品免费视频| 欧美一区精品| 亚洲午夜在线视频| 免费视频一区二区三区在线观看| 欧美视频中文一区二区三区在线观看 | 一区二区动漫| 亚洲第一页中文字幕| 亚洲专区免费| 欧美黄色免费网站| 国产一区二区黄色| 一区二区欧美国产| 亚洲国产另类久久久精品极度| 亚洲一区二区三区在线| 牛人盗摄一区二区三区视频| 国产精品每日更新| 亚洲激情综合| 久久av红桃一区二区小说| 亚洲一区二区综合| 欧美精品一区二区久久婷婷| 国产一区二区三区av电影| 99热这里只有精品8| 亚洲高清免费在线| 午夜精品福利一区二区蜜股av| 欧美韩日视频| 伊人久久噜噜噜躁狠狠躁| 亚洲综合精品自拍| 亚洲深爱激情| 欧美精品国产| 黄色成人小视频| 午夜精品电影| 午夜免费久久久久| 欧美日韩少妇| 亚洲国内欧美| 亚洲全黄一级网站| 久久免费视频这里只有精品| 国产美女一区| 亚洲在线视频网站| 亚洲婷婷综合久久一本伊一区| 欧美a级在线| 激情五月婷婷综合| 香蕉国产精品偷在线观看不卡| 亚洲免费在线视频| 欧美日韩综合| 日韩一二三区视频| 99精品视频免费观看| 欧美成人午夜激情在线| 精品91在线| 亚洲高清视频的网址| 久久网站免费| 国产在线欧美日韩| 午夜精品久久久久久久久久久久| 亚洲欧美激情一区| 国产精品成人一区二区三区吃奶| 亚洲另类春色国产| 亚洲乱码精品一二三四区日韩在线 | 亚洲午夜在线观看视频在线| 亚洲视频在线看| 欧美色道久久88综合亚洲精品| 亚洲日本中文| 亚洲精品免费一二三区| 蜜桃伊人久久| 亚洲人成网在线播放| 99热免费精品在线观看| 欧美久久久久免费| 亚洲剧情一区二区| 亚洲一区日韩| 国产精品视频导航| 午夜欧美不卡精品aaaaa| 欧美在线国产精品| 国产在线欧美日韩| 亚洲国语精品自产拍在线观看| 免费观看成人www动漫视频| 在线欧美电影| 在线视频中文亚洲| 欧美调教vk| 亚洲欧美日韩精品| 久久香蕉精品| 亚洲国产精品成人| 亚洲网站视频福利| 国产欧美另类| 亚洲高清资源| 欧美精品一区二区三| 一本色道婷婷久久欧美| 亚洲欧美激情视频在线观看一区二区三区| 国产精品美女久久| 亚洲成色777777女色窝| 亚洲性线免费观看视频成熟| 国产精品免费一区豆花| 亚洲小说区图片区| 欧美自拍偷拍| 一区二区视频免费完整版观看| 亚洲精品护士| 欧美日韩一区不卡| 亚洲欧美国产精品桃花| 久久综合一区二区| 亚洲免费久久| 久久国内精品视频| 亚洲第一区在线| 亚洲一区二区三区精品在线| 国产日韩欧美自拍| 亚洲三级影院| 国产精品免费aⅴ片在线观看| 欧美一级视频| 欧美人与禽猛交乱配视频| 亚洲在线观看视频| 欧美a级理论片| 亚洲综合导航| 久久最新视频| 一本一本久久a久久精品综合麻豆| 久久精品导航| 亚洲精品免费看| 久久九九有精品国产23| 亚洲毛片av在线| 久久精品亚洲一区二区三区浴池| 亚洲精品1234| 久久精品免费看| 99综合视频| 久久综合激情| 亚洲视频中文字幕| 欧美jizzhd精品欧美巨大免费| 亚洲理伦电影| 久久久无码精品亚洲日韩按摩| 亚洲美女黄网| 久久午夜色播影院免费高清| 夜夜嗨av一区二区三区网站四季av| 久久久福利视频| 在线亚洲精品福利网址导航| 久久综合网hezyo| 亚洲欧美日韩在线一区| 欧美日韩1234| 亚洲高清免费视频| 国产九九精品视频| 中文网丁香综合网| 亚洲第一在线| 久久久久久久久久久久久久一区| 一区二区三区免费网站| 免费日韩av电影| 久久国产精品99国产精|