CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - timer in 8051
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
assembly language
SCSI-ASPI
ELanguage
Disk Tools
Speech/Voice recognition/combine
Editor
Anti-virus
MultiLanguage
MPI
source in ebook
Delphi VCL
OS Develop
MiddleWare
MacOS develop
LabView
e-language
python
Search - timer in 8051 - List
[
assembly language
]
time
DL : 0
1、 8051内部定时计数器T0,按计数器模式和方式1工作,对P3.4(T0)引脚进行计数。将其数值按二进制数在P1口驱动LED灯上显示出来。 2、外部事件计数脉冲由P3.4引入定时器T0。单片机在每个机器周期采样一次输入波形,因此单片机至少需要两个机器周期才能检测到一次跳变。这就要求被采样电平至少维持一个完整的机器周期,以保证电平在变化之前即被采样。同时这就决定了输入波形的频率不能超过机器周期频率。-Internal timing counter T0 1, 8051, according to counter mode and methods of 1, to P3.4 (T0) pin count. Its value according to the binary number displayed on the P1 mouth drive leds. 2, external event count pulse introduced by P3.4 T0 timer. SCM in each machine cycle sampling the input waveform, so SCM needs at least two machine cycles to detect a jump. This request is sampling level to maintain at least one full machine cycle, in order to make sure the level before they can change by sampling. At the same time it determines the frequency of the input waveform frequency cannot exceed the machine cycle.
Date
: 2025-12-31
Size
: 14kb
User
:
潘敏
[
assembly language
]
waterled
DL : 0
在使用12MHz晶振的条件下,由8051内部定时器1按方式1工作,即作为16位定时器使用,每0.05秒钟T1溢出中断一次。 P1口的P1.0~P1.7分别接发光二极管的L1~L8。(用连线连接J2、J3)。 要求:编写程序模拟一循环彩灯。彩灯变化花样为:①L1、L2、…L8依次点亮;②L1、L2、…L8依次熄灭;③L1、L2、…L8全 亮、全灭。各时序间隔为0.5秒。让发光二极管按以上规律循环显示下去。- In the case of using 12MHz crystal condition, 1 1 in the manner of work by the 8051 internal timer, that is, as 16-bit timer, every 0.05 seconds T1 overflow interrupt again. P1 port P1.0 ~ P1.7 are connected to the light-emitting diodes L1 ~ L8. (With a line connecting J2, J3). Requirements: programming a simulation cycle lights. Lantern pattern of change: ①L1, L2, ... L8 were lit ②L1, L2, ... L8 turn off ③L1, L2, ... L8 whole light, completely destroyed. Each timing interval of 0.5 seconds. Let the light emitting diode according to the above laws cycle continues.
Date
: 2025-12-31
Size
: 41kb
User
:
Chen Meng
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.