芯片解密dac0832与51单片机播放WAV格式 时间:2026-01-26 来源: 芯片解密 浏览:2次 字号:大 中 小 芯片解密单片机源程序如下:/***************************************************************\name : main.cdesctiption : mp3 main file for testing serial portauthor : coolfire芯片解密update : 6/17/07/***************************************************************/#include <reg51.h>#include "compiler.h"#include "init\init.h"#include "buffer\buffer.h"#include "serial\serial.h"extern Uint32 wav_len_w;extern Uint32 wav_len_r;mode_t mode=download;void main(){ init(); loop: switch(mode) { case idle: while(mode==idle); break; case download: while(mode==download) { if(!wav_len_w) write_buffer(serial); read_buffer(flash); } break; case play: while(mode==play) { if(!wav_len_r) write_buffer(flash); read_buffer(dac); } break; } goto loop;} 下一篇:芯片解密DEEPSEEK编写程序点亮数码管从0-9循环显示