-
/* 程序详细功能介绍:
* 用AT89S51单片机产生“嘀、嘀、…”报警声从P3.2端口输出,产生频率为1KHz,
* 1KHZ方波从P3.2输出...
/* 程序详细功能介绍:
* 用AT89S51单片机产生“嘀、嘀、…”报警声从P3.2端口输出,产生频率为1KHz,
* 1KHZ方波从P3.2输出0.2秒,接着0.2秒从P3.2输出电平信号,如此循环下去,就形成我们所需的报警声了。
*
* 程序设计方法
*(1.生活中我们常常到各种各样的报警声,例如“嘀、嘀、…”就是常见的一种声音报警声,
* 但对于这种报警声,嘀0.2秒钟,然后断0.2秒钟,如此循环下去,假设嘀声的频率为1KHz,
* 由于要产生上面的信号,我们把上面的信号分成两部分,一部分为1KHZ方波,
* 占用时间为0.2秒;另一部分为电平,也是占用0.2秒;因此,我们利用单片机的定时/计数器T0作为定时,
* 可以定时0.2秒;同时,也要用单片机产生1KHZ的方波,对于1KHZ的方波信号周期为1ms,
* 高电平占用0.5ms,低电平占用0.5ms,因此也采用定时器T0来完成0.5ms的定时;
* 最后,可以选定定时/计数器T0的定时时间为0.5ms,而要定时0.2秒则是0.5ms的400倍,
* 也就是说以0.5ms定时400次就达到0.2秒的定时时间了。
*/
- 2022-05-23 23:28:34下载
- 积分:1
-
128*64程序和仿真80C51
128*64 LCM program and simulate for 80C51.
help for you...
128*64程序和仿真80C51
128*64 LCM program and simulate for 80C51.
help for you -128* 64 procedures and simulation 80C51128* 64 LCM program and simulate for 80C51.help for you
- 2022-03-25 00:07:02下载
- 积分:1
-
字模的提取程序,应用于单片机的小应用程序
字模的提取程序,应用于单片机的小应用程序-Matrix extraction procedure, applied to small single-chip applications
- 2023-03-22 15:40:04下载
- 积分:1
-
16分钟语音芯片ISD4004操作的C51源程序,自己调试通过的!
16分钟语音芯片ISD4004操作的C51源程序,自己调试通过的!-16 minutes of voice chip ISD4004 operated source C51, adopted its own debugging!
- 2022-05-27 07:29:44下载
- 积分:1
-
with ADuC8xx MCU AD converter, DA conversion, Chip flashdata operation, timer, c...
用ADuC8xx单片机实现AD转换、DA转换、片内flashdata的操作、定时器、计数器和I2C通信的源码-with ADuC8xx MCU AD converter, DA conversion, Chip flashdata operation, timer, counter and I2C communications FOSS
- 2023-01-21 10:20:04下载
- 积分:1
-
设计使得原本需要14个IO接口的键盘显示少用了9个单片机IO接口,虽然该设计的优势在本实验中没有完全体现出来,但若在现代工业设计中应用此方案,在对引脚需要较大的...
设计使得原本需要14个IO接口的键盘显示少用了9个单片机IO接口,虽然该设计的优势在本实验中没有完全体现出来,但若在现代工业设计中应用此方案,在对引脚需要较大的产品中其优点将体现得淋漓尽致。.-Design makes the original needs 14 IO interface shows the use of a keyboard 9 Singlechip IO interface, although the advantages of the design in this experiment did not fully reflected, but in modern industrial design in the application of this program in the pairs of primers Products feet larger in its merits and will be reflected most vividly. .
- 2023-05-31 14:15:02下载
- 积分:1
-
家用热水器,用汇编编写,支持代码贡献机制,好东西大家分享
家用热水器,用汇编编写,支持代码贡献机制,好东西大家分享-Household water heaters, with the compilation prepared to support the code contribution mechanism to share good things
- 2022-01-24 10:23:26下载
- 积分:1
-
MS12864
MS12864-R驱动,c语言的,并行数据口-MS12864-R drive, c language, parallel data port
- 2023-01-19 16:55:03下载
- 积分:1
-
C51 4 3键盘、LED数码显示、串行通信
C51的4×3键盘、LED数码显示、串行通讯-C51 4 3 keyboard, LED digital display, serial communications
- 2023-01-13 12:50:03下载
- 积分:1
-
利用单片机与18B20温度测试芯片,所测试的温度精度为0.0625,显示采用4位数码管静态显示。实验调试能够正确得到室内温度。...
利用单片机与18B20温度测试芯片,所测试的温度精度为0.0625,显示采用4位数码管静态显示。实验调试能够正确得到室内温度。-Using the monolithic integrated circuit and the 18B20 temperature test chip, the temperature precision which tests is 0.0625, demonstrated uses 4 nixietube static state demonstration.The experiment debugs can obtain the indoor temperature correctly.
- 2022-12-13 08:55:03下载
- 积分:1