当前位置: 首页 > news >正文

企业邮箱多少钱网络seo

企业邮箱多少钱,网络seo,聊城做网站的公司渠道,株洲seo优化加盟使用开发板为普中51-实验板 普中-2 时钟频率:11.001081MHZ 演示视频: 【51单片机演奏兰亭序】 https://www.bilibili.com/video/BV12G411D7uK/?share_sourcecopy_web&vd_source0f48f7cc0fef720b95e067122ac83437 源码如下: 数组较大&a…

使用开发板为普中51-实验板 普中-2
时钟频率:11.001081MHZ
演示视频:
【51单片机演奏兰亭序】 https://www.bilibili.com/video/BV12G411D7uK/?share_source=copy_web&vd_source=0f48f7cc0fef720b95e067122ac83437

源码如下:

数组较大,请在数组前加上code关键字

delay.h
#ifndef __DELAY_H__
#define __DELAY_H__void Delayxms(unsigned int xms); //@11.0592MHz#endif
delay.c
#include <INTRINS.H>void Delayxms(unsigned int xms) //@11.0592MHz
{while (xms--){unsigned char i, j;_nop_();i = 2;j = 199;do{while (--j);} while (--i);}
}
Timer0.h
#ifndef __TIMER0_H__
#define __TIMER0_H__void Timer0_Init();#endif
Timer0.c
#include <REGX52.H>/*** @brief 计时器0初始化*/
void Timer0_Init() // 1毫秒@11.0592MHz
{TMOD &= 0xF0; // 设置定时器模式TMOD |= 0x01; // 设置定时器模式TL0 = 0x66;	  // 设置定时初值TH0 = 0xFC;	  // 设置定时初值TF0 = 0;	  // 清除TF0标志TR0 = 1;	  // 定时器0开始计时// 配置中断ET0 = 1;EA = 1;PT0 = 0;
}
main.c
#include <REGX52.H>
#include "delay.h"
#include "Timer0.h"// 蜂鸣器端口
sbit Buzzer = P2 ^ 5;#define SPEED 500 // 速度// 音符与索引对应表,P:休止符,L:低音,M:中音,H:高音,下划线:升半音#
#define P 0
#define L1 1
#define L1_ 2
#define L2 3
#define L2_ 4
#define L3 5
#define L4 6
#define L4_ 7
#define L5 8
#define L5_ 9
#define L6 10
#define L6_ 11
#define L7 12
#define M1 13
#define M1_ 14
#define M2 15
#define M2_ 16
#define M3 17
#define M4 18
#define M4_ 19
#define M5 20
#define M5_ 21
#define M6 22
#define M6_ 23
#define M7 24
#define H1 25
#define H1_ 26
#define H2 27
#define H2_ 28
#define H3 29
#define H4 30
#define H4_ 31
#define H5 32
#define H5_ 33
#define H6 34
#define H6_ 35
#define H7 36unsigned int FreqTable[] = {0,63628, 63731, 63835, 63928, 64021, 64103, 64185, 64260, 64331,64400, 64463, 64524, 64580, 64633, 64684, 64732, 64777, 64820,64860, 64898, 64934, 64968, 65000, 65030, 65058, 65085, 65110,65134, 65157, 65178, 65191, 65217, 65235, 65252, 65268, 65283};
// 音,结束标志:0xFF
code unsigned char Music[] = {0, 0, 0, M5, M6, H1, H2, H1, H2, H3, H2, H1, H2, H3, H5, H3, H2, H1, M6, M5, H3, H5, H6, H3, H2, H2, H1, H3, H2, H2, H1, H1, H2, H3, H2, H1, M6, M5, H2, H3, H1, 0, M5, M3, M5, M6, M3, M5, M6, M5, M3, M2, M3, 0, M3, M2, M3, H1, M6, H1, M6, M5, M3, M1, M3, M2, M2, 0, M5, M5, M5, M6, M6, H1, H2, H1, M6, M5, M6, M5, M3, M2, M5, M3, M3, M2, M1, M2, M3, M2, M1, M3, M1, M1, M1, M1, 0xFF};
// 音长,标准音为4
code unsigned char MusicTime[] = {4, 4, 2, 2, 2, 2, 8, 2, 4, 2, 2, 12, 2, 2, 8, 2, 2, 2, 2, 2, 12, 2, 2, 8, 2, 2, 2, 2, 2, 2, 2, 8, 2, 2, 8, 2, 2, 2, 2, 2, 8, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4};
unsigned char FreqSelect, MusicSelect;
void main()
{Timer0_Init();while (1){if (Music[MusicSelect] != 0xFF){FreqSelect = Music[MusicSelect];Delayxms(500 / 4 * MusicTime[MusicSelect]);MusicSelect++;TR0 = 0;     // 计时器停Delayxms(5); // 每个音间隔5msTR0 = 1;}else{TR0 = 0;MusicSelect = 0;}}
}void Timer0_Routine() interrupt 1
{if (FreqTable[FreqSelect]){TL0 = FreqTable[FreqSelect] % 256; // 设置定时初值TH0 = FreqTable[FreqSelect] / 256; // 设置定时初值Buzzer = !Buzzer;                  // 翻转蜂鸣器IO口}
}
http://www.khdw.cn/news/56933.html

相关文章:

  • 网站规划的原则有哪些seo教学免费课程霸屏
  • 怎么用自己主机做网站百度一下百度官网
  • 自己的网站怎么做排名seo群发软件
  • 专业做网站技术全网搜索指数
  • 一个网站做几个关键词手机百度2020
  • 长沙专业做网站手机优化助手下载
  • 网站seo测评百度公司排名多少
  • 网站建设素材模板淘宝seo搜索引擎原理
  • 使用java做后台网站接app推广接单平台
  • 有没有接活做的网站火锅店营销方案
  • 卖鞋做哪个网站好驻马店网站seo
  • wordpress虚拟币插件seo技术有哪些
  • 上海协策网站上首页的seo关键词优化
  • 做a 需要制作网站百度推广入口官网
  • 餐饮美食网站模板源码seo北京
  • 做研究的网站企业seo排名优化
  • 南京做网站最好的公司百度公司官网入口
  • 网站开发设计流程文档站长工具ip查询
  • 厚街网站仿做外贸网站平台
  • 有域名了如何自己做网站系统优化大师下载
  • 舟山市城乡建设委员会网站网站seo运营
  • 武汉如何做网站建设模板优化的含义是什么
  • 临沂企业建站系统自己怎么建网站
  • 有关学校网站建设策划书大型网站建设公司
  • 做热点链接的网站网络销售的方法和技巧
  • 福州建站价格广州seo优化公司排名
  • 广东建设注册执业中心网站学网络营销有用吗
  • 广州网站备案云南seo简单整站优化
  • 网站布局 种类网络营销推广是做什么的
  • 包头怎样做网站友情链接怎么互换