大香蕉大香蕉在线播放-日韩av在线一区中文字幕-日韩熟女熟妇久久精品综合-精品免费视频一区二区三区

技術(shù)熱線: 4007-888-234
設(shè)計(jì)開發(fā)

專注差異化嵌入式產(chǎn)品解決方案 給智能產(chǎn)品定制注入靈魂給予生命

開發(fā)工具

提供開發(fā)工具、應(yīng)用測(cè)試 完善的開發(fā)代碼案例庫分享

技術(shù)支持

從全面的產(chǎn)品導(dǎo)入到強(qiáng)大技術(shù)支援服務(wù) 全程貼心伴隨服務(wù),創(chuàng)造無限潛能!

新品推廣

提供新的芯片及解決方案,提升客戶產(chǎn)品競(jìng)爭(zhēng)力

新聞中心

提供最新的單片機(jī)資訊,行業(yè)消息以及公司新聞動(dòng)態(tài)

50M頻率表的電路圖及源程序

更新時(shí)間: 2019-03-26
閱讀量:2472

50M頻率表的電路圖及源程序

 

電路圖:

1.png

源程序:

 

;*******************************************************************
;                          FMETER.ASM
;             4 digits auto-ranging frequency-meter
;           made by Simone Benvenuti & Andrea Geniola
;       e-mail: simone.benvenuti@studenti.ing.unipi.it
;               andrea.geniola@studenti.ing.unipi.it
;*******************************************************************
;

; A frequency counter which can read frequencies from 0Hz to 50MHz is
; here implemented using a PIC microcontroller. The basic hardware for
; the measurement circuit is shown below: the measure result can be read
; on 4 seven-segments displays in the engeneering notation (A.BC * 10^D).
; The displays are driven using only 11 output pins and 4 transistors;
; during a refresh cycle each digit is turned on for 62.5 usec
; The imput frequency is "gated" for a precise duration of time. The gate
; is implemented in software as an accurate delay. In order to minimize
; the error the gate is 1msec wide if the frequency is above 256KHz,
; otherwise is 1msec wide. If the frequency is below 128Hz the digits
; blink to warn that the error can be greater than the device resolution.
; To minimize the energy consumption the PIC turns in sleep mode if no

; input signal is detected for 10sec (this period is software tunable),
; but it wake-up itself immediately when the input is stimulated.
; The program is written for the PIC16C84 but cheaper PICs (as PIC16C61)
; can be used.
;
;                        ________________
;             cents gnd -| RA2      RA1 |- tenths gnd      
;             esp   gnd -| RA3      RA0 |- units gnd       

; input -/\/\/\/\--+-----| RA4/TOCKI    |-                    ___a___
;         470ohm   |    -|              |- 4 MHz cristal      |     |
;                  | gnd-|              |- VDD 3..5 Volt     f|     |b
;   input control  +-----| RB0      Rb7 |- "g" segment        |  g  |
;          "a" segment  -| RB1      RB6 |- "f" segment        |-----|
;          "b" segment  -| RB2      RB5 |- "e" segment       e|     |c
;          "c" segment  -| RB3      RB4 |- "d" segment        |  d  |
;                        ----------------                     -------
;*******************************************************************
;
        LIST    p=16C84, wdte=0 ; PIC16C84 is the target processor

;
;status registers:
pc equ 02 ;program counter
porta   equ     05      ;I/O register
portb   equ     06      ;I/O register
status  equ     03      ;status register
tmr     equ     01      ;8 bits counter
trisa   equ     0x5     ;port "a" direction register
trisb   equ     0x6     ;port "b" direction register
intcon  equ     0x0B    ;interrupt control register

;general registers:
unita   equ     0x0C      ;display units 
decimi  equ     0x1D      ;display tenths 
cents   equ     0x1E      ;display cents 
esp     equ     0x1F      ;display exponent 
H_byte  equ     0x10      ;high_byte of the read number (N)
L_byte  equ     0x11      ;low_byte of the read number (N)
conta_r equ     0x12      ;refresh counter
cifra   equ     0x13      ;parameter
U       equ     0x14      ;units
D       equ     0x15      ;tens
H       equ     0x16      ;hundreds
M       equ     0x17      ;thousands
DM      equ     0x18      ;tens of thousands

addwf   DM
movlw   0x05
addwf   M
movlw   0x05
        addwf   H
movlw   0x03
addwf   D
movlw   0x06
        addwf   U               ;add 65536
return
     END

 


差鸡巴没码在线观看| 使劲操我小穴视频| 国产中文字幕在线一区二区三区| 亚洲av一区二区在线看| 亚洲综合极品香蕉久久网| 无码成人一区二区| 丁香婷婷亚洲六月综合色| 黄网官方在线观看| 大胸美女被c的嗷嗷叫视频| 国产高欧美性情一线在线| 欧美99热这里都是精品| 激情久久久久久久久久久| 久久综合久久久久综合大| 九九视频免费在线观看| 翘臀小穴在线观看| 国产163黄网人看人人爽| 欧美 日韩 国产 自拍| 国产A级黄片下载| 老司机午夜精品视频无码| 亚洲国产无线码在线| 美女被插入小穴涩涩视频| 男人的下面进女人的下面在线观看| 精品福利一区二区三区在线观看| 国产免费无码一区二区视频无码| 美女被插入小穴爆操视频| 美女麻豆颜色光屁股眼子| 九九热在线精品免费看| 日韩高清精品一区有码在线| 国产品无码一区二区三区在线| 我要操死你逼视频| 亚洲一区二区三区大胆视频| 亚洲国产精品伦理在线看| 最新的亚洲欧美中文字幕| 五月天国产成人免费视频 | 极品一区二区三区av| 国产精品免费久久久久久| 日本免费一区二区在线| 欧美区 日韩区 亚洲区| 日本a国产精品久久久久| 夜色成人免费观看| 亚洲国产日韩欧美高清片|