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

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

于 2022-03-26 发布 文件大小:7.31 kB
0 228
下载积分: 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 个回复

  • 主从报警系统,单片机编程,是电子课程设计做的东西
    主从报警系统,单片机编程,是电子课程设计做的东西-master alarm system, microcontroller programming, electronic design courses do things
    2022-04-14 23:01:15下载
    积分:1
  • this is only a demo ICCAVR Calling assembly language interrupt function examples...
    这仅仅是一个用于演示ICCAVR中调用汇编语言中断函数的实例,这个演示的处理方法也可以用于一般非中断汇编函数的调用。本实例中演示了字节变量和字变量在汇编中的引用和运算处理-this is only a demo ICCAVR Calling assembly language interrupt function examples, the presentation approach also can be used for general non-interrupted compilation function call. This example demonstrates a variable byte characters and variables in the compilation of the application and processing operations
    2022-06-21 13:30:49下载
    积分:1
  • TLC2543 collection procedures, programming ideas in much the same, the details a...
    tlc2543的程序集锦,编程思路大体相同,细节有别,细细体味,放差距出不同。-TLC2543 collection procedures, programming ideas in much the same, the details are different, thin body, put the gap between different.
    2022-01-28 02:44:28下载
    积分:1
  • luminary系列单片机基础源码模板,大家可以直接试用
    luminary系列单片机基础源码模板,大家可以直接试用-luminary Series MCU-based source code template, you can try
    2022-05-21 09:00:21下载
    积分:1
  • 用8051单片机可实现音乐播放功能(以"新年好"为例)。如果安装了Proteus软件,可方便的在自己的电脑上实现仿真。...
    用8051单片机可实现音乐播放功能(以"新年好"为例)。如果安装了Proteus软件,可方便的在自己的电脑上实现仿真。-YOU KAN PLAY BEAUTIFUL MUSIC WITH THE HELP OF 8051MCU.YOU CAN SIMPLY MAKE IT IF YOU HAVE THE MASTERY OF PROTEUS.
    2022-05-30 13:54:06下载
    积分:1
  • 温度控制器01
    温度控制器01-temperature controller 0100000000000000000000000000000
    2022-03-15 12:59:09下载
    积分:1
  • Write your own STM32F10x the ADC and Timer
    自己写的 STM32F10x的ADC和Timer驱动, 没有使用固件库。每秒通过串口UART输出当前ADC值。 应用范围: 因为不涉及IO口,所以此工程在STM32F1xx的任何主板上都可以运行。 编译器: IAR ARM 4.42A。 作者: w123456xy@sohu.com 15189792379。 -Write your own STM32F10x the ADC and Timer-driven, not using the firmware library. Second serial UART output current through the ADC value. Application scope: because they do not involve IO port, so this works on any STM32F1xx motherboard can run. Compiler: IAR ARM 4.42A. Author: w123456xy@sohu.com 15189792379.
    2022-07-11 04:46:01下载
    积分:1
  • ds2482
    ds2482-100是IIC协议转1-wire协议的接口芯片。本程序包利用ds2482-100操作温度传感器ds18s20。注意:ds18s20初始化后温度值为85摄氏度,必须多读几次温度以便其显示稳定。另外,文件中包含的一些头文件可以顾名思义,都是比较通用的(如IIC软件包),为节省篇幅,没有包含进来。请在 编译时自己根据接口函数添加。-ds2482-100 is IIC agreement to 1-wire agreement interface chip. The packages use ds2482-100 ds18s20 operating temperature sensor. Note : After initialization ds18s20 temperature of 85 degrees Celsius, to be read several times the temperature to show its stability. Also, the document contains a number of header files can name suggests, are relatively common (eg IIC package), To save space, are not included come. Please compiled under its own interface function was added.
    2022-08-23 23:28:31下载
    积分:1
  • CC1100射频电路的线路板和已经调通的源码
    CC1100射频电路的线路板和已经调通的源码-CC1100 RF circuit and the circuit board s source code has been transferred
    2022-05-18 09:29:37下载
    积分:1
  • 这是一个红外报警系统,该系统通过555调制红个发光管,发出38KHZ的红外信号,对面使用一个红外接收头接收信号用来检测是否有人通过,如果有,则声光报警,...
    这是一个红外报警系统,该系统通过555调制红个发光管,发出38KHZ的红外信号,对面使用一个红外接收头接收信号用来检测是否有人通过,如果有,则声光报警,-This is an infrared alarm system, which modulator 555 through a red light-emitting tube, issued 38KHZ IR signal, opposite to the first use of an infrared receiver to receive signals to detect whether or not it was passed, if so, make a sound light alarm,
    2022-06-14 10:18:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载