微型机与应用
微型機與應用
미형궤여응용
MICROCOMPUTER & ITS APPLICATIONS
2014年
21期
92-94
,共3页
频率计%定时器 A%TAR%小信号%电参数
頻率計%定時器 A%TAR%小信號%電參數
빈솔계%정시기 A%TAR%소신호%전삼수
frequency counter%timer A%TAR%small signal%electrical parameter
为精确测量信号的频率、周期等电参数,设计了一种以 MSP430F149单片机为控制核心,外接1602显示屏的简易频率计,可以用于测量信号的频率、周期以及方波的占空比和脉宽时间。该频率计利用单片机的定时器 A捕捉相邻上升、下降沿。通过处理对应时刻的 TAR值,计算得出频率、周期等电参量,并在1602上显示。经过测试,该系统简洁方便、功能多样,频率测量误差低于0.1%,达到设计的指标,信号频率的测量范围为1 Hz~1 MHz,可用于测量小信号,能够满足实际要求,可投入实际测量中使用。
為精確測量信號的頻率、週期等電參數,設計瞭一種以 MSP430F149單片機為控製覈心,外接1602顯示屏的簡易頻率計,可以用于測量信號的頻率、週期以及方波的佔空比和脈寬時間。該頻率計利用單片機的定時器 A捕捉相鄰上升、下降沿。通過處理對應時刻的 TAR值,計算得齣頻率、週期等電參量,併在1602上顯示。經過測試,該繫統簡潔方便、功能多樣,頻率測量誤差低于0.1%,達到設計的指標,信號頻率的測量範圍為1 Hz~1 MHz,可用于測量小信號,能夠滿足實際要求,可投入實際測量中使用。
위정학측량신호적빈솔、주기등전삼수,설계료일충이 MSP430F149단편궤위공제핵심,외접1602현시병적간역빈솔계,가이용우측량신호적빈솔、주기이급방파적점공비화맥관시간。해빈솔계이용단편궤적정시기 A포착상린상승、하강연。통과처리대응시각적 TAR치,계산득출빈솔、주기등전삼량,병재1602상현시。경과측시,해계통간길방편、공능다양,빈솔측량오차저우0.1%,체도설계적지표,신호빈솔적측량범위위1 Hz~1 MHz,가용우측량소신호,능구만족실제요구,가투입실제측량중사용。
To realize the accurate measurement of frequency and other electrical parameters of a signal, we design a simple frequency counter which is based on MSP430F149 as the core and 1602 LCD screen. It can be used to measure the frequency and period of signal, the duty ratio and pulse width of square wave which is to be measured. This frequency counter uses the timer A of the SCM, catches the rising edge and the falling edge which are near. By calculating the corresponding TAR results, we can get the frequency, period and other electrical parameters and show the results on the 1602 screen. After test, frequency is under 0.1%. This meets the index of the design. The range of the frequency is 1 Hz~1 MHz. The system can be used to measure small signal. The frequency can meet the actual requirements and it can be used in the actual measurement.