第1講 DSP 2407 概述.ppt_第1頁(yè)
第1講 DSP 2407 概述.ppt_第2頁(yè)
第1講 DSP 2407 概述.ppt_第3頁(yè)
第1講 DSP 2407 概述.ppt_第4頁(yè)
第1講 DSP 2407 概述.ppt_第5頁(yè)
已閱讀5頁(yè),還剩33頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、第一講 DSP 2407 概述,TSM320系列DSP,不同公司(如TI、AD、MOTOROLA)分別有多種系列的DSP產(chǎn)品。 TI公司的TMS320系列包括:定點(diǎn)(2000/5000系列)、浮點(diǎn)(3000/6000系列)、多處理器(8000系列)數(shù)字信號(hào)處理器。其中2000系列有部分是DSP控制器(F24X、F240X)。,TMS320lf2407A屬于TI公司C2000XILIE 的定點(diǎn)DSP。 LF代表片內(nèi)FLASH EPROM。 LC代表低電壓CMOS ROM。 比如:TMS320LC2407(2401 2402 2403 2406)A。 TMS320LC2406(2401 2402

2、2404)A,LF240X系列DSP控制器融合實(shí)時(shí)信號(hào)處理能力、通用控制器的外設(shè)功能于一身。有如下特性: 內(nèi)在的靈活操作:(SCSR1.5-7) 高速的運(yùn)算能力: (30mips) 32位的累加器和32位的中央算術(shù)邏輯單元(CALU)。 16位16位的乘法器:可以實(shí)現(xiàn)單指令周期的乘法運(yùn)算。 有效的成本(AD PWM),TMS320LF240 x系列DSPTMS320C2XX系列是TI公司的第二代改進(jìn)型DSP,此后又陸續(xù)推出LF2406、LF2407等C2XX DSP。 LF2407為單片數(shù)字電機(jī)控制器制定了標(biāo)準(zhǔn),執(zhí)行速度可達(dá)30MIPS,指令幾乎都可在33ns的單周期內(nèi)完成,可對(duì)復(fù)雜雜的控制算

3、法進(jìn)行實(shí)時(shí)處理。(2812),主要的應(yīng)用領(lǐng)域,應(yīng)用領(lǐng)域包括: 工業(yè)電機(jī)驅(qū)動(dòng) 功率轉(zhuǎn)換器和控制器 汽車(chē)系統(tǒng),如電子動(dòng)力轉(zhuǎn)向裝置 儀表和HAVC壓縮機(jī)電機(jī)控制 機(jī)器人 計(jì)算機(jī)數(shù)字控制機(jī)械,DSP2407的內(nèi)部資源,兩個(gè)事件管理器EVA,EVB PWM對(duì)稱和非對(duì)稱波形; 當(dāng)外部引腳PDFINTX引腳出現(xiàn)低電平時(shí)快速關(guān)閉PWM通道 PDFINTA:功率驅(qū)動(dòng)保護(hù)引腳,當(dāng)電機(jī)逆變器不正常時(shí),可以把這個(gè)引腳置為低電平,產(chǎn)生一個(gè)中斷將PWM輸出引腳置為高阻態(tài)其是一個(gè)下降沿有效的中斷; PDFINTB: 具有相同的功能。,PWM死區(qū)控制; 3個(gè)捕獲單元 片內(nèi)光電編碼脈沖電路 事件管理器模塊使DSP適合用于各種電

4、機(jī)控制。,其他片內(nèi)外設(shè),10位A/D轉(zhuǎn)換器,最小轉(zhuǎn)換時(shí)間位500ns。(排序器) 控制器局域網(wǎng)絡(luò)CAN模塊; 串行通信接口(SCI)模塊; 16位串行外設(shè)(SPI)模塊; 40個(gè)通用輸入/輸出引腳(GPIO),5個(gè)外部中斷(兩個(gè)電機(jī)驅(qū)動(dòng)保護(hù)、復(fù)位和兩個(gè)可屏蔽中斷)。,DSP的存儲(chǔ)器結(jié)構(gòu), 1. 544字16位片內(nèi)數(shù)據(jù)/程序雙口RAM 2.32K字16位片內(nèi)程序FLASH 3.192K字16位最大尋址空間(64K字程序空間、64K字?jǐn)?shù)據(jù)空間、64K字I/O空間) 4. 外部存儲(chǔ)器接口模塊:軟件等待狀態(tài)發(fā)生器、16位地址數(shù)據(jù)總線,程序存儲(chǔ)空間,名詞解釋:,1.RAM: Dual-Access RA

5、M:544個(gè)16位的字; The 240 xA DARAM allows writes to and reads from the RAM in the same cycle. The DARAM is configured in three blocks: block 0 (B0), block 1 (B1), and block 2 (B2). Block 1 contains 256 words and Block 2 contains 32 words, and both blocks are located only in data memory space.,Block 0 con

6、tains 256 words, and can be configured to reside in either data or program memory space. The SETC CNF (configure B0 as program memory) and CLRC CNF (configure B0 as data memory) instructions allow dynamic configuration of the memory maps through software.,2.SRAM,single-access RAM (SARAM) There are 2

7、K words 16 bits of SARAM on some of the 240 xA devices. The PON and DON bits select SARAM(SCSR2 ) (2K) mapping in program space, data space, or both. At reset, these bits are 11, and the on-chip SARAM is mapped in both the program and data spaces.,The SARAM (starting at 8000h in program memory) is a

