登录
首页 » SCM » 单片机用T1中断在IO口P1.0输出乐曲(在P1.0口与VCC间接一喇叭即可听到) 1.由于输出的是方波,比较难听:...

单片机用T1中断在IO口P1.0输出乐曲(在P1.0口与VCC间接一喇叭即可听到) 1.由于输出的是方波,比较难听:...

于 2022-03-26 发布 文件大小:7.31 kB
0 261
下载积分: 2 下载次数: 1

代码说明:

单片机用T1中断在IO口P1.0输出乐曲(在P1.0口与VCC间接一喇叭即可听到) 1.由于输出的是方波,比较难听:-)你也可以将波形细分用DA输出正弦波 2.由于T1频繁中断,任何其他中断发生都会是乐曲打顿,只适合试验 3.优化音符编码:一个字节中包含节拍、音符、升降调,可区分数据和命令 -Single-chip microcomputer used in the IO port T1 interrupt output music P1.0 (P1.0 port with VCC in the indirect one can hear the speaker) 1. As the output is a square wave, more bluntly :-) You can also fine-waveform DA output sine wave with sub-2. Due to the frequent interruption of T1, any other interruption occurs Dayton will be playing music, is only suitable for test 3. optimized coding notes: A byte contains rhythms, notes, take-off and landing tune can distinguish between data and command

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 此程序时周立功ZLG7290源码驱动,这是我开发版上的源码
    此程序时周立功ZLG7290源码驱动,这是我开发版上的源码-This program Ligong weeks ZLG7290 source driver, this is my development version of the source
    2022-01-25 20:16:48下载
    积分:1
  • 多广告牌,12864液晶显示,第一
    多功能广告牌,12864液晶显示,首行滚动显示广告语,按键选择广告,预存5条广告,18B20检测温度显示,DS1302万年历显示,可调时间,具有掉电保护,串口向PC机实时传送温度、时间信息-Multi billboards, 12864 liquid crystal display, the first-line scrolling display advertising language, button select advertising, stored five advertisement, 18B20 test temperature display, DS1302 calendar display, adjustable time, with a brown-out protection, serial port to the PC, real-time delivery temperature, time information
    2023-01-17 23:25:03下载
    积分:1
  • 用51汇编语言设计的DTMF发生器程序 输出到PI的每次间隔是52个指令周期 主频:6M,6M/12=0.5M,每个指令周期:2uS 即每次输出到P1的时间间隔...
    用51汇编语言设计的DTMF发生器程序 输出到PI的每次间隔是52个指令周期 主频:6M,6M/12=0.5M,每个指令周期:2uS 即每次输出到P1的时间间隔是122uS 指令周期数:52 + 9 = 61-51 assembly language using the design process DTMF generator output to the PI for each interval is 52 instruction cycle speeds : 6M, 6M/12 = for 0.5 per instruction cycle : 2uS that each output to the P1 time interval is 122uS instruction cycle : 52 9 = 61
    2023-04-01 23:15:04下载
    积分:1
  • 本系统主要用于旅游景点记录游客人数,并限制旅客的流量。采用红外传感器通过检测人体红外并对通过人数进行计数,通过红外对管将检测到的数据发送至单片机,单片机处理后送...
    本系统主要用于旅游景点记录游客人数,并限制旅客的流量。采用红外传感器通过检测人体红外并对通过人数进行计数,通过红外对管将检测到的数据发送至单片机,单片机处理后送至数码管显示,数码管显示的数据即为通过的人数,并通过设定值限制旅客数量。当游客超量是系统将给出相应的提示,禁止游客再进入。以更好的保护旅游景点的生态环境。-This system is mainly used for tourist attractions recording the number of visitors and limit the flow of tourists. Use of infrared sensors by detecting the human body by infrared and number of people count on the tube will be detected by infrared the data sent to the MCU, MCU after treatment sent to the digital LED display, digital LED display of the data shall be the number of through and through setting limits the number of passengers. When the visitors over-the system will give the appropriate prompts to prohibit visitors from re-entering. To better protect the tourist attractions of the ecological environment.
    2022-05-25 01:27:47下载
    积分:1
  • Cygnal
    Cygnal的F020采集电压信号送到液晶显示程序,经测试可用。-Cygnal
    2022-01-21 05:12:53下载
    积分:1
  • 240x128液晶T6963控制器驱动程序(C51)。功能较强,可实现反显,画图画直线等功能...
    240x128液晶T6963控制器驱动程序(C51)。功能较强,可实现反显,画图画直线等功能-128 T6963 LCD controller driver (C51). More powerful, can achieve significant anti-painted picture linear functions
    2023-07-09 00:15:03下载
    积分:1
  • The use of the principle of circuit protel99 software editor, in the hope you wi...
    使用protel99软件编辑的原理电路图,希望对各位有助于电路图的学习和开发-The use of the principle of circuit protel99 software editor, in the hope you will help the study and development of circuit
    2022-04-02 00:37:54下载
    积分:1
  • 基于vriloge的数字钟具有调时、分、秒和定时报警功能,开发环境是MAXPUII的开发环境,实际检验是完全符合...
    基于vriloge的数字钟具有调时、分、秒和定时报警功能,开发环境是MAXPUII的开发环境,实际检验是完全符合-Vriloge based on the digital clock has adjusted hours, minutes, seconds and time alarm function, the development environment is MAXPUII development environment, the actual test is fully consistent with the
    2022-02-12 16:18:37下载
    积分:1
  • F_Dtecter 单片机频率计 精确度1%以上
    F_Dtecter 单片机频率计 精确度1%以上 -Singlechip F_Dtecter Cymometer more than 1 accuracy
    2022-04-11 05:02:04下载
    积分:1
  • To Silicon Laboratories, C8051F230 microcontroller to control the core, using 16
    以Silicon Laboratories公司C8051F230单片机为控制核心,采用16路动态扫描方式进行显示的LED大屏幕显示系统的设计方案。采用大功率三极管TIP127进行行驱动,提高了亮度。单片机通过读取外部总线数据,可实现与上位机协同工作,也可以脱离上位机独立工作。高速的单片机系统可显示图象、文字、数字等多种内容,并且通过优化算法实现了上下左右移动,以及百叶窗等特殊效果。-To Silicon Laboratories, C8051F230 microcontroller to control the core, using 16-way dynamic scan mode to display the LED large screen display system design. Carried out using high-power transistor TIP127 line drive to improve the brightness. MCU by reading the external bus data can be realized with the host computer to work, you can also work independently from the host computer. High-speed microcontroller system can display images, text, numbers, and other content, and by optimizing the algorithm of the up and down and move around, as well as blinds and other special effects.
    2022-01-26 04:29:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载