freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

20xx基于單片機制作mp3播放器畢業(yè)論文-wenkub.com

2025-06-03 17:54 本頁面
   

【正文】 //Product Revision Level //SCSIRead_Format_capacities命令的返回數(shù)據(jù) code unsigned char B_Read_Format_capacities[] = {0x00, 0x00, 0x00, 0x10, //capacity list header 0x00, 0x00, 0x07, 0xf5, 0x01, 0x00, 0x02, 0x00, //capacity descriptor //Number of Blocks =2037,unformatted media,blocklength = 512Bytes 0x00, 0x00, 0x07, 0xfd, 0x00, 0x00, 0x02, 0x00 //Formattable Capacity Descriptors }。.39。V39。r39。y39。l39。 39。P39。 39。I39。 //清除TXCMP TransmitCSW()。=(~(TXCMP))。 //發(fā)送數(shù)據(jù)}void TransmitCSW() //向Host返回CSW{ WriteEpBulk(1, sizeof(bulk_CSW), bulk_CSW)。 //...設(shè)置為In模式 for(i=0。struct_CBW data bulk_CBW。 } } else if(DT[0]==0xa1) //非標準USB請求 { WriteEp(0,0,0)。 //取描述符 case set_configuration :Set_Configuration(DT[2])。 i) { switch (DT[1]) { case set_address :Set_Address(DT[2])。 i = ReadEp(0,DT)。 USBCON|=CONFG。 UEPNUM=0x01。=(~CONFG)。 UEPCONX=0x86。(nLength==0x20)) WriteEp(0,32,Configuration_Descriptor_All)。 WriteEp(0,2,amp。(nLength==0x09)) //取端口描述符 WriteEp(0,9,Configuration_Descriptor_All)。//配置描述符code unsigned char Configuration_Descriptor_All[32] = { 9, //Size of Descriptor in Bytes 2, //Configuration Descriptor (0x02) 0x20, //Total length in bytes of data returned LSB 0x00, //MSB 1, //Number of Interfaces 1, //Value to use as an argument to select this configuration 0, //Index of String Descriptor describing this configuration 0x80, 0xfa, //Maximum Power Consumption in 2mA units 9, 4, 0, //the index of the interface descriptor Number of Interface 0, //Value used to select alternative setting 2, //EndPoint Number Used in this Descriptor 8, //Class Code (Assigned by USB Org) 6, //interface subclass1=RBC,2=SFF,3=QIC,4=UFI,5=SFF,6=SCSI 0x50, //bulk 0nly Transport 0, //Index of String Descriptor Describing this interface //Bulkin Endpoint 0x07, //length of this desc. 0x05, //ENDPOINT descriptor TYPE 0x81, //address (IN) Endpoint 4 84 0x02, //attributes (BULK) 0x40, 0x00, //max packet size (64) 0x0, //Does not apply to Bulk endpoints //Bulkout Endpoint 0x07, //length of this desc. 0x05, //ENDPOINT descriptor TYPE 0x02, //address (OUT) Endpoint 5 05 0x02, //attributes (BULK) 0x40, 0x00, //max packet size (64) 0x0 //Does not apply to Bulk endpoints }。 //地址使能}//設(shè)備描述符code unsigned char Device_Descriptor[18] = { 0x12, //0x12 0x01, //DEVICE descriptor 0x10, 0x01, //spec rev level (BCD) 0x0, //device class 0x0, //device subclass 0x0, //device protocol 0x20, //max packet size 0x05, 0x82, //National39。 //清除TXCMP}//以下用于對端點進行處理void Set_Address(unsigned char EpNum) //設(shè)置USB地址1127{ WriteEp(0,0,0)。 //開始發(fā)送 while(!(UEPSTAXamp。 UEPNUM=EpNum。 } UEPSTAXamp。 USBADDR=FEN。 UEPRST=0x07。 UEPNUM=0x01。i++)。 USBCONamp。 USBCLK=0。 //設(shè)置PLL時鐘 PLLCON |= (0x3amp。 ct = *(c + i)。 } } SBUF = ct。while (!TI)。SBUF = 13。/39。TI = 0。c39。TI = 0。while (!TI)。) {i += 2。) {if (ct == 39。 init_uart(1200)。endif }}** 函數(shù)名稱: printuf** 功能描述: 通過串口打印16進制數(shù)據(jù) 功能類似ANSI C中的printf函數(shù)** 輸 入: char * c, unsigned char cb** 輸 出: 無void printuf(char * c, unsigned char cb) { int i = 0。while (!TI)。init_uart(1200)。 PCON = PCON|0x80。** 函數(shù)名稱: init_uart** 功能描述: 串口通訊功能初始化** 輸 入: int fre** 輸 出: 無void init_uart(int fre){if AT89C51SND1 if (fre == 1200) { TMOD = 0x20。e39。c39。a39。839。639。439。239。039。 //如果處于播放狀態(tài),則播放當前歌曲 } if(NowPlaying == NumofSong) { PlayState = STOP。SONG[11 * NowPlaying])。 //得到U盤中的MP3歌曲列表 printuf(Song:%x\n, NumofSong)。 //鍵盤初始化 MP3InitFlag = 1。Test()。 EP2) main_rxdone()。 EP0) Ep0()。 //輸出進入U盤功能的信息 AtmelUSBInit()。 CKCON|=0x01。 } IEN1 |= EKB。 break。 break。= (~EKB)。unsigned char data MP3InitFlag。unsigned char data CurrentFun = SELECTSONG。X39。 39。 39。N39。O39。extern void KeyBoardInit()。extern void Next()。extern void MP3_Init()。extern void Ep0()。不積跬步何以至千里,各位任課老師認真負責,在他們的悉心幫助和支持下,我能夠很好的掌握和運用專業(yè)知識,并在設(shè)計中得以體現(xiàn),順利完成畢業(yè)論文。以上內(nèi)容敘述了由AT89C51SND1C構(gòu)成的最小系統(tǒng)的結(jié)構(gòu),具備了便攜式MP3播放器的基本功能。圖51 Flip程序運行界面燒寫程序后,就可進行其他調(diào)試工作。文件和目錄數(shù)據(jù)區(qū)是真正存放文件數(shù)據(jù)的位置,所有數(shù)據(jù)都按照以上信息分配存儲的。同一個文件的數(shù)據(jù)并不一定存放在存儲區(qū)的一個連續(xù)的區(qū)域內(nèi),往往會分成若干段,像一條鏈子一樣的存放,這種存儲方式稱為文件的鏈式存儲。一個FAT文件系統(tǒng)卷由4個部分組成:保留區(qū)、FAT區(qū)、根目錄區(qū)、文件和目錄數(shù)據(jù)區(qū)。U盤存儲功能模塊的工作如下:當MP3播放器插入到USB接口時,系統(tǒng)執(zhí)行USB通訊功能模塊,該模塊主要用于對flash存儲器內(nèi)的文件數(shù)據(jù)進行管理。因為MP3文件的數(shù)據(jù)量較大,在flash存儲器內(nèi)是以頁為單位進行存儲的,所以MP3的播放程序初始化就是要把該文件的首地址和頁數(shù)先讀出到CPU中,然后CPU可以根據(jù)如上數(shù)據(jù)進行取數(shù)據(jù)工作。此外,為了調(diào)試方便,還有調(diào)試功能模塊。在本系統(tǒng)當中,所有軟件按功能模塊來分別編寫和調(diào)試。這種方式可使程序結(jié)構(gòu)化將可變的選擇與特殊操作組合在一起的能力,改善了程序的可讀性編程及程序調(diào)試時間顯著縮短,從而提高效率。對于單片機,現(xiàn)在常用的編程語言有兩種,即匯編語言和C語言。再好的硬件設(shè)計也要通過軟件實現(xiàn)。圖38 音頻和功率放大電路167。它把CS4330輸出的音頻模擬信號縮小100倍。它在早期的電腦上被設(shè)計為聲卡主控芯片。如圖37所示,在CYT1117的輸入端和輸出端均并聯(lián)了一個電容,對于電源上接電容主要的作用就是濾波,電容一般的選擇就是10μF 100μF。圖36 CPU部分電源
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1