8、ccessible in external memory space (for 2407A only), if the on-chip SARAM is not enabled.,3.flash EEPROM,Flash EEPROM provides an attractive alternative to masked program ROM. Like ROM, Flash is nonvolatile. However, it has the advantage of reprogrammability. The LF2407A incorporates one 32K 16-bit

9、Flash EEPROM module in program space. The Flash module has multiple sectors that can be individually protected while erasing or programming. The sector size is non-uniform and partitioned as 4K/12K/12K/4K sectors.,避免了與外部存儲(chǔ)器交換數(shù)據(jù)所需要的等待狀態(tài),從而可以取得比采用外部存儲(chǔ)器更高的性能。 價(jià)格比外部存儲(chǔ)器更加便宜; 維持片內(nèi)存儲(chǔ)器中的數(shù)據(jù)需要的功耗低于外部存儲(chǔ)器的功耗。,r

10、svect B _c_int0 ;00h reset0 int1: B int1 ;02h INT1 int2: B _c_int2 ;04h INT2 int3: B int3 ;06h INT3 int4: B int4 ;08h INT4 int5: B int5 ;0Ah INT5 int6: B int6 ;0Ch INT6 int7: B int7 ;0Eh reserved int8: B int8 ;10h INT8 user-defined int9: B int9 ;12h INT9 user-defined int10: B int10 ;14h INT10 user d

11、efined int11: B int11 ;16h INT11 user defined int12: B int12 ;18h INT12 user defined int13: B int13 ;1Ah INT13 user defined int14: B int14 ;1Ch INT14 user defined int15: B int15 ;1Eh INT15 user defined,0000H003FH:段程序存儲(chǔ)空間的內(nèi)容,code security module 240 xA devices incorporate a “code security module” whi

12、ch protects the contents of program memory from unauthorized duplication. Passwords stored in password locations (PWL) 0040h to 0043h are used for this purpose.,注意:,(1)When CNF = 1, addresses FE00hFEFFh and FF00hFFFFh are mapped to the same physical block (B0) in program-memory space. For example, a

13、 write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00hFEFFh are referred to as reserved when CNF = 1.,(2)When CNF = 0, addresses 0100h01FFh and 0200h02FFh are mapped to the same physical block (B0) in data-memory space. For example,a write to 0100h has the same effe

14、ct as a write to 0200h. For simplicity, addresses 0100h01FFh are referred to as reserved.,(3)當(dāng)CFN為1時(shí),B0為片上DARAM程序存儲(chǔ)器。而數(shù)據(jù)存儲(chǔ)空間的0200H02FFH為保留的數(shù)據(jù)存儲(chǔ)區(qū)。 CFN:為ST1的第12位: ST1為狀態(tài)寄存器. on-chip RAM configuration control bit (CNF),240 xA devices incorporate a security feature that prevents external access to progr

15、am memory. This feature is useful in preventing unauthorized duplication of proprietary code. If access to Flash/ROM contents are desired for debugging purposes, two actions need to be taken: 1. A “dummy” read of locations 40h, 41h, 42h and 43h (of program memory space) is necessary. The word “dummy

16、” indicates that the destination address of this read is insignificant. NOTE: Step 2 is not required if 40h43h contain 0000 0000 0000 0000h or FFFF FFFF FFFF FFFFh. 2. A 64-bit password (split as four 16-bit words) must be written to the data-memory locations 77F0h, 77F1h, 77F2h, and 77F3h. The four

17、 16-bit words written to these locations must match the four words stored in 40h, 41h, 42h, and 43h (of program memory space), respectively. The device becomes “unsecured” one cycle after the last instruction that unsecures the part.,0007005F:測(cè)試/仿真保留區(qū),被測(cè)試和仿真系統(tǒng)用于特定信息的發(fā)送,因此,不能對(duì)測(cè)試/仿真地址進(jìn)行寫(xiě)操作,否則會(huì)導(dǎo)致使器件改變工

18、作方式。,SECTIONS /* Sections generated by the C-compiler */ .text: FLASH PAGE 0 /* initialized EXTPROG */ .cinit: FLASH PAGE 0 /* initialized EXTPROG*/ .const: B1 PAGE 1 /* initialized */ .switch: FLASH PAGE 0 /* initialized EXTPROG*/ .bss: EXTDATA PAGE 1 /* uninitialized */ .stack: SARAM PAGE 1 /* uni

19、nitialized */ .sysmem: B1 PAGE 1 /* uninitialized */ /* Sections declared by the user */ vectors: VECS PAGE 0 /* initialized */ ,幾個(gè)偽指令,.text 該標(biāo)號(hào)表示部分分存放可執(zhí)行代碼和浮點(diǎn)數(shù)常量; .SWITCH:該標(biāo)號(hào)表示部分存放大型的SWITCH語(yǔ)句和跳轉(zhuǎn)表; .const:存放已經(jīng)初始化的字符串常量、全局常量和靜態(tài)常量; .cint:已經(jīng)明確初始化的全局變量和靜態(tài)常量。 .bss:存放沒(méi)有初始化的全局變量和靜態(tài)變量。,思考題,Float a; 這時(shí)a被分配到什么空間里了。,PAGE 1: /* Data Memory */ B2: org=00060h, len=00020h /* internal DARAM */ B0: org=00200h, len=00100h /* internal DARAM */ B1: org=00300h, len=00100h /* internal DARAM */ SARAM: org=00800h, len=00800h /* internal SARAM */ EXTDATA: org=08000h, len=08000h /* external SRAM */,Addr

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論