-
fer1
$regfile = M8DEF.dat internal crystal 8000000
Config Lcdpin = Pin , Db4 = Portc.1 , Db5 = Portc.2 , Db6 = Portc.3 , Db7 = _
Portc.4 , E = Portd.2 , Rs = Portd.3
Config Lcd = 16 * 2
Config Timer1 = Counter , Edge = Rising
Ddrb.1 = 0 : Portb.1 = 1 PULL UP RESISTOR ACTIVATED
Config Timer0 = Timer , Prescale = 1024
Enable Counter1
Enable Interrupts
Enable Timer0
Enable Timer1
On Ovf1 Pulsecount
On Ovf0 Ovf0occures
Dim A As Long , I As Long , B As Byte
B = 0
Cls
Start Timer0
Do
Loop
End end program
Ovf0occures:
Incr I
If I > 30 Then
Stop Timer0
Cls : Home
A = B * 65536
A = A + Counter1
Lcd FREQ IS : A HZ
B = 0
I = 0 : Counter1 = 0
Start Timer0
End If
Return
Pulsecount:
Incr B
Counter1 = 0
Return
- 2014-11-22 01:04:48下载
- 积分:1
-
14-chuankoutongxin
51单片机的串口通信程序,来自于开发板,VC环境下编写。(51 the Serial communication program, and from the development board, VC environment prepared.)
- 2010-06-27 13:45:06下载
- 积分:1
-
Flashing-LED
led fleshing in use 8051
- 2011-09-06 14:33:42下载
- 积分:1
-
51watch-dog
通过51看门狗定时器的使用,了解看门狗定时器的功能(Through the use of the watchdog timer 51, the Watchdog Timer function
)
- 2014-03-30 13:16:43下载
- 积分:1
-
13-5-1
电子时钟的小程序,基于89c51单片机,可以实现定时、计时、修改时间等功能。(Electronic clock applet, based on 89c51 microcontroller, can achieve timing, timing, modification time and other functions.)
- 2013-11-17 09:35:47下载
- 积分:1
-
11
说明: 利用定时/计数器T0从P1.0输出周期为1s的方波,让发光二极管以1HZ闪烁,设晶振频率为12MHz(The use of timer/counter T0 from P1.0 output cycle square wave 1s, so that the light-emitting diodes 1HZ blinking, set the crystal frequency is 12MHz)
- 2014-05-27 14:30:43下载
- 积分:1
-
double
说明: power electronic machine model
- 2019-04-30 17:14:48下载
- 积分:1
-
National_Clock_Design_Tool_Instructions
LTM公司芯片的时钟配置资料。内容很详细清楚!(LTM chips clock configuration data. Content is more clear!)
- 2010-12-18 17:13:11下载
- 积分:1
-
keyscanner
说明: 一个很通用的按键扫描程序,可用于单片机控制中(A very common key scanner can be used in the SCM)
- 2010-04-28 20:22:24下载
- 积分:1
-
haifengwork
海风记工表 一个叫完整的程序源码 包含很多技巧 适合初学者学习.(Sea Breeze your working table called complete program source code contains a lot of tips for beginners to learn.)
- 2015-06-21 00:05:30下载
- 积分:1