資源簡介
基于MSP430單片機的MP3
基于MSP430單片機的MP3
基于MSP430單片機的MP3
基于MSP430單片機的MP3

代碼片段和文件信息
#include“font.h“
const?unsigned?char?NUM[][4]={??{0x1f0x110x1f0}//0
????????????????????????????????{0x000x000x1f0}//1
????????????????????????????????{0x1d0x150x170}//2
????????????????????????????????{0x150x150x1f0}//3
????????????????????????????????{0x070x040x1f0}//4
????????????????????????????????{0x170x150x1d0}//5
????????????????????????????????{0x1f0x150x1d0}//6
????????????????????????????????{0x010x010x1f0}//7
????????????????????????????????{0x1f0x150x1f0}//8
????????????????????????????????{0x170x150x1f0}//9
????????????????????????????????{0x040x040x040}
????????????????????????????????{0x000x0a0x000}????????????????????????????
?????????????????????????????};
void?WriteFontFile()????????//當前配置:GBK?全角????0x00000
{???????????????????????????//??????????????半角????0x30000
//????EraseSection(0x00000);//??????????????UniCode?0x30A00
//????EraseSection(0x10000);????
//????EraseSection(0x20000);?
/*????EraseSection(0x40000);
????EraseSection(0x50000);???
????for(unsigned?long?i=0;i<82;i++)??
????{
????????ReadMmcSector(2039+i512buffer);
????????WriteFlash(0x30A00+i*512buffer512);
//????????ReadFlash(0x30000+i*512buffer512);
//????????send_sector(512buffer);
????}
//????EraseSection(0x40000);*/
????
????for(unsigned?long?i=0;i<90;i++)??
????{
????????ReadFlash(0x30000+i*512buffer512);
????????send_sector(512buffer);
????}
}
void?PrintString(unsigned?char?xunsigned?char?ychar?*wordunsigned?char?lenbool?coverbool?reverse)?//0 {
????unsigned?long?index;
????unsigned?char?Fontstyle[24];
????unsigned?long?temptempbuf;????
????for(unsigned?char?i=0;i ????{
????????if(word[i]<0xa1)
????????{
????????????ReadFlash(0x30000+(unsigned?long)word[i]*12Fontstyle12);
????????????for(unsigned?char?j=0;j<6;j++)
????????????{
????????????????tempbuf=(unsigned?long)DisplayBuffer[y/8+2][6+x+j];
????????????????tempbuf=(tempbuf<<8)+(unsigned?long)DisplayBuffer[y/8+1][x+j];
????????????????tempbuf=(tempbuf<<8)+(unsigned?long)DisplayBuffer[y/8][x+j];
????????????????if(cover)
????????????????{
????????????????????temp=0x0fff;
????????????????????temp=temp<<(y%8);
????????????????????temp=~temp;
????????????????????tempbuf?=?tempbuf?&?temp;
????????????????}
????????????????temp=(unsigned?long)(*(Fontstyle+j))+((unsigned?long)(*(Fontstyle+6+j))<<8);
????????????????if(reverse)
????????????????{
????????????????????temp=(~temp)&0x0fff;
????????????????}
????????????????tempbuf=tempbuf?|?temp<<(y%8);
????????????????DisplayBuffer[y/8][x+j]?=(unsigned?char)(?tempbuf?&?0xff?);
????????????????if(y/8<=4)
????????????????{
????????????????????DisplayBuffer[y/8+1][x+j]??=?(unsigned?char)((?tempbuf?&?0xff00?)>>8);
????????????????????if(y/8?<=?3)
????????????????????????DisplayBuffer[y/8+2][x+j]??=?(unsigned?char)((?tempbuf?&?0xff0000?)>>16);
????????????????}
????????????}
????????????x+=6;????????
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????25271??2009-08-20?19:50??基于430的mp3\mp3板原理圖.rar
?????文件???????1069??2009-08-20?19:51??基于430的mp3\6_12點陣英文字符庫文件(半角).rar
?????文件??????81246??2009-08-20?19:51??基于430的mp3\MP3PCB.rar
?????文件??????95393??2009-08-20?19:51??基于430的mp3\UniCode引索表.rar
?????文件??????12047??2009-08-20?19:52??基于430的mp3\漢字編碼表(GBK).rar
?????文件??????20986??2009-08-20?19:52??基于430的mp3\msp430板原理圖.rar
?????文件??????97073??2009-08-20?19:52??基于430的mp3\MSP430PCB.rar
?????文件??????86169??2009-08-20?19:53??基于430的mp3\12_12點陣中日韓字庫文件(GBK)(全角).rar
?????文件?????682573??2009-08-20?19:53??基于430的mp3\SD卡數據手冊.rar
?????文件??????34331??2009-08-20?19:53??基于430的mp3\UniCode轉GBK引索文件.rar
?????文件?????129250??2009-08-20?19:53??基于430的mp3\mp3測試程序V1[1].0.rar
?????文件?????643745??2009-08-20?19:53??基于430的mp3\SD卡在單片機上的應用(轉載).doc
?????文件????????130??2009-03-08?10:46??基于430的mp3\英文字符庫引索文件en_index.TXT
?????文件???????1538??2009-03-08?10:46??基于430的mp3\6_12點陣英文字符庫文件(半角)en.FON
?????文件?????528896??2008-12-21?20:07??基于430的mp3\MP3.pcb
?????文件?????373248??2009-03-21?13:12??基于430的mp3\mp3.sch
?????文件???????4885??2009-05-03?11:50??基于430的mp3\mp3測試程序V1.0\Chinese.cpp
?????文件????????524??2009-03-15?18:35??基于430的mp3\mp3測試程序V1.0\clock.cpp
?????文件?????????93??2008-12-07?19:18??基于430的mp3\mp3測試程序V1.0\clock.h
?????文件?????????80??2009-02-25?17:26??基于430的mp3\mp3測試程序V1.0\delay.cpp
?????文件????????103??2008-12-07?19:19??基于430的mp3\mp3測試程序V1.0\delay.h
?????文件???????2892??2009-03-12?21:37??基于430的mp3\mp3測試程序V1.0\fat.h
?????文件???????5137??2009-03-15?17:48??基于430的mp3\mp3測試程序V1.0\font.cpp
?????文件????????762??2009-05-03?11:35??基于430的mp3\mp3測試程序V1.0\font.h
?????文件???????3543??2009-03-15?17:52??基于430的mp3\mp3測試程序V1.0\key.cpp
?????文件????????462??2009-03-13?16:00??基于430的mp3\mp3測試程序V1.0\key.h
?????文件???????2975??2009-03-10?15:33??基于430的mp3\mp3測試程序V1.0\m25p80.cpp
?????文件????????853??2009-03-09?14:40??基于430的mp3\mp3測試程序V1.0\m25p80.h
?????文件????????940??2009-05-03?13:09??基于430的mp3\mp3測試程序V1.0\main.cpp
?????文件???????3563??2009-03-15?17:08??基于430的mp3\mp3測試程序V1.0\menu.cpp
............此處省略61個文件信息
評論
共有 條評論