本章參考資料《CM3 權(quán)威指南CnR2》第三章: Cortex-M3 基礎(chǔ),第四章:指令集。官方暫時(shí)沒(méi)有《CM4 權(quán)威指南》,有關(guān)內(nèi)核的部分暫時(shí)只能參考CM3,所幸的是CM4 跟CM3 有非常多的相似之處,資料基本一樣。還有一個(gè)資料是ARM Development Tools:這個(gè)資料主要用來(lái)查詢(xún)ARM 的匯編指令。1.1 啟動(dòng)文件簡(jiǎn)介啟動(dòng)文件由匯編編寫(xiě),是系統(tǒng)上電復(fù)位后第一個(gè)執(zhí)行的程序。主要做了以下工作:1、初始化堆棧指針SP=_initial_sp2、初始化PC 指針=Reset_Handler3、初始化中斷向量表4、配置系統(tǒng)時(shí)鐘5、調(diào)用C 庫(kù)函數(shù)_Main 初始化用戶堆棧,從而最終調(diào)用Main 函數(shù)去到C 的世界1.2 查找ARM 匯編指令在講解啟動(dòng)代碼的時(shí)候,會(huì)涉及到ARM 的匯編指令和Cortex 內(nèi)核的指令,有關(guān)Cortex 內(nèi)核的指令我們可以參考CM3 權(quán)威指南CnR2》第四章:指令集。剩下的ARM 的匯編指令我們可以在MDK->Help->Uvision Help 中搜索到,以EQU 為例,檢索如下:
標(biāo)簽: stm32
上傳時(shí)間: 2022-06-23
上傳用戶:aben
第1章:介紹如何輸出方波信號(hào),使喇叭發(fā)出聲音的方法,包括發(fā)出“嘩”聲的函數(shù)和分別傳遞一個(gè)、二個(gè)及三個(gè)白變量的“嘩”聲函數(shù),以及利用定時(shí)器產(chǎn)生方波信號(hào)而令喇叭發(fā)出“嘩”聲,并敘述音階與頻率的關(guān)系,以此作為演奏音樂(lè)的基礎(chǔ)。第2章:演奏音樂(lè)的程序由Main()函數(shù)開(kāi)始,將其所有函數(shù)定義在·個(gè)Main.c的模塊內(nèi),并分別以各種指令結(jié)構(gòu)來(lái)循序漸進(jìn)地介紹軟件構(gòu)建的思維與解決方法。第3章:以模塊化的設(shè)計(jì)方式將單獨(dú)的個(gè)Main.c模塊細(xì)分為Main.c模塊、initial.c模塊、delay.c模塊、music.c模塊以及其對(duì)應(yīng)的包括文件,可以使種序易于了解,節(jié)省開(kāi)發(fā)時(shí)間。而且,用范例來(lái)說(shuō)明各種應(yīng)用方法,以使讀者建立.整體思維,并進(jìn)行有效的學(xué)習(xí)。第4章:詳細(xì)介紹如何利用定時(shí)器釣中斷方法來(lái)產(chǎn)生音階的頻率,并山1/)輸出此方波信號(hào)而驅(qū)動(dòng)喇叭發(fā)出正確的音階。當(dāng)連續(xù)產(chǎn)生各音符的音調(diào)頻率時(shí),則形成演奏音樂(lè),并漸進(jìn)式地說(shuō)明什么樣的設(shè)計(jì)方法是最好的。第5章:音符的形成有兩個(gè)要素:音調(diào)及音長(zhǎng),當(dāng)音調(diào)以定時(shí)器中斷方法來(lái)生,音長(zhǎng)是否也可以由定時(shí)器來(lái)產(chǎn)生呢?本章介紹如何利用timerO及timer]兩個(gè)定時(shí)器中斷方法來(lái)演奏音樂(lè),并特別說(shuō)明當(dāng)音長(zhǎng)計(jì)時(shí)中斷時(shí)間太短時(shí)所造成的影響以及解決的方法。第6章:說(shuō)明音樂(lè)中“移調(diào)”的概念,分別以查表法和計(jì)算法來(lái)舉例說(shuō)明D大調(diào)、降E大調(diào)、F大調(diào)、G大調(diào)、降A(chǔ)大調(diào)、降B大調(diào)。并以TACT開(kāi)關(guān)的按鍵動(dòng)作來(lái)闡述移調(diào)的功能,而以外部中斷的方法來(lái)達(dá)到音樂(lè)演奏中實(shí)時(shí)移調(diào)的功能。第7章:介紹如何以按鍵開(kāi)關(guān)來(lái)選曲,以“嘩”聲和LED閃爍方式作為選曲的提示動(dòng)作,并以下列技巧來(lái)說(shuō)明按鍵的處理方法:開(kāi)關(guān)持續(xù)按著的重復(fù)動(dòng)作、開(kāi)關(guān)持續(xù)按著也動(dòng)作一次、消除按鍵彈跳波的程序規(guī)劃、持續(xù)按鍵以延時(shí)方式來(lái)繼續(xù)執(zhí)行動(dòng)作,及持續(xù)按鍵以定時(shí)器計(jì)時(shí)方式來(lái)繼續(xù)執(zhí)行動(dòng)作。同時(shí),通過(guò)此方式來(lái)培養(yǎng)讀者軟件設(shè)計(jì)的能力并使讀者養(yǎng)成慎密的思維方式。第8章:以9個(gè)按鍵開(kāi)關(guān)分別代表1~9首的按鍵選曲,并介紹如何以l/O的方式、SCAN的方式以及ADC的方式來(lái)檢測(cè)按鍵動(dòng)作,以及當(dāng)微電腦1/0不敷使用時(shí)的解決方法。更多相關(guān)內(nèi)容已全部上傳:8051單片機(jī)徹底研究-基礎(chǔ)篇:http://dl.21ic.com/download/8051-330965.html 8051單片機(jī)徹底研究-經(jīng)驗(yàn)篇:http://dl.21ic.com/download/8051-330966.html 8051單片機(jī)徹底研究-入門(mén)篇:http://dl.21ic.com/download/8051-330967.html 8051單片機(jī)徹底研究-實(shí)習(xí)篇:http://dl.21ic.com/download/8051-330969.html 8051單片機(jī)C語(yǔ)言軟件設(shè)計(jì)的藝術(shù):http://dl.21ic.com/download/8051-330970.html
標(biāo)簽: 8051 單片機(jī) C語(yǔ)言
上傳時(shí)間: 2022-06-25
上傳用戶:
程序結(jié)構(gòu)在Arduino中,標(biāo)準(zhǔn)的程序入口Main函數(shù)在內(nèi)部被定義,用戶只需要關(guān)心以下兩個(gè)函數(shù):setup)當(dāng)Arduino板起動(dòng)時(shí)setup()函數(shù)會(huì)被調(diào)用。用它來(lái)初始化變量,引腳模式,開(kāi)始使用某個(gè)庫(kù),等等。該函數(shù)在Arduino板的每次上電和復(fù)位時(shí)只運(yùn)行一次。1oop0在創(chuàng)建setup函數(shù),該函數(shù)初始化和設(shè)置初始值,1oop(O函數(shù)所做事的正如其名,連續(xù)循環(huán),允許你的程序改變狀態(tài)和響應(yīng)事件。可以用它來(lái)實(shí)時(shí)控制arduino板。示例:控制語(yǔ)句if if,用于與比較運(yùn)算符結(jié)合使用,測(cè)試是否已達(dá)到某些條件,例如一個(gè)輸入數(shù)據(jù)在某個(gè)范圍之外。使用格式如下:該程序測(cè)試value是否大于50。如果是,程序?qū)?zhí)行特定的動(dòng)作。換句話說(shuō),如果圓括號(hào)中的語(yǔ)句為真,大括號(hào)中的語(yǔ)句就會(huì)執(zhí)行。如果不是,程序?qū)⑻^(guò)這段代碼。大括號(hào)可以被省略,如果這么做,下一行(以分號(hào)結(jié)尾)將成為唯一的條件語(yǔ)句。
標(biāo)簽: arduino
上傳時(shí)間: 2022-07-01
上傳用戶:
PrefaceDuring the past years, there has been a quickly rising interest in radio access technologies for providingmobile as well as nomadic and fixed services for voice, video, and data. The difference indesign, implementation, and use between telecom and datacom technologies is also becoming moreblurred. One example is cellular technologies from the telecom world being used for broadband dataand wireless LAN from the datacom world being used for voice-over IP.Today, the most widespread radio access technology for mobile communication is digital cellular,with the number of users passing 5 billion by 2010, which is more than half of the world’s population.It has emerged from early deployments of an expensive voice service for a few car-borne users,to today’s widespread use of mobile-communication devices that provide a range of mobile servicesand often include camera, MP3 player, and PDA functions. With this widespread use and increasinginterest in mobile communication, a continuing evolution ahead is foreseen.This book describes LTE, developed in 3GPP (Third Generation Partnership Project) and providingtrue 4G broadband mobile access, starting from the first version in release 8 and through the continuingevolution to release 10, the latest version of LTE. Release 10, also known as LTE-Advanced,is of particular interest as it is the major technology approved by the ITU as fulfilling the IMTAdvancedrequirements. The description in this book is based on LTE release 10 and thus provides acomplete description of the LTE-Advanced radio access from the bottom up.Chapter 1 gives the background to LTE and its evolution, looking also at the different standardsbodies and organizations involved in the process of defining 4G. It also gives a discussion of the reasonsand driving forces behind the evolution.Chapters 2–6 provide a deeper insight into some of the technologies that are part of LTE and itsevolution. Because of its generic nature, these chapters can be used as a background not only for LTEas described in this book, but also for readers who want to understand the technology behind othersystems, such as WCDMA/HSPA, WiMAX, and CDMA2000.Chapters 7–17 constitute the Main part of the book. As a start, an introductory technical overviewof LTE is given, where the most important technology components are introduced based onthe generic technologies described in previous chapters. The following chapters provide a detaileddescription of the protocol structure, the downlink and uplink transmission schemes, and the associatedmechanisms for scheduling, retransmission and interference handling. Broadcast operation andrelaying are also described. This is followed by a discussion of the spectrum flexibility and the associated
標(biāo)簽: 4g 移動(dòng)通信
上傳時(shí)間: 2022-07-08
上傳用戶:
本文檔介紹如何使用 GNU 語(yǔ)言工具來(lái)編寫(xiě) 16 位單片機(jī) / 數(shù)字信號(hào)控制器應(yīng)用程序代 碼。內(nèi)容安排如下: ? 第 1 章 “編譯器概述”——介紹編譯器、開(kāi)發(fā)工具和功能集。 ? 第 2 章“通用 C 接口”——介紹可用于增強(qiáng) MPLAB XC 編譯器之間代碼可移植性 的通用 C 接口。 ? 第 3 章“操作指南”——列出了一些具體操作方面的問(wèn)題和簡(jiǎn)要說(shuō)明,以及指向手 冊(cè)中相關(guān)章節(jié)的鏈接。 ? 第 4 章“XC16 工具鏈和 MPLAB X IDE”——說(shuō)明關(guān)于如何通過(guò) MPLAB X IDE 設(shè) 置和使用編譯器及相關(guān)工具的基礎(chǔ)知識(shí)。 ? 第 5 章 “編譯器命令行驅(qū)動(dòng)程序”——介紹如何從命令行中使用編譯器。 ? 第 6 章“與器件相關(guān)的特性”——介紹編譯器頭文件和寄存器定義文件,以及如何 用于 SFR。 ? 第 7 章 “MPLAB XC16 和 ANSI C 之間的差別”——介紹編譯器語(yǔ)法支持的 C 語(yǔ) 言與標(biāo)準(zhǔn) ANSI-89 C 之間的差別。 ? 第8章“支持的數(shù)據(jù)類(lèi)型和變量”——介紹編譯器的整型、浮點(diǎn)型和指針數(shù)據(jù)類(lèi)型。第 9 章 “定點(diǎn)算術(shù)支持”——說(shuō)明編譯器中的定點(diǎn)算術(shù)支持。 ? 第 10 章 “存儲(chǔ)器分配和訪問(wèn)”——介紹編譯器運(yùn)行時(shí)模型,包括關(guān)于段、初始 化、存儲(chǔ)模型、軟件堆棧和更多方面的信息。 ? 第 11 章 “操作符和語(yǔ)句”——介紹操作符和語(yǔ)句。 ? 第 12 章 “寄存器使用”——說(shuō)明如何訪問(wèn)和使用 SFR。 ? 第 13 章 “函數(shù)”——詳細(xì)介紹可用的函數(shù)。 ? 第 14 章 “中斷”——介紹如何使用中斷。 ? 第 15 章 “Main、運(yùn)行時(shí)啟動(dòng)和復(fù)位”——介紹 C 代碼的重要元素。 ? 第 16 章 “混合使用 C 代碼和匯編代碼”——提供關(guān)于編譯器與 16 位匯編語(yǔ)言模 塊配合使用的指導(dǎo)。 ? 第 17 章 “庫(kù)程序”——說(shuō)明如何使用庫(kù)。 ? 第 18 章 “優(yōu)化”——介紹優(yōu)化選項(xiàng)。 ? 第 19 章 “預(yù)處理”——詳細(xì)介紹預(yù)處理操作。 ? 第 20 章 “鏈接程序”——說(shuō)明鏈接如何工作。
標(biāo)簽: mplab xc16 編譯器
上傳時(shí)間: 2022-07-16
上傳用戶:
基于單片機(jī)的密碼鎖設(shè)計(jì),內(nèi)含工程文件和源碼文件以及電路圖#include "config.h" void Main(){ LCD_Initial(); //lcd初始化 init_sys(); //硬件系統(tǒng)初始化 setpsw(); //密碼設(shè)置 while(1) { time=3; //限定嘗試3次 while(1) { inputpsw(); //輸入密碼 checkpsw(); //密碼驗(yàn)證 checksuper(); //驗(yàn)證是否是超級(jí)密碼 if(error_flag==0) {right();break;} else if(time>1) error(); //允許2次嘗試錯(cuò)誤 else {lock();break;} //3次錯(cuò)誤,系統(tǒng)鎖定 } }}
上傳時(shí)間: 2022-07-17
上傳用戶:默默
Simulation can provide a lot of information about what the system is doing. We canadd the effect of different element, like Encoder resolution, ADC sampling rate, etc and understand how does it affect the system. Another benefit is the possibility to slow down the process, to gain insight on what happens of fast systems or, vice versa, speed up slow process.Because National Instruments is a unique company in the fact the we provide a fullhardware solution couple with a full development platform, we can use this tools in very particular ways For example, it is possible to combine the LabVIEW Control Design and Simulation Module along with the FPGA module to quickly prototype a controller. One of the Main benefits of this approach is that there is no need to compile the FPGA code, which allows for a quick algorithm design turnaround and debugging.
標(biāo)簽: pid控制
上傳時(shí)間: 2022-07-20
上傳用戶:
Allegro轉(zhuǎn)pads的方法REV1實(shí)現(xiàn)轉(zhuǎn)換,需要以下要求:1.Cadanc的PCB editor在至少XL版本以上,PADS版本必須在9.3(9.31肯定可以)以上,轉(zhuǎn)換步驟1準(zhǔn)備好要轉(zhuǎn)換的allegro文件***.brd,如下:1.1復(fù)制文件夾MentorGraphics\9.3.1PADSISDDHOME\translators\skil scripts的**il文件全部復(fù)制到目錄CadencelSPB_DATAlpcben\文件夾下;如下所示:1.2:創(chuàng)建一個(gè)新文件夾例如(……myboards_<boardlD>);并復(fù)制你想轉(zhuǎn)換的 allegro PCB文件(.brd)文件到該目錄下。使用allegro PCBEditor軟件打開(kāi)brd設(shè)計(jì)文件,并在命令提示符窗口進(jìn)入這些命令行:命令>”dfl_Main包括引號(hào))實(shí)際發(fā)現(xiàn)要用如下的命令:命令1:skill load("D:ISPB DatallpcbenlldflMain.il")其中的D:ISPB_Datallpcbenildfl_Main.il這個(gè)是指dfl_Main.il文件的路徑。命令2:Main out如下圖所示:
上傳時(shí)間: 2022-07-23
上傳用戶:20125101110
介紹針對(duì)dsPIC33FJ32MC204或同系列單片機(jī)使用入門(mén)。1、開(kāi)發(fā)環(huán)境選擇開(kāi)發(fā)環(huán)境:MPLAB IDEV8.80編譯軟件:MPLABC30,其中v3.25版本C語(yǔ)言編譯器 pic30-gcc.exe,見(jiàn)下圖。嘗試過(guò)使用最新開(kāi)發(fā)環(huán)境MPLABXIDEV1.95配合數(shù)種編譯器均無(wú)法對(duì)程序編譯通過(guò)。2、程序代碼PROJECT工程建立通過(guò)菜單中Project->Project Wizard 按步驟建立。建立完成后添加源文件c、頭文件h、鏈接文件gld,見(jiàn)下圖。其中源文件FIRST.c文件如下:#include"p33FJ32MC204.h"int Main(){while(1);
標(biāo)簽: dspic33fj32mc204 入門(mén)
上傳時(shí)間: 2022-07-24
上傳用戶:
The following table covers the Main features offered by the MT7628KN and MT7628AN. Overall, the MT7628KN supports the requirements of an entry level AP/router, while the more advanced MT7628AN supports a number of interfaces together with a large maximum RAM capacity.Features· Embedded MIPS24KEc (575/580 MHz) with 64KBl-Cache and 32KB D-Cache·2T2R 2.4GHz with 300 Mbps PHY data rate· Legacy 802.11b/g and HT 802.11n modes·20/40 MHz channel bandwidth· Reverse Data Grant(RDG)· Maximal Ratio Combining(MRC)· Space Time Block Coding(STBC)· MCM 8 Mbytes DDR1 KGD(MT7628KN)·16-bit DDR1/2 up to 128/256 Mbytes(MT7628AN/KN)· SPI/SD-XC/eMMC·x1 USB 2.0 Host,x1 Ple Root Complex·5-port 10/100 FE PHY
標(biāo)簽: mt7628
上傳時(shí)間: 2022-07-25
上傳用戶:
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1