⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frecuencimetro.bas

📁 Program in basic that simulates a frecuencimeter, explained well
💻 BAS
字号:
declare xtal=20
device=16f877
DECLARE LCD_RSPIN PORTB.2
DECLARE LCD_ENPIN PORTB.3
DECLARE LCD_DTPIN PORTB.4
input portc
Dim Estado as bit
DIM Periodo as word
Dim Frec as Float
Programa:
Estado=portc.0
if estado=0 then
Periodo=pulsin PORTC.0,1
else
Periodo=pulsin PORTC.0,0
end if
Frec=52359.877566667/Periodo
Print at 1,1,"f:",at 1,5, dec frec
goto Programa

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -