本章參考資料《CM3 權(quán)威指南CnR2》第三章: Cortex-M3 基礎(chǔ),第四章:指令集。官方暫時沒有《CM4 權(quán)威指南》,有關(guān)內(nèi)核的部分暫時只能參考CM3,所幸的是CM4 跟CM3 有非常多的相似之處,資料基本一樣。還有一個資料是ARM Development Tools:這個資料主要用來查詢ARM 的匯編指令。1.1 啟動文件簡介啟動文件由匯編編寫,是系統(tǒng)上電復(fù)位后第一個執(zhí)行的程序。主要做了以下工作:1、初始化堆棧指針SP=_initial_sp2、初始化PC 指針=Reset_Handler3、初始化中斷向量表4、配置系統(tǒng)時鐘5、調(diào)用C 庫函數(shù)_Main 初始化用戶堆棧,從而最終調(diào)用Main 函數(shù)去到C 的世界1.2 查找ARM 匯編指令在講解啟動代碼的時候,會涉及到ARM 的匯編指令和Cortex 內(nèi)核的指令,有關(guān)Cortex 內(nèi)核的指令我們可以參考CM3 權(quán)威指南CnR2》第四章:指令集。剩下的ARM 的匯編指令我們可以在MDK->Help->Uvision Help 中搜索到,以EQU 為例,檢索如下:
標簽: stm32
上傳時間: 2022-06-23
上傳用戶:aben
第1章:介紹如何輸出方波信號,使喇叭發(fā)出聲音的方法,包括發(fā)出“嘩”聲的函數(shù)和分別傳遞一個、二個及三個白變量的“嘩”聲函數(shù),以及利用定時器產(chǎn)生方波信號而令喇叭發(fā)出“嘩”聲,并敘述音階與頻率的關(guān)系,以此作為演奏音樂的基礎(chǔ)。第2章:演奏音樂的程序由Main()函數(shù)開始,將其所有函數(shù)定義在·個Main.c的模塊內(nèi),并分別以各種指令結(jié)構(gòu)來循序漸進地介紹軟件構(gòu)建的思維與解決方法。第3章:以模塊化的設(shè)計方式將單獨的個Main.c模塊細分為Main.c模塊、initial.c模塊、delay.c模塊、music.c模塊以及其對應(yīng)的包括文件,可以使種序易于了解,節(jié)省開發(fā)時間。而且,用范例來說明各種應(yīng)用方法,以使讀者建立.整體思維,并進行有效的學(xué)習(xí)。第4章:詳細介紹如何利用定時器釣中斷方法來產(chǎn)生音階的頻率,并山1/)輸出此方波信號而驅(qū)動喇叭發(fā)出正確的音階。當連續(xù)產(chǎn)生各音符的音調(diào)頻率時,則形成演奏音樂,并漸進式地說明什么樣的設(shè)計方法是最好的。第5章:音符的形成有兩個要素:音調(diào)及音長,當音調(diào)以定時器中斷方法來生,音長是否也可以由定時器來產(chǎn)生呢?本章介紹如何利用timerO及timer]兩個定時器中斷方法來演奏音樂,并特別說明當音長計時中斷時間太短時所造成的影響以及解決的方法。第6章:說明音樂中“移調(diào)”的概念,分別以查表法和計算法來舉例說明D大調(diào)、降E大調(diào)、F大調(diào)、G大調(diào)、降A(chǔ)大調(diào)、降B大調(diào)。并以TACT開關(guān)的按鍵動作來闡述移調(diào)的功能,而以外部中斷的方法來達到音樂演奏中實時移調(diào)的功能。第7章:介紹如何以按鍵開關(guān)來選曲,以“嘩”聲和LED閃爍方式作為選曲的提示動作,并以下列技巧來說明按鍵的處理方法:開關(guān)持續(xù)按著的重復(fù)動作、開關(guān)持續(xù)按著也動作一次、消除按鍵彈跳波的程序規(guī)劃、持續(xù)按鍵以延時方式來繼續(xù)執(zhí)行動作,及持續(xù)按鍵以定時器計時方式來繼續(xù)執(zhí)行動作。同時,通過此方式來培養(yǎng)讀者軟件設(shè)計的能力并使讀者養(yǎng)成慎密的思維方式。第8章:以9個按鍵開關(guān)分別代表1~9首的按鍵選曲,并介紹如何以l/O的方式、SCAN的方式以及ADC的方式來檢測按鍵動作,以及當微電腦1/0不敷使用時的解決方法。更多相關(guān)內(nèi)容已全部上傳:8051單片機徹底研究-基礎(chǔ)篇:http://dl.21ic.com/download/8051-330965.html 8051單片機徹底研究-經(jīng)驗篇:http://dl.21ic.com/download/8051-330966.html 8051單片機徹底研究-入門篇:http://dl.21ic.com/download/8051-330967.html 8051單片機徹底研究-實習(xí)篇:http://dl.21ic.com/download/8051-330969.html 8051單片機C語言軟件設(shè)計的藝術(shù):http://dl.21ic.com/download/8051-330970.html
上傳時間: 2022-06-25
上傳用戶:
程序結(jié)構(gòu)在Arduino中,標準的程序入口Main函數(shù)在內(nèi)部被定義,用戶只需要關(guān)心以下兩個函數(shù):setup)當Arduino板起動時setup()函數(shù)會被調(diào)用。用它來初始化變量,引腳模式,開始使用某個庫,等等。該函數(shù)在Arduino板的每次上電和復(fù)位時只運行一次。1oop0在創(chuàng)建setup函數(shù),該函數(shù)初始化和設(shè)置初始值,1oop(O函數(shù)所做事的正如其名,連續(xù)循環(huán),允許你的程序改變狀態(tài)和響應(yīng)事件??梢杂盟鼇韺崟r控制arduino板。示例:控制語句if if,用于與比較運算符結(jié)合使用,測試是否已達到某些條件,例如一個輸入數(shù)據(jù)在某個范圍之外。使用格式如下:該程序測試value是否大于50。如果是,程序?qū)?zhí)行特定的動作。換句話說,如果圓括號中的語句為真,大括號中的語句就會執(zhí)行。如果不是,程序?qū)⑻^這段代碼。大括號可以被省略,如果這么做,下一行(以分號結(jié)尾)將成為唯一的條件語句。
標簽: arduino
上傳時間: 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
上傳時間: 2022-07-08
上傳用戶:
本文檔介紹如何使用 GNU 語言工具來編寫 16 位單片機 / 數(shù)字信號控制器應(yīng)用程序代 碼。內(nèi)容安排如下: ? 第 1 章 “編譯器概述”——介紹編譯器、開發(fā)工具和功能集。 ? 第 2 章“通用 C 接口”——介紹可用于增強 MPLAB XC 編譯器之間代碼可移植性 的通用 C 接口。 ? 第 3 章“操作指南”——列出了一些具體操作方面的問題和簡要說明,以及指向手 冊中相關(guān)章節(jié)的鏈接。 ? 第 4 章“XC16 工具鏈和 MPLAB X IDE”——說明關(guān)于如何通過 MPLAB X IDE 設(shè) 置和使用編譯器及相關(guān)工具的基礎(chǔ)知識。 ? 第 5 章 “編譯器命令行驅(qū)動程序”——介紹如何從命令行中使用編譯器。 ? 第 6 章“與器件相關(guān)的特性”——介紹編譯器頭文件和寄存器定義文件,以及如何 用于 SFR。 ? 第 7 章 “MPLAB XC16 和 ANSI C 之間的差別”——介紹編譯器語法支持的 C 語 言與標準 ANSI-89 C 之間的差別。 ? 第8章“支持的數(shù)據(jù)類型和變量”——介紹編譯器的整型、浮點型和指針數(shù)據(jù)類型。第 9 章 “定點算術(shù)支持”——說明編譯器中的定點算術(shù)支持。 ? 第 10 章 “存儲器分配和訪問”——介紹編譯器運行時模型,包括關(guān)于段、初始 化、存儲模型、軟件堆棧和更多方面的信息。 ? 第 11 章 “操作符和語句”——介紹操作符和語句。 ? 第 12 章 “寄存器使用”——說明如何訪問和使用 SFR。 ? 第 13 章 “函數(shù)”——詳細介紹可用的函數(shù)。 ? 第 14 章 “中斷”——介紹如何使用中斷。 ? 第 15 章 “Main、運行時啟動和復(fù)位”——介紹 C 代碼的重要元素。 ? 第 16 章 “混合使用 C 代碼和匯編代碼”——提供關(guān)于編譯器與 16 位匯編語言模 塊配合使用的指導(dǎo)。 ? 第 17 章 “庫程序”——說明如何使用庫。 ? 第 18 章 “優(yōu)化”——介紹優(yōu)化選項。 ? 第 19 章 “預(yù)處理”——詳細介紹預(yù)處理操作。 ? 第 20 章 “鏈接程序”——說明鏈接如何工作。
標簽: mplab xc16 編譯器
上傳時間: 2022-07-16
上傳用戶:
基于單片機的密碼鎖設(shè)計,內(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(); //密碼驗證 checksuper(); //驗證是否是超級密碼 if(error_flag==0) {right();break;} else if(time>1) error(); //允許2次嘗試錯誤 else {lock();break;} //3次錯誤,系統(tǒng)鎖定 } }}
上傳時間: 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.
標簽: pid控制
上傳時間: 2022-07-20
上傳用戶:
Allegro轉(zhuǎn)pads的方法REV1實現(xiàn)轉(zhuǎn)換,需要以下要求:1.Cadanc的PCB editor在至少XL版本以上,PADS版本必須在9.3(9.31肯定可以)以上,轉(zhuǎn)換步驟1準備好要轉(zhuǎn)換的allegro文件***.brd,如下:1.1復(fù)制文件夾MentorGraphics\9.3.1PADSISDDHOME\translators\skil scripts的**il文件全部復(fù)制到目錄CadencelSPB_DATAlpcben\文件夾下;如下所示:1.2:創(chuàng)建一個新文件夾例如(……myboards_<boardlD>);并復(fù)制你想轉(zhuǎn)換的 allegro PCB文件(.brd)文件到該目錄下。使用allegro PCBEditor軟件打開brd設(shè)計文件,并在命令提示符窗口進入這些命令行:命令>”dfl_Main包括引號)實際發(fā)現(xiàn)要用如下的命令:命令1:skill load("D:ISPB DatallpcbenlldflMain.il")其中的D:ISPB_Datallpcbenildfl_Main.il這個是指dfl_Main.il文件的路徑。命令2:Main out如下圖所示:
上傳時間: 2022-07-23
上傳用戶:20125101110
介紹針對dsPIC33FJ32MC204或同系列單片機使用入門。1、開發(fā)環(huán)境選擇開發(fā)環(huán)境:MPLAB IDEV8.80編譯軟件:MPLABC30,其中v3.25版本C語言編譯器 pic30-gcc.exe,見下圖。嘗試過使用最新開發(fā)環(huán)境MPLABXIDEV1.95配合數(shù)種編譯器均無法對程序編譯通過。2、程序代碼PROJECT工程建立通過菜單中Project->Project Wizard 按步驟建立。建立完成后添加源文件c、頭文件h、鏈接文件gld,見下圖。其中源文件FIRST.c文件如下:#include"p33FJ32MC204.h"int Main(){while(1);
標簽: dspic33fj32mc204 入門
上傳時間: 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
標簽: mt7628
上傳時間: 2022-07-25
上傳用戶:
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1