单片机AT89C51产生2KHZ的方波,由其端口P3.2输出,当方波为为波峰时,是NPN型三极管导通,驱动喇叭发出声音,当其为波谷时,则三极管截止, 喇叭不发出声音。 - 下载
|
/* 程序详细功能介绍: * 用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秒的定时时间了。 */- 下载
|
这是一个智能小车的原理图,里面包括红外传感器的收发,液晶显示模块,方波产生模块,单片机控制模块等.-This is a smart diagram of the car, including infrared sensors inside the transceiver, LCD modules, square wave generated modules, SCM control module. 下载
|
介绍一种基于单片机控制的多功能直流稳压电源的设计方案。该电源简单易用 ,精度高、成 本低 ,可以用作信号发生器 ,产生输出正弦波、方波、三角波、锯齿波等多种波形信号 通过软件升级很容 易实现功能扩展。-introduced a microcontroller-based control of the multi-purpose DC power supply design. The Power simple to use, high accuracy, low cost, can be used to signal generator, the output sine wave, square wave, triangular wave, sawtooth waveforms and other signal through software upgrades are easy to achieve functional expansion. 下载
|
强!自制电容表的源程序和PCB图,很多贴片电容都没有标明电容值,而我又舍不得扔了它们;自己做电路玩时,经常看到一些废电路板上有很多贴片电容,可以拆下来用,但是却看不到容量,很郁闷。所以我决定做一个电容表来测试它们的容量。 我用单片机8952和电压比较器339做了一个简单的电容容量测量表,参数大致如下: 电容测量范围为1pF-9999.99uF,最小分辨力为1pF。分为5个量程,可以自动切换量程,也可手动切换。 另外,有简单的频率计功能,能测量0-60MHz的数字信号频率(TTL电平);还可以产生几个单点频率的方波信号(比如1KHz)。-strong! Table homemade capacitance of the source and PCB plans, many chip capacitors are not marked with capacitance values, and I could not bear to throw them; Circuit done playing, I always see some circuit board waste a lot of chip capacitors, used to be removed, but I fail to see the capacity, very depressed. So I decided to make a capacitance meter to test their capacity. I used SCM 8952 and voltage comparator 339 to do a simple capacitance measurement table, along the following parameters : capacitance measurement range to max-9999.99uF, minimum resolution of the disturbance. Divided into five range, it will automatically switch range can also manually switch. In addition, a simple function of frequency meter, capable of measuring 0-60MHz digital signal frequency (TTL level); Some ca 下载
|