- 1、本文档共16页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PIC16F877A完成音乐播放法度模范(《两只老虎》片断)(国外英文资料)
PIC16F877A实现音乐播放程序(《两只老虎》片段)
; PIC16F877A to implement the music playback program ( two tigers )
; Function description:
; The music is played by the sound of the buzzer on the driving test board.
; Remove the sound of music from the TABLE (1, 2... 7) by changing the value in the TABLE to play different music.
; Remove the audio from TABLE_YP to play music, which is the duration of the tone.
; Adjust DELAY DELAY to the speed of music.
; The purpose of this practice is to familiarize you with the idea of how a single chip can drive a buzzer. And by changing the length of the duration of the speech, the sound of different frequencies is achieved.
; Hardware connection:
; The buzzer picks up RC6.
; 2, this program USES the buzzer on the test board to make a sound, the 5th position of the dial switch 13 must be set 1, and other code switches can be turned off.
; The original provider of this example: pic16 BBS member ppmy, in which I thank ppmy for sharing this instance.
; The technology department of shenzhen city, the technology department of the technology department of shenzhen, (BBS net name: zhongruntian) is being examined and added to the process of finishing and commenting.
; PIC: PIC single-chip, : BBS: /bbs/
; Copyright all, reproduced please indicate the origin, and cannot remove or change the explanatory text in the document.
; Program file name SONG. ASM
; The list of programs is as follows:
; * * * * * * * * * * *
LIST P = PIC16F877, R = DEC
# INCLUDE P16F877. INC
; * * * * * * * * * * *
Errorlevel - 302-302
__CONFIG _debug_debug_off _cpd_all _cpd__________________ ________ ________________________________________________ __________________
; * * * * * * * * * * * * * * * * * * * * registers
CBLOCK 0 x20
JP
YP
L1
L2
TA: 2
COUNT1
COUNT2
W_STACK
ST_STACK
ENDC
; * * * * * * * * * * *
ORG 0 x0000
Nop; Place an empty instruction that MCD must be
GOTO MAIN; The main program
ORG 0 x0004
BTFSC PIR1. The interrupt subroutine
GOTO T1; Turn the T1 processing
RETFI
您可能关注的文档
- 16.脾肺气虚感冒(国外英文资料).doc
- 15种按摩手段帮你解除疲惫(国外英文资料).doc
- 16秋北交《货币银行学》在线作业一(国外英文资料).doc
- 16秋北航《泉币银行学》在线功课一(国外英文资料).doc
- 16秋浙大《安康评价(乙)》在线功课(国外英文资料).doc
- 16种果蔬 吃吃就落血糖(国外英文资料).doc
- 15个超等有效穴位(国外英文资料).doc
- 16级护理B卷(国外英文资料).doc
- 16秋西交《健康评估》在线作业(国外英文资料).doc
- 16秋北航《泉币银行学》在线功课三(国外英文资料).doc
- 2025年大庆市肇州县乡镇卫生院招聘医学毕业生(8人)模拟试卷及答案详解(全优).docx
- 2025年平凉市静宁县城镇公益性岗位人员招聘(78人)笔试备考试题含答案详解(培优).docx
- 2025年广西河池东兰县招聘二轻城镇集体企业管理人员(1人)考前自测高频考点模拟试题附答案详解(巩固.docx
- 2025年广东省佛山市南海区事业单位招聘急需紧缺专业博士(10模拟试卷附答案详解(轻巧夺冠).docx
- 2025年威海荣成市面向村(社区)党组织书记公开招聘事业单位工作人员考试总模拟试卷及答案详解(精选题.docx
- 2025年宁夏回族自治区中医医院暨中医研究院自主招聘高层次人才笔试备考试题及完整答案详解.docx
- 2025年度田东县退役军人事务局招聘短期编外聘用人员(1人)考前自测高频考点模拟试题含答案详解(综合.docx
- 2025年广东实验中学琶洲学校招聘工作人员(第一批)(26人)模拟试卷含答案详解(研优卷).docx
- 2025年广西职业师范学院上半年招聘教职人员控制数人员(30人)模拟试卷精编答案详解.docx
- 2025年天津市北辰医院招聘高级专业技术人员(1人)模拟试卷及参考答案详解一套.docx
文档评论(0)