芯片解密|单片机解密|IC解密|芯片破解|芯片复制| PCB抄板|软件开发

飞芯科技-芯片解密|单片机解密|IC解密|芯片破解|芯片复制| PCB抄板|软件开发

芯片解密dac0832与51单片机播放WAV格式

芯片解密单片机源程序如下:

  1. /***************************************************************\
  2. name         : main.c
  3. desctiption  : mp3 main file for testing serial port
  4. author       : coolfire
  5. 芯片解密update       : 6/17/07
  6. /***************************************************************/
  7. #include <reg51.h>
  8. #include "compiler.h"
  9. #include "init\init.h"
  10. #include "buffer\buffer.h"
  11. #include "serial\serial.h"

  12. extern Uint32 wav_len_w;
  13. extern Uint32 wav_len_r;

  14. mode_t mode=download;

  15. void main()
  16. {
  17.         init();

  18.         loop:   switch(mode)
  19.                       {

  20.                        case idle:
  21.                            while(mode==idle);
  22.                           break;

  23.                        case download:
  24.                      while(mode==download)
  25.                      {
  26.                         if(!wav_len_w)
  27.                                                 write_buffer(serial);
  28.         
  29.                         read_buffer(flash);
  30.                      }
  31.                                     break;

  32.                  case play:
  33.                           while(mode==play)
  34.                                     {
  35.                         if(!wav_len_r)
  36.                                                write_buffer(flash);
  37.                                            read_buffer(dac);
  38.                                      }
  39.                                     break;
  40.                        }

  41.         goto loop;
  42. }



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.feixindz.com
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信