裝配圖單片機實現(xiàn)的步進電機控制系統(tǒng)(開題報告+論文+文獻綜述+外文翻譯+DWG圖紙)
裝配圖單片機實現(xiàn)的步進電機控制系統(tǒng)(開題報告+論文+文獻綜述+外文翻譯+DWG圖紙),裝配,單片機,實現(xiàn),步進,電機,機電,控制系統(tǒng),開題,報告,講演,呈文,論文,文獻,綜述,外文,翻譯,dwg,圖紙
浙江工業(yè)大學浙西分校信電系系畢業(yè)論文(中英文資料)
Modeling micro-controller peripherals
for high-level co-simulation and synthesis
Mapping a behavior on an embedded system involves hardware-software partitioning and assignment of software and hardware tasks to different components. In particular, software tasks in embedded controllers are mostly assigned to a micro-controller. However, some micro-controller peripherals are implemented with partly programmable components that can be regarded as very simple co-processors with limited instruction sets and capabilities. Embedded system designers are used to mapping some simple software tasks onto these simple co-processors, obtaining overall performances that can be orders of magnitude superior to the ones obtained mapping all software tasks to the micro-controller itself. In this paper, we propose a methodology to specify, simulate, and partition tasks that can be implemented on programmable micro-controller peripherals such as Timing Processing Units P U S ) . Following our general philosophy, we let the designer propose a partition, and we provide an environment 0 to efficiently simulate and evaluate a particular implementation choice 0 to automate downstream synthesis for software, hardware, as well as peripheral programming routines.
1 Implementation and Case Study
We have implemented such a library for the 68hcll family of micro-controllers from Motorola . It includes: 0 The timer unit, implementing input capture and output compare functions, that measure time between input and 0 The ALII convert output events using a 16 bit free running counter. 0 The PWM generators present on a specific family member targeted for automotive applications.
Each function of the timer unit and of the PWM generator is described both at the behavioral level, using the simulator timing functions to implement time, and at the Register Transfer level, using a cycle-accurate model of the hardware. The latter is also used for hardware and software synthesis, if the peripheral is not used. C routines are used to interface to the peripheral. The precision of the RTL model can be scaled, by dividing the clock. A single simulation parameter controls this scaling without affecting the overall behavior (apart from the loss of precision).
We have specified the functionality of a complete dashboard controller, that uses the 68hcl1 peripherals. Note, with the standard co-design methods, using only fully programmable processors or hardware, all the tasks implemented by the peripherals could be implemented only as software tasks, thus yielding a less performing solution, or as hardware tasks, thus yielding a higher cost and less flexible solution. Hence the method presented here is required in order to obtain a solution quality comparable with manual design.
The speed of the behavioral simulation was about 260,000 clock cycles per second. The speed of the RTL simulation ranged almost linearly from 2,000 clock cycles per second to 50,000 clock cycles depending on the clock scaling factor, from 1 to 32. The experiments were performed on a 60MHz ULTRAsparc.
At synthesis time, the appropriate U 0 drivers are extracted from the library and customized by the co-design tools. We also synthesized a hardware implementation for the PWM generators of the dashboard controller, because they are not available on all members of the 68hcll family. We analyzed the cost trade-offs of using some small ASIC to implement that function. A hardware implementation, using XILINX FPGAs for rapid prototyping purposes required 374 CLBs (with 203 flip-flops) and 60 U 0 pads, that would fit on a XILINX 4010 chip.
2 Conclusion
The proposed solution for high-level specification of micro-controller peripherals retains most of the advantages and flexibility of hardware software co-design (uniform modeling, fast co-simulation, formal verification, flexibility in target implementation,. The limit is that the designer has to decide on whether or not a function is implementable using a particular peripheral, and sometimes such a decision must be made about peripherals that may be only slightly different between different micro-controllers. Further research is still needed to develop mapping techniques from an unbiased specification to partially programmable devices.
模擬單片機外設的高級共仿真和綜合
映射在一個嵌入系統(tǒng)上的行為包括硬件-軟件區(qū)分和對于不同成分上硬件和軟件的任務。特別的,在嵌入控制上的軟件任務由單片機執(zhí)行。但是,一些單片機外圍設備一起實現(xiàn)部分可設計的成分,這些成分被當作限制性的指令組合和能力的非常簡單的共處理器。嵌入系統(tǒng)設計者習慣于把一些簡單的軟件工作映射到這些簡單的共處理器,以獲得把大規(guī)模指令轉(zhuǎn)向獲得映射所有軟件任務的單片機本身。本文,我們打算一種方法去敘述,仿真,和區(qū)分那些可能是被用于可設計的單片機外圍設備,比如時間處理單元(TPUs)。通過我們的一般原理,我們讓設計者計劃分割,且我們提供一個環(huán)境去有效仿真和評估一個特殊執(zhí)行選擇。為軟件,硬件和外圍設備規(guī)劃常式自動化下游的綜合。
1、落實和個案研究
我們已經(jīng)實現(xiàn)了來自摩托羅拉的單片機68hcll系列。它包括:定時單元,實現(xiàn)輸入攝入輸出比較功能,使用16位自由運行計算器的輸入和輸出兩者間的測試時間。
A/D轉(zhuǎn)換器
PWM 產(chǎn)生器在一個特定的系列成員上為汽車的申請對準。
我們已經(jīng)敘述完全的儀表板控制器的功能性,這些控制器使用 68 hcl1 外圍設備。注意共設計方法的標準, 使用只有完全可設計的處理器或硬件,所有的被外設實現(xiàn)的工作能僅僅如軟件工作那樣實現(xiàn),如此產(chǎn)生一個更高的成本和更少靈活的方法。因此,在這里呈現(xiàn)的方法被要求為了獲得一個解決特性相比較手動設計。
行為模擬速度大約是260000時鐘循環(huán)每秒。RTL模擬速度范圍從2000時鐘循環(huán)每秒到5000時鐘循環(huán)每秒線性變化,依靠時鐘計數(shù)因素,從1到32。試驗在60MHZ的ULTRAsparc上被運行。
綜合時間,適當?shù)腎/O驅(qū)動從圖書館和有共設計工具的客戶上被修改。我們也為儀表板控制器的 PWM 產(chǎn)生器綜合硬件實現(xiàn),因為他們在68hcll單片機系列所有成員不是適當?shù)?。我們分析了使用一些小ASIC的稱本交換去實現(xiàn)這個功能。一個硬件實現(xiàn),使用XILINX FPGAs作為快速設計原型的目的要求374CLBs和60I/O
Pads,這些將在XILINX4010芯片上使用。
2、結論
單片機外設的高級外設的提議解決方法保留了共設計硬件/軟件的大部分優(yōu)點和靈活性。局限是設計者不得不考慮一個功能是否要用一個特殊外設去實現(xiàn),且有時如此的決定必須作出有關不同單片機外設之間的微小差別。更進一步的研究仍然需要去發(fā)展映射技術從無偏見外設到局部可編程的裝置。
收藏