ÓïÒômp3оƬ,´®¿ÚÓïÒôÄ£¿é,ÓïÒôÌáʾÆ÷
¹ãÖÝÄϹ¬28NGµç×ӿƼ¼ÓÐÏÞ¹«Ë¾ÊýÊ®ÄêÀ´Ò»Ö±×¨×¢ÓÚÓïÒô²úÆ·µÄÑз¢ºÍÉú²ú£¬½ô¸úÊг¡µÄÉú³¤¿ª·¢¿ÉusbÖ±½Ó¸ü»»ÉùÒôµÄMP3ÓïÒôоƬ£¬ÓÅÖÊMP3ÓïÒôоƬ³§¼Ò£¬ÔÚÒµÄÚÏíÓв»´íµÄ¿Ú±®£¬MP3ÓïÒôоƬϵÁÐÖ÷ÒªÓÐYX5200-24SS¡¢YX6100-16S¡¢YX6200-16S¡¢YX6300-24SSµÈ£¬Ôڴ˳ÏÑ°MP3ÓïÒôоƬ¹ºÖÃÉÌ¡¢ÊðÀíÉÌ£¬½Ó´ýÇ°À´Ç¢Ì¸½»Á÷¡£
YX6100-24SSоƬѡÓõÄÊÇSOC¼Æ»®£¬¼¯³ÉÁËÒ»¸ö16λµÄMCU£¬ÒÔ¼°Ò»¸öרÃÅÕë¶ÔÒôƵ½â1ÂëµÄaDSP£¬½ÓÄÉÓ²½â1ÂëµÄ·½·¨£¬ÔöÇ¿²úÆ·µÄÐÔÄܺÍÉú´æÍê1ÃÀÒôÖÊ£¬ºÏÀíµÄ·â×°£¬Ìå»ýСÇÉ£¬¹¦Ð§È´Ç¿´óÎޱȣ¬Ð¡ÇɵijߴçʹоƬ¸üºÃµÄǶÈ빦·Å°å»òÆäËû²úÆ·µÄÐèÇ󣬱¾¹«Ë¾µÄоƬÆÕ±éÔÚÒø1ÐÐATM»ú¡¢¼ÒµçÐÐÒµ¡¢Æû³µÐÐÒµ¡¢»úеÉ豸¡¢Äþ¾²Ìáʾ¡¢²úÆ·Ñз¢µÈ³¡ºÏ»ñµÃÓ¦Óá£MP3ÓïÒôоƬ³§¼ÒÓïÒôоƬ¼Æ»®¡£
1¡¢Ö§³Ö²ÉÑùÂÊ(KHz):8/11.025/12/16/22.05/24/32/44.1/48¡£
2¡¢24λDACÊä³ö£¬¶¯Ì¬¹æÄ£Ö§³Ö90dB£¬ÐÅÔë±ÈÖ§³Ö85dB¡£
3¡¢´óÖ§³Ö16M×Ö½ÚµÄSPIFLASH¡£ÀýÈçW25Q16[2M×Ö½Ú]¡¢W25Q128[16M×Ö½Ú]¡£
4¡¢¶àÖÖ¿ØÖÆģʽ£¬²¢¿Ú¿ØÖÆģʽ¡¢´®¿Úģʽ¡¢AD°´¼ü¿ØÖÆģʽ[´Ë¹¦Ð§¿ÉÒÔ¶¨ÖÆ¿ª·¢]¡£
5¡¢Miniusb½Ó¿Ú¸üÐÂÓïÒôÎļþ£¬ÎÞÐè×°ÖÃÈκÎÈí¼þ¡£Ö§³ÖXPºÍWIN7ϵͳ¡£
6¡¢Ö§³Ö×éºÏ²¥·Å¹¦Ð§£¬¿ÉÒÔʵÏÖ±¨Ê±¡¢±¨Î¶ȣ¬ÔÚÒ»¶¨Ë®Æ½ÉÏ¿ÉÒÔÌæ´úһЩÌÚ¹óµÄTTS¼Æ»®¡£
7¡¢30¼¶ÒôÁ¿¿Éµ÷£¬5¼¶EQ¿Éµ÷[´Ë¹¦Ð§Ôݲ»¿ª·Å]¡£
8¡¢Ö§³ÖDACÊä³ö£¬¿É½Ó¹¦·Å£¬¶ú»ú¡£
9¡¢Ö§³Ö6¶ÎÓïÒôµÄ´¥·¢²¥·Å£¬IO¼ì²âµÄ·½·¨£¬ËùÒÔÊʺÏ̼Ĥ°´¼üµÈµÈ³¡ºÏ¡£
10¡¢AD°´¼ü¿ØÖÆģʽÏ¿ÉÄܹýÎļþÅäÖð´¼ü¹¦Ð§¡£
1¡¢ ³µÔص¼º½ÓïÒô²¥±¨
2¡¢ ¹«Â·ÔËÊä»ü²ì¡¢ÊÕ·ÑÕ¾ÓïÒôÌáʾ£»
3¡¢ »ð³Ã÷ÈÕ¾¡¢Æû³Ã÷ÈÕ¾Äþ¾²¼ì²éÓïÒôÌáʾ£»
4¡¢ µçÁ¦¡¢Í¨ÐÅ¡¢½ðÈÚÓªÒµÌüÓïÒôÌáʾ£»
5¡¢ ³µÁ¾½ø¡¢³öͨµÀÑéÖ¤ÓïÒôÌáʾ£»
6¡¢ ¹«°²±ß·À¼ì²éͨµÀÓïÒôÌáʾ£»
8¡¢ µç¶¯ÂÃÐгµÄþ¾²ÐÐÊ»ÓïÒôͨ¸æ£»
9¡¢ »úµçÉ豸¹ÊÕÏ×Ô¶¯±¨¾¯£»
10¡¢Ïû·ÀÓïÒô±¨¾¯Ìáʾ£»
YX6100´®¿ÚÓïÒôоƬ²ÎÊý˵Ã÷£º
Ãû³Æ | ²ÎÊý |
MP3Îļþ»¨Ñù | 1¡¢Ö§³ÖÓбÈÌØÂÊ11172-3ºÍISO13813-3 layer3ÒôƵ½âÂë |
2¡¢²ÉÑùÂÊÖ§³Ö(KHZ):8/11.025/12/16/22.05/24/32/44.1/48 | |
3¡¢Ö§³ÖNormal¡¢Jazz¡¢Classic¡¢Pop¡¢RockµÈÒôЧ | |
USB½Ó¿Ú | 2.0±ê×¼ |
UART½Ó¿Ú | ±ê×¼´®¿Ú£¬TTLµçƽ,²¨ÌØÂÊ¿ÉÉè[Óû§²»¿ÉÉè] |
ÊäÈëµçѹ | 3.3V-5V[7805ºó¼¶´®Ò»¸ö¶þ¼«¹ÜΪ¼Ñ] |
¶î¶¨µçÁ÷ | 10MA[¾²Ì¬] |
µÍ¹¦ºÄµçÁ÷ | <200uA |
¹¦·Å¹¦ÂÊ | Çý¶ú»ú£¬¹¦·Å |
·â×°³ß´ç | TSSOP-24 |
ÊÂÇéÎÂ¶È | [-40¶È] -- [80¶È] |
ʪ¶È | 5% ~ 85% |
Ö÷оƬÐͺŠ| YX6100-24SS[TSSOP24] |
/******************************************************************************
- ʵÏÖ¹¦Ð§£ºÊµÏÖоƬÉϵ绮·ÖÖ¸¶¨²¥·ÅµÚ1ÇúºÍµÚ¶þÇú£¬»ù±¾µÄ³ÌÐò¹©Óû§²âÊÔ
- ÈÕÆÚ £º2013-05-06
- ÔËÐÐÇé¿ö£ºSTC ¾§Õñ£º11.0592M ²¨ÌØÂÊ:9600
- ±¸×¢ £ºÔÚÆÕÖпƼ¼µÄ51¿ª·¢°åÉϵ÷ÊÔOK --- STC89C516RD+
¸Ã²âÊÔ³ÌÐò±ØÐëÊÇÄ£¿é»òÕßоƬ¼Æ»®ÖÐÓÐÉ豸ÔÚÏߣ¬Æ©ÈçUÅÌ¡¢TF¿¨¡¢FLASH
******************************************************************************/
#include "REG52.h"
#define COMM_BAUD_RATE 9600 //´®¿Ú²¨ÌØÂÊ
#define OSC_FREQ 11059200 //ÔËÐо§Õñ£º11.05926MHZ
static INT8U Send_buf[10] = {0} ;
void Delay_Ms(INT32U z)
{
INT32U x=0 , y=0;
for(x=110 ; x>0 ;x--)
for(y=z; y>0;y-- );
}
/******************************************************************************
- ¹¦Ð§ÃèÊö£º ´®¿Ú1³õʼ»¯
- ×¢£º ÉèÖÃΪ9600²¨ÌØÂÊ
******************************************************************************/
void Serial_init(void)
{
TMOD = 0x20; // ÉèÖà T1 Ϊ²¨ÌØÂʱ¬·¢Æ÷
SCON = 0x50; // 0101,0000 8λÊý¾Ýλ, ÎÞÆæżУÑé
PCON = 0x00; //PCON=0;
TH1=256-(OSC_FREQ/COMM_BAUD_RATE/32/12);//ÉèÖÃΪ9600²¨ÌØÂÊ
TL1=256-(OSC_FREQ/COMM_BAUD_RATE/32/12);
TR1 = 1; //׼ʱÆ÷1·¿ª
REN = 1; //´®¿Ú1½ÓÊÕʹÄÜ
ES = 1; //´®¿Ú1ÖжÏʹÄÜ
}
void Uart_PutByte(INT8U ch)
{
SBUF = ch;
while(!TI){;}
TI = 0;
}
/******************************************************************************
- ¹¦Ð§ÃèÊö£º ´®¿ÚÏòÍâ·¢ËÍÃüÁî[°üÀ¨¿ØÖƺÍÅÌÎÊ]
- ²ÎÊý˵Ã÷£º CMD:ÌåÏÖ¿ØÖÆÖ¸ÁÇë²éÔÄÖ¸Áî±í£¬»¹°üÀ¨ÅÌÎʵÄÏà¹ØÖ¸Áî
feedback:ÊÇ·ñÐèÒªÓ¦´ð[0:²»ÐèÒªÓ¦´ð£¬1:ÐèÒªÓ¦´ð]
data:´«Ë͵IJÎÊý
******************************************************************************/
void SendCmd(INT8U len)
{
INT8U i = 0 ;
Uart_PutByte(0x7E); //Æðʼ
for(i=0; i<len; i++)//Êý¾Ý
{
Uart_PutByte(Send_buf[i]) ;
}
Uart_PutByte(0xEF) ;//½áÊø
}
/******************************************************************************
- ¹¦Ð§ÃèÊö£ºÇóºÍУÑé --- Óû§Ò²¿ÉÒÔÊ¡ÂÔ´ËУÑ飬°Ý¼û5.3.4µÄ˵Ã÷
- ºÍУÑéµÄ˼·ÈçÏ£º
·¢Ë͵ÄÖ¸ÁȥµôÆðʼºÍ½áÊø¡£½«ÖмäµÄ6¸ö×Ö½Ú½øÐÐÀÛ¼Ó£¬ºóÈ¡·´Âë¡£½ÓÊն˾ͽ«½ÓÊÕµ½µÄÒ»Ö¡Êý¾Ý£¬È¥µôÆðʼºÍ½áÊø¡£½«ÖмäµÄÊý¾ÝÀÛ¼Ó£¬ÔÙ¼ÓÉϽÓÊÕµ½µÄУÑé×Ö½Ú¡£Ç¡ºÃΪ0.ÕâÑù¾Í´ú±í½ÓÊÕµ½µÄÊý¾ÝÍêÈ«ÕýÈ·¡£
******************************************************************************/
void DoSum( INT8U *Str, INT8U len)
{
INT16U xorsum = 0;
INT8U i;
for(i=0; i<len; i++)
{
xorsum = xorsum + Str[i];
}
xorsum = 0 -xorsum;
*(Str+i) = (INT8U)(xorsum >>8);
*(Str+i+1) = (INT8U)(xorsum & 0x00ff);
}
void Uart_SendCMD(INT8U CMD ,INT8U feedback , INT16U dat)
{
Send_buf[0] = 0xff; //±£´æ×Ö½Ú
Send_buf[1] = 0x06; //³¤¶È
Send_buf[2] = CMD; //¿ØÖÆÖ¸Áî
Send_buf[3] = feedback;//ÊÇ·ñÐèÒª·´Ïì
Send_buf[4] = (INT8U)(dat >> 8);//datah
Send_buf[5] = (INT8U)(dat); //datal
DoSum(&Send_buf[0],6); //УÑé
SendCmd(8); //·¢ËÍ´ËÖ¡Êý¾Ý
}
void main()
{
Serial_init() ;//´®¿Ú¼Ä´æÆ÷µÄ³õʼ»¯ÉèÖÃ
Uart_SendCMD(0x03 , 0 , 0x01) ;//²¥·ÅµÚ1Ê×
Delay_Ms(1000) ;//ÑÓʱ»òÐí6S
Uart_SendCMD(0x03 , 0 , 0x02) ;//²¥·ÅµÚ¶þÊ×
Delay_Ms(1000) ;//ÑÓʱ»òÐí6S
Uart_SendCMD(0x03 , 0 , 0x04) ;//²¥·ÅµÚËÄÊ×
while(1);
}
°´¼ü¿ØÖÆ´®¿ÚMP3ÓïÒôоƬ£¨IC£©³§¼ÒÓɹãÖÝÄϹ¬28NGµç×ӿƼ¼ÓÐÏÞ¹«Ë¾Ìṩ¡£¹ãÖÝÄϹ¬28NGµç×ӿƼ¼ÓÐÏÞ¹«Ë¾£¨www.yxin18.com£©Îª¿Í»§Ìṩ¡°ÓïÒôоƬ,ÓïÒôÄ£¿é,ÌáʾÆ÷,±¨¾¯Æ÷¡±µÈÒµÎñ£¬¹«Ë¾ÓµÓС°ÄϹ¬28NG,ÄϹ¬28NGµç×Ó¡±µÈÆ·ÅÆ¡£×¨×¢ÓÚ¼¯³Éµç·µÈÐÐÒµ£¬Ôڹ㶫 ¹ãÖÝ ÓнϸßÖªÃû¶È¡£½Ó´ýË÷È¡¸üÈ«¸üеIJúÆ·×ÊÁÏ£¬ÁªÏµÈË£ºÂ¬ÏÈÉú¡£
ÁªÏµÈË£ºÀîÊï¹â
ÊÖ »ú£º17266260250
ÓÊ Ï䣺Lur@yxin18.com
¹« ˾£º¹ãÖÝÄϹ¬28NGµç×ӿƼ¼ÓÐÏÞ¹«Ë¾
µØ Ö·£º¹ãÖÝÊл¨¶¼ÇøÉÌÒµ´óµÀ334ºÅ