-
/* 程序详细功能介绍:
* 用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
-
Download Msp430
Msp430-JTAG调试下载器, -Download Msp430-JTAG debugger, and
- 2022-04-08 18:04:00下载
- 积分:1
-
need Sunplus IDE open, and c is a comprehensive compilation, learning Sunplus 16...
需要凌阳的IDE打开,是c和汇编的综合,学习凌阳16位单片机的基础题目-need Sunplus IDE open, and c is a comprehensive compilation, learning Sunplus 16 topics based MCU
- 2022-01-26 06:38:38下载
- 积分:1
-
周立功ZLG7289 驱动原代码
周立功ZLG7289 驱动原代码 -ZLG7289project16project16project16
- 2022-03-19 08:26:48下载
- 积分:1
-
KEILC51 skills and the use of combat is on an Intel 80C51 and a vast 51 Microcon...
KEILC51使用技巧及实战
是一本关于Intel 80C51 以及广大的51 系列单片机的书这本书介绍给读者一些新的技术使你的8051 工程和开发过程变得简单请-KEILC51 skills and the use of combat is on an Intel 80C51 and a vast 51 Microcontroller series of books on this book to give readers some new technology to make your 8051 projects and the development process becomes simple request
- 2022-05-18 05:24:48下载
- 积分:1
-
CAN总线传输及液晶显示文章,示例代码
CAN总线传输及液晶显示文章,示例代码-CAN transmission and LCD articles, sample code
- 2022-09-23 01:45:04下载
- 积分:1
-
51系列单片机实验课程:串口
(通过计算机与试验箱相连,互相收发信息)...
51系列单片机实验课程:串口
(通过计算机与试验箱相连,互相收发信息)-51 Series single-chip experimental curriculum: serial (through the computer and the chamber connected to each other to send and receive information)
- 2022-03-29 02:46:43下载
- 积分:1
-
C8051F020 development environment based on the single
基于单片机c8051F020开发环境下的计数器程序代码-C8051F020 development environment based on the single-chip counters under the code
- 2022-10-04 04:20:03下载
- 积分:1
-
Single
单片机结合简单外围计数电路设计的频率计,内附电路和c源代码-Single-chip combination of a simple design of the external counting circuit frequency meter, enclosing the circuit and c source code
- 2023-05-12 03:35:03下载
- 积分:1
-
ADC0803家庭是三系列CMOS 8
The ADC0803 family is a series of three CMOS 8-bit successive
approximation A/D converters using a resistive ladder and
capacitive array together with an auto-zero comparator. These
converters are designed to operate with microprocessor-controlled
buses using a minimum of external circuitry. The 3-State output data
lines can be connected directly to the data bus.
- 2022-06-30 01:33:30下载
- 积分:1