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

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

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

  • 自动交通管理系统 用红、绿、黄三支共两组发光二极管表示交通信号灯,利用单片机模拟有时间显示的定时交通信号灯控制管理。信号灯的变化规律可如下: 1)放行线:绿灯亮...
    自动交通管理系统 用红、绿、黄三支共两组发光二极管表示交通信号灯,利用单片机模拟有时间显示的定时交通信号灯控制管理。信号灯的变化规律可如下: 1)放行线:绿灯亮放行25秒,黄灯亮警告5秒,然后红灯亮禁止。 2)禁止线:红灯亮禁止30秒,然后绿灯亮放行。 3)当某一方向的红灯亮时,若该方向有车通过,则用扬声器声报警。(撞红灯信号可用3-5V模拟量表示) 同时用2位数码管进行30秒钟递减时间显示。-automatic traffic management system using red, green, yellow a total of three light-emitting diodes, said two traffic lights, using SCM time simulation shows the regular traffic signal control. Signal changes in the law to be as follows : 1) Release Line : green clearance 25 seconds, bright yellow warning five seconds, and then the red-ban. 2) prohibit the lines : red-Ban 30 seconds, then green clearance. 3) When the red light in one direction- that if the direction of a car passed, the use of loudspeakers sound alarm. (Red light signals can hit 3- 5V analog said), while using two digital tube for 30 seconds decreasing time displayed.
    2022-01-20 23:00:09下载
    积分:1
  • 基于51芯片的DS1302 定时控制器演示
    基于51芯片的DS1302 定时控制器演示-Based on 51 chip DS1302 timing controller demonstration
    2022-08-18 08:43:16下载
    积分:1
  • 单片机C程序100例,可供开发时参考,也可供初学者借鉴.
    单片机C程序100例,可供开发时参考,也可供初学者借鉴.-100 cases of single-chip C program for the development of reference, but also for the beginners learn.
    2022-10-03 23:30:03下载
    积分:1
  • 单片机AT89S52控制MFRC500以及MAX485实现读取IC卡信息和多机通信功能-Single-chip AT89S52 control MFRC500 and IC card reader to achieve MAX485 information and multi-machine communication
    2022-02-05 08:28:37下载
    积分:1
  • 液晶模块FYD12864
    液晶模块FYD12864-0402B使用手册.-LCD Module FYD12864-0402B User
    2022-03-11 17:40:56下载
    积分:1
  • 本设计通过单
    本设计提供了通过单片机来控制温度测量芯片18b20,进行测量温度-This design through the single-chip microcomputer to control the chip temperature measurements 18b20, measured temperature
    2022-11-01 05:25:03下载
    积分:1
  • Rudder (4 volts motor) c programming, the use of SCM avr, such as atmega16 MCU w...
    舵机(四伏电机)的c编程,在avr单片机上使用,如atmega16等带pwm的单片机-Rudder (4 volts motor) c programming, the use of SCM avr, such as atmega16 MCU with PWM
    2022-03-17 15:01:01下载
    积分:1
  • iap_sst89c58.zip:
    iap_sst89c58.zip:--------SST89C58/54单片机的iap在线编程/在线下载监控程序源程序(KC51)-iap_sst89c58.zip :-- SST89C58/54 SCM IAP online programming/online download monitoring program source (KC51)
    2022-01-21 03:15:54下载
    积分:1
  • 单片机控制液晶显示的源代码。8051
    单片机控制LCD显示的源代码。控制器兼容8051系列芯片,包括原理图。-SCM control LCD display the source code. 8051-compatible controller chips, including schematics.
    2022-09-18 14:35:03下载
    积分:1
  • 用keil环境和proteus实现的16*16四字点阵显示
    用keil环境和proteus实现的16*16四字点阵显示-Keil Proteus with the environment and realize the 16* 16 four-character dot-matrix display
    2022-07-12 03:24:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载