-
/* 程序详细功能介绍:
* 用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
-
C8051F350单片机24位AD采样程序。
C8051F350单片机24位AD采样程序。-C8051F350 single-chip 24-bit AD sampling procedures.
- 2022-01-26 08:28:49下载
- 积分:1
-
pic16f877与pc通讯,(源代码)
pic16f877与pc通讯,(源代码)-dsPIC and communications, (source code)
- 2022-02-25 19:28:43下载
- 积分:1
-
我自己刚刚做的一个频率计,不是很会!希望大家给我提意见...
我自己刚刚做的一个频率计,不是很会!希望大家给我提意见-I have just done a frequency counter, it will not! I hope to put forward their views
- 2022-01-31 08:13:10下载
- 积分:1
-
本设计主要是运用单片机设计一个最小系统――电子时钟,它具有24小时计时功能,能够对时间进行调整,并且能实现时、分、秒的显示,同时还有内设闹钟,时间到时候会响铃,...
本设计主要是运用单片机设计一个最小系统――电子时钟,它具有24小时计时功能,能够对时间进行调整,并且能实现时、分、秒的显示,同时还有内设闹钟,时间到时候会响铃,响铃时可以通过按键控制延时再启动或关断。与此同时还设置了整点报时功能;并采用采用了软件去抖的方法扫描键盘,动态刷新显示数码管,并通过查表实现译码输出时间等编程方法;-This design is the use of single-chip design of a minimum system- Electronic clock, it has a 24-hour timer function, capable of time to adjust, and can achieve the hours, minutes and seconds display, but also equipped with alarm clocks, time to When ringing the bell to ring when the button control can delay re-start or shutdown. At the same time also set up the whole point timekeeping function and adopt the use of the software to scan the keyboard shaking method, dynamic refresh display digital tube, and through the realization of decoding look-up table output time programming method
- 2022-11-05 17:55:03下载
- 积分:1
-
这是运用MSP430 单片机对字符行LCD 显示屏的驱动程序
这是运用MSP430 单片机对字符行LCD 显示屏的驱动程序-This is the use of characters MSP430 line LCD display driver
- 2022-06-12 12:25:24下载
- 积分:1
-
LCD显示模块C51源程序
LCD显示模块C51源程序-C51 LCD display module source
- 2022-12-16 07:35:03下载
- 积分:1
-
关于HZ128
关于HZ128-64D20汉显模块的使用说明-on HZ128- 64D20-significant modules for use
- 2022-09-10 05:30:04下载
- 积分:1
-
这功能实在太强大了,你下载来看看就知道了,太精彩了啊。...
这功能实在太强大了,你下载来看看就知道了,太精彩了啊。-This function is simply too strong, you take a look at the download will know, too wonderful ah.
- 2023-09-04 14:20:03下载
- 积分:1
-
本代码基于凌阳SPCE061A芯片,实现波形发生器功能,能实现波形包括正弦波、方波、三角波、锯齿波,外括数码管显示,语音报数据的功能。...
本代码基于凌阳SPCE061A芯片,实现波形发生器功能,能实现波形包括正弦波、方波、三角波、锯齿波,外括数码管显示,语音报数据的功能。-Based on this code SPCE061A Sunplus chips, realize waveform generator function, can realize waveforms including sine wave, square wave, triangle wave, sawtooth, outside, including a digital display, voice, data reported.
- 2023-06-06 13:15:03下载
- 积分:1