基于复杂可编程逻辑器件的数字频率计的设计与实现外文翻译(共7页).doc
《基于复杂可编程逻辑器件的数字频率计的设计与实现外文翻译(共7页).doc》由会员分享,可在线阅读,更多相关《基于复杂可编程逻辑器件的数字频率计的设计与实现外文翻译(共7页).doc(7页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上Design and Implementation ofDigital Cymometer Based on CPLDAbstractWith the adoption of the top-down design method and AT89C51 SCMC (Single Chip Mico Computer) as the master control component of the system ,the circuit test signalcontrolling ,data operation processing ,keyboard scanning
2、 ,and nixie tube display as well were completed by the digital cymometer.A CPLD ,EPM7128SLC84-15 ,programmed by VHDL ,realized various sequence control and count functions .The system is characterized by impact structure ,high reliability ,high precision ,and wide frequency-test-range .Keywords digi
3、tal cymometer,complex programmable logic device,SCMC,EDA technology1 IntroductionThe system core called SCMC (Single Chip Mico Computer) emerges constantly despite the unceasing development of electronic and computer technologies.The frequency measurement or cycle measurement is usually utilized for
4、 testing signals that use frequency as a parameter. When the tested frequency is relatively high ,relatively high precision can be available with frequency measurement . When the tested frequency isrelatively low ,relatively high precision can be a vailable with cycle measurement . However , neither
5、 of them can ensure the measurement precision in the whole frequency range ,when the range of tested frequency is comparatively wide .This digital Cymometer utilizes the advanced EDA technology and top-down design method . Thus ,the Cynometer implements the equal precision measurement of the signal
6、frequency range of 0.1 Hz50MHzby AT89C51 SCMC and CPLD,and also measures pulse width and duty ratio . Because of the convenience of CPLD programming ,quick speed , high integration , and low price , the system research circle is extremelyshortened and the product ratio of performance versus price is
7、 improved . The CPLD chip employs the popular VHDL and achieves all the program design and Download on the MAX+PlusII software platform . The control portion of SCMC ,programmed by assemble language precisely sets time , exactly controls startup and closedown of frequency-test count strobe ,which fu
8、rther ensures measurement precision . System theory and software & hardware design are introduced below .2 Equal precision measurement theoryIn CPLD ,top-level circuit structure realized by VHDL is shown in figure 1 ,where CONTROL1 is control module of frequency-est ,CONTROL2 is control module of pu
9、lse-width-test and duty ratio,CHOICE is choice module of self-djustment and measurement ;COUNT is count module of datum frequency and frequency-test . Under the control of SCMC ,the CPLD accomplishes frequency-test in the following steps :(a) Plus pulse signal is added at CLR , thereby completing th
10、e initialization of testing circuit state (when frequency is tested ,CS ,AS is low ,ED2 is irrelevant ) .(b) When strobe signal STROBE is set high ,timing starts . Meanwhile ,rising edge of pulse-test signal Fx ,which is selected by CHOICE module , initiates frequency-test control module CONTROL1 ,
11、which makes two sets of 32-bit counter within COUNT take count of datum frequency signal Fs and signal-test Fx synchro no usly .(c) STROBE is set low when stro be timing ends . COUNT stops counting once rising edge of next pulse of signal-test advents .(d) After count finishes ,ED1 outputs low level
12、 to apply for interrupt from SCMC. In the Interrupt Service Routine ,SCMC reads count value of datum frequency signal and signal-test in COUNT from port P0 and P2 of SCMC for four times , through encoding address line SS1 and SS0 . If the count value of signal-test is Nx ,datum frequencys is Ns ,the
13、n Fx=( Fs/ N s) N x . Fig . 1 Frequency measurement top-level module3 Design of system hardware circuitThe block diagram of system hardware circuit is shown in f igure 2 .There is a 4 kB Flash Memory in A T89C51 SCMC into which all control program can be stored . SCMC writes the result tested from C
14、PLD each time into RAM ,and t hen sends it in decimal into eight-bit nixie tube display circuit to display after operation processing . Keyboard control command is written into SCMC via a 74LS165 ,Parallel in/ Serial Output Shift Registers . SCMC utilizes one 12MHz crystal whose oscilla-tion pulse i
15、s served as self-adjustment input of CPLD at the same time . Signal-test is inputted to CPLD via wide band amplify and Schmitt circuit shape . 50MHz active crystal module is used for datum frequency input .4 VHDL program designCPLD software program is achieved by VHDL . A portion of top-level module
16、 program is as follow :LIBRARY IEEE ;USE IEEE. STD_LOGIC_1164 . ALL ;USE IEEE. STD_LOGIC_UNSIGNED . ALL ;ENTITY FREQUENCY8 ISPORT ( SS0 ,SS1 ,FS ,FX ,FC ,CLR ,AS ,STROBE ,CS : IN STD_LOGIC ;ED1 , ED2 :OUT STD_LOGIC ;B :OUT STD_LOGIC_VECTOR (15 DOWNTO 0) ) ;END FREQUENCY8 ;ARCHITECTURE RTL OF FREQUEN
17、CY8 ISSIGNAL FX0 ,CLKX ,CLKS ,CLE ,SSL1 : STD_LOGIC ;COMPONENT COUNTPORT ( FX1 ,FS1 ,CLR ,SS0 ,SS1 : IN STD_LOGIC ;B :OUT STD_LOGIC_VECTOR (15 DOWNTO 0) ) ;END COMPONENT ;BEGINU1 :CHOICE PORT MAP ( FX = FX ,FC = FC ,AS =AS ,FOUT =FX0) ;U2 :CONTROL1 PORT MAP( FX1=FX0 , STROBE =STROBE ,CLR=CLR , FS=FS
18、 ,CS =CS ,SSL=SSL1 ,CLK1=CLKX ,CLK2 =CLKS ,CLRC =CLE ,ED1 = ED1) ;U3 :CONTROL2 PORT MAP( FIN=FX0 ,STROBE = STROBE ,CLR=CLR ,SSL=SSL 1 ,ED2=ED2) ;U4 :COUNT PORT MAP(FX1=CLKX ,FS1=CLKS ,CLR=CLE ,SS0 = SS0 ,SS1 = SS1 ,B = B) ;END RTL ;Figure 3 is the emulation waveform diagram when signal-test Fx=10MHz
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 复杂 可编程 逻辑 器件 数字频率计 设计 实现 外文 翻译
限制150内