首先研究CAN總線和SAE J1939協議,提出一種基于MC9S12HZ256微控制器的總線式汽車數字儀表解決方案。詳細介紹SAE J1939協議的報文幀格式及應用層協議中發動機相關參數的定義,以及步進電機及其驅動和車速信號的處理方法。該數字儀表系統硬件平臺由微處理器和信號采集和信息處理及顯示等模塊組成。軟件設計部分編程實現了對CAN總線和各傳感器數據的讀取、處理。該系統能夠實時反映車輛工況。 Abstract: In this paper,CAN bus and SAE J1939protocol are researched,and a vehicle digital instrument solution based on MC9S12HZ256MCU is proposed.The message frame format and some engine-related parameters’definition in SAE J1939application layer protocol are introduced in detail.Stepper motor and its driver,the methods of speed signal process-ing are also introduced.The hardware platform of vehicle digital instrument is composed by MCU,signal acquisition mod-ule,and signal processing and displaying module.Data receiving and processing from CAN bus and sensors are accom-plished by programming,and vehicle condition can be reflected in real-time.
上傳時間: 2013-10-20
上傳用戶:huannan88
介紹基于ISA總線與KH-9300的數據采集板卡的設置,詳細說明8254定時計數器及8259中斷控制器的結構特點、工作方式、控制字等,探討中斷類型、中斷處理程序、中斷矢量表及其填寫。重點講述使用TorboC編寫中斷服務程序的方法,應注意的主要問題及程序測試的結果。 Abstract: The settings of KH-9300 data acquisition board based on the ISA bus is introduced,the structural characteristics,working methods,control characters of the timing counter 8254 and interruptioncontroller 8259 are explained in detail.The interruption type,interrupt handling programs,interruption vector table and its filling also are discussed.Further,great emphasis is put on the method of interrupt service program compiled by Torbo C,the main issues that should be noted,and the results of program testing.
上傳時間: 2013-11-14
上傳用戶:qq527891923
在開放式數控系統結構模型的基礎上,研究了基于ISA總線的DSP通信控制原理。采用中斷方式完成了PC機和DSP之間的通信。介紹了以DriverWorks為工具開發ISA設備WDM驅動程序的方法,探討了中斷處理、驅動程序與應用程序之間的通信,簡要說明了驅動程序的安裝與調試。通過調試,系統設計運行穩定。 Abstract: The ISA bus and DSP correspondence control principle is investigated in the basis of the existing open architecture numerical control system.The interrupt method is used to realize the communication between PC and DSP based on the ISA bus.The methods of WDM driver exploitation for ISA device using Driver Works are introduced.The main process of driver program and the keys such as handle interrupt and the communication between the drivers and application are presented.And how to debug and install the drive is explained.
上傳時間: 2013-11-04
上傳用戶:kang1923
在汽車發動機起動時,若發動機起動后起動機不能及時斷電,將會燒毀起動機或損壞飛輪齒環;若變速器不在空檔位置起動,則起動機的瞬間動力將使汽車位移,還可能引起交通事故和人身安全。為此介紹一種利用NXP P89LPC901單片機控制的汽車起動保護控制器,通過檢測汽車起動開關、變速箱檔位、發動機轉速,實現對汽車發動機起動過程檢測和保護。起動保護控制器在發動機起動過程中通過采用逐個關閉打開負載系統,解決汽車發動機過程中因起動電流大而對汽車電源的沖擊影響,延長了電瓶壽命。 Abstract: When the automotive engine is started, the engine start motor and flywheel gear may be damaged, even traffic accidents and personal safeties may be caused by wrong operation or other factors.In order to ensure the automotive engine can be started normally and safely,it is necessary that the protecting measures and methods are considered in the automotive electrical control system.This paper introduces a kind of the automotive engine starting protect controller based on NXP P89LPC901 MCU.The controller can protect the engine starting process by detecting the starter key switch,transmission stall and engine speed.Through the use of close and open load system,the controller can solve the impact on automotive power because of the high-current load in the process of the automobile engine starting, and extend battery life.
上傳時間: 2013-10-15
上傳用戶:mikesering
針對材料試驗機等設備中要求測量或控制材料拉伸或壓縮的位移,一般采用光電軸角編碼器檢測位置信號,輸出正交編碼脈沖信號。若采用其他方法檢測位置信號,必然導致電路設計復雜,可靠性降低。因此,提出一種基于LS7266R1的電子式萬能材料試驗機設計方案。給出了試驗機中的控制器工作原理,LS7266R1與單片機的接口硬件設計,以及主程序軟件流程圖。巧妙地把力量傳感器,位移傳感器等機械運動狀態的壓力或拉力以及位置坐標,變成了電壓信號和電脈沖數字信號,供A/D測量和LS7266R1計數,從而實現了獨立完成材料試驗控制或通過PC機串口命令完成材料試驗控制。 Abstract: Aiming at the requirement that the displacement of the tension and compression always be tested and controlled in the equipement such as material testing machine. The position signal was tested by photoelectric axial angle coder. Therefore, the paper proposes the design of electronic universal testing machine design based on LS7266R1. If the position signal detected by other methods, will inevitably lead to the circuit design complexity, reliability decreased. The work theory of the controller, the hardware interface design between LS7266R1 and single chip, and the flow chart of main program, are presented in this paper. The signal of the compression or tension power and displacement at working, which tested by power sensor and displacement sensor especially, is changed into electric voltage and electric pulse numerical signals. And these signals can be tested by A/D and counted by LS7266R1. Finally the test of the material properties can be controlled by itself, or controlled by the COM command of PC.
上傳時間: 2013-11-02
上傳用戶:yl1140vista
介紹了電力操作電源與智能電池巡檢系統的特點,給出了一種基于超低功耗單片機MSP430 F149針對中小型變電站自動化運行的專用設備的基本設計原理及實現方法,最后給出了詳細硬件構成和軟件實現。該系統能滿足中小型變電站安全、可靠、自動運行的要求,并通過與上位機的串行通信實現變電站的遠程管理和控制。 Abstract: The characters of the intelligent battery data logging system of the electric operation power are introduced.The basic design principle and the implemented methods of the special equipment which only designed for the middle or small transformer substation based on MSP430F149 are prescribed. Finally, the hardware block diagram and the software flow chart are also given. The function that the system finally needs to realize can basically meet with the middle or small transformer substation’s satisfy, reliably,and automatic running.And it can also realize the transformer substation long-distance management and control by serial communicating with the host computer.
上傳時間: 2013-11-25
上傳用戶:黃華強
The HCS12X family is the successor to the HCS12family, with many additional features. One new feature isthe increased memory available to the CPU and themethods available to access it. This document focuses onthe improved memory map configuration.
上傳時間: 2013-11-13
上傳用戶:王者A
Luminary Micro provides an analog-to-digital converter (ADC) module on some members of theStellaris microcontroller family. The hardware resolution of the ADC is 10 bits; however, due to noiseand other accuracy-diminishing factors, the true accuracy is less than 10 bits. This application noteprovides a software-based oversampling technique, resulting in an improved Effective Number OfBits (ENOB) in the conversion result. This document describes methods of oversampling an inputsignal, and the impact on precision and overall system performance.
標簽: Oversampling Techniques ADC fo
上傳時間: 2013-12-17
上傳用戶:zhyiroy
Luminary Micro Stellaris™ microcontrollers that are equipped with an analog-to-digital converter(ADC), use an innovative sequence-based sampling architecture designed to be extremely flexible,yet easy to use. This application note describes the sampling architecture of the ADC. Sinceprogrammers can configure Stellaris microcontrollers either through the powerful StellarisFamilyDriver Library or through direct writes to the device's control registers, this application note describesboth methods. The information presented in this document is intended to complement the ADCchapter of the device datasheet, and assumes the reader has a basic understanding of howADCsfunction.
標簽: Microcontr Stellaris Using the
上傳時間: 2013-10-14
上傳用戶:blans
The μPSD32xx family, from ST, consists of Flash programmable system devices with a 8032 MicrocontrollerCore. Of these, the μPSD3234A and μPSD3254A are notable for having a complete implementationof the USB hardware directly on the chip, complying with the Universal Serial Bus Specification, Revision1.1.This application note describes a demonstration program that has been written for the DK3200 hardwaredemonstration kit (incorporating a μPSD3234A device). It gives the user an idea of how simple it is to workwith the device, using the HID class as a ready-made device driver for the USB connection.IN-APPLICATION-PROGRAMMING (IAP) AND IN-SYSTEM-PROGRAMMING (ISP)Since the μPSD contains two independent Flash memory arrays, the Micro Controller Unit (MCU) can executecode from one memory while erasing and programming the other. Product firmware updates in thefield can be reliably performed over any communication channel (such as CAN, Ethernet, UART, J1850)using this unique architecture. For In-Application-Programming (IAP), all code is updated through theMCU. The main advantage for the user is that the firmware can be updated remotely. The target applicationruns and takes care on its own program code and data memory.IAP is not the only method to program the firmware in μPSD devices. They can also be programmed usingIn-System-Programming (ISP). A IEEE1149.1-compliant JTAG interface is included on the μPSD. Withthis, the entire device can be rapidly programmed while soldered to the circuit board (Main Flash memory,Secondary Boot Flash memory, the PLD, and all configuration areas). This requires no MCU participation.The MCU is completely bypassed. So, the μPSD can be programmed or reprogrammed any time, anywhere, even when completely uncommitted.Both methods take place with the device in its normal hardware environment, soldered to a printed circuitboard. The IAP method cannot be used without previous use of ISP, because IAP utilizes a small amountof resident code to receive the service commands, and to perform the desired operations.
標簽: Demonstration 3200 USB for
上傳時間: 2014-02-27
上傳用戶:zhangzhenyu