- 24
- 0
- 约6.85万字
- 约 16页
- 2017-05-23 发布于河南
- 举报
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
您可能关注的文档
最近下载
- 一种融合热红外的稀土矿开采区识别方法、系统和介质.pdf VIP
- 上海交通大学学生生存手册.PDF
- 一种矿山开采原始数字高程模型重建方法、系统和介质.pdf VIP
- 公路工程质量检测收费项目和收费标准(附交通建设工程质量检测和工程材料试验收费标准).pdf VIP
- 止动片冲压模具设计..doc VIP
- 计算机组成原理(修订版)张功萱习题参考答案.pdf
- 字节跳动泛舆情域智能监控中台架构解读及实践.pdf VIP
- 欧科 EKAC230BR1LH-FAA、EKAC250BR1LH-FAA 安装使用维修说明书.pdf
- 2024-2025学年广东省深圳市龙岗区多校三年级上册期中模拟数学试卷含答案.pdf VIP
- 2021年六年级语文上学期开学测试试卷-人教版A卷-(附解析).doc VIP
原创力文档

文档评论(0)