首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于CP1H的SPED指令在音乐播放器的应用
引用本文:陈金佳.基于CP1H的SPED指令在音乐播放器的应用[J].新乡学院学报(自然科学版),2012(4):351-353.
作者姓名:陈金佳
作者单位:黎明职业大学机电工程系
摘    要:根据PLC脉冲输出指令和算术应用类指令,研究了利用PLC实现音乐播放器功能问题.分析了乐谱音高及音长的编码方法和存储方式,采用PLC间接寻址方式实现音符编码的读取功能,应用算术指令实现解码功能,应用SPED指令实现不同音符的对应频率输出功能,应用PULS指令实现不同音长和节拍的控制功能.

关 键 词:PLC  SPED  PULS  编码  间接寻址

Application of SPED Instruction in Audio Player Based on CP1H
Authors:CHEN Jin-jia
Institution:CHEN Jin-jia(Department of Electronic Engineering,Liming Vocational University,Quanzhou Fujian 362000)
Abstract:Realization of music player by PLC is studied according to pulse output instruction and arithmetic application instruction of PLC.Coding and storing methods of music pitch and length are analyzed.Function of read note code is realized by using indirect addressing of PLC,and decoding is realized by using arithmetic instruction.Output function of different note frequencies are realized by SPED instruction,and different music lengths and beats are controlled by PULS instruction.
Keywords:PLC  SPED  PULS  code  indirect addressing
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号