針對大數據量的串口間通信,在常規的UART串行數據通信的基礎上,結合Cortex-M3微控制器中DMA控制器的作用,實現DMA控制的UART串口數據包收發。設計鏈表項緩存,最終實現DMA的分散/聚集模式的數據傳輸過程,主要是發送過程。提高了串行數據通信過程的MCU獨立性和MCU利用的效率。
上傳時間: 2013-11-04
上傳用戶:gaome
帶觸摸屏或鼠標的HMI智能終端,為了減少用戶的代碼量,簡化編程,可以通過預先制作配置文件(即觸摸界面切換BIN文件)到HMI中,并把HMI配置為觸控界面自動切換模式來實現觸控界面的用戶“免干預”。
上傳時間: 2013-10-20
上傳用戶:極客
Analog Inputs and Outputs in an S7 PLC are represented in the PLC as a 16-bit integer. Over the nominal span of the analog input or output, the value of this integer will range between - 27648 and +27648. However, it is easier to use the analog values if they are scaled to the same units and ranges as the process being controlled. This applications tip describes methods for scaling analog values to and from engineering units.
上傳時間: 2013-11-17
上傳用戶:3294322651
當執行機構需要的不是控制量的絕對值,而是控制量的增量(例如去驅動 步進電動機)時,需要用PID的“增量算法”。 增量式PID控制算法可以通過(2-4)式推導出。由(2-4)可以得到控制器 的第k-1個采樣時刻的輸出值為:
上傳時間: 2013-10-11
上傳用戶:waizhang
設計了一種基于PIC16C71單片機的數字水溫配制閥。該配制閥采用NTC熱敏電阻作溫度傳感器,與固定電阻組成簡單分壓電路作為水溫測量電路,利用PIC16C71單片機內置的8位A/D轉換器把熱敏電阻上的模擬電壓轉換為數字量,PIC16C71單片機控制直流電機驅動混水閥調節冷熱水的混合比例實現水溫調節。給出了控制電路圖,對水溫測量電路的參數選擇和測溫精度作了詳細討論。實驗和分析表明,選用阻值較大的NTC熱敏電阻和分壓電阻可較好地解決熱敏電阻因功耗較大造成的熱擊穿問題。 Abstract: A digital valve for controlling water temperature based on PIC16C71 was presented in this paper.A bleeder circuit which consisted of a NTC thermistor as temperature sensor and a fixed resistance was designed as water temperature measuring circuit.The analog voltage on the thermistor was converted into digital signal by a 8-bit A/D converter embedded in PIC16C71. Based on the digital signal, the MCU PIC16C71 drived the valve by a DC motor to adjust the water temperature through adjusting the proportion of hot water and cold water.The circuit diagram of controller was given,the principle,the component parameters and the accuracy of measuring temperatures were also dissertated in detail. It was found by experiment and analysis that thermal breakdown of thermistor caused by high power could be solved by selecting thermistor and fixed resistance with high impedance value.
上傳時間: 2013-11-08
上傳用戶:Yue Zhong
在16MHZ頻率下速度為16MIPS的8位RISC結構單片機,內含硬件乘法器。 支持JTAG端口仿真和編程,仿真效果比傳統仿真同更真實有效。 8通道10位AD轉換器,支持單端和雙端差分信號輸入,內帶增益可編程運算放大器。 16K字節的FLASH存貯器,支持ISP、IAP編程,使系統開發、生產、維護更容易。 多達1K字節的SRAM,32個通用寄存器,三個數據指針,使用C語言編程更容易。 512字節的EEPROM存貯器,可以在系統掉電時保存您的重要數據。 多達20個中斷源,每個中斷有獨立的中斷向量入口地址。 2個8位定時/計數器,1個16位定時/計數器,帶捕捉、比較功能,有四個通道的PWM。 硬件USART、SPI和基于字節處理的I2C接口。 杰出的電氣性能,超強的抗干擾能力。每個IO口可負載40mA的電流,總電流不超過200mA。 可選片內/片外RC振蕩、石英/陶瓷晶振、外部時鐘,更具備實時時鐘(RTC)功能;片內RC振蕩可達8MHZ,頻率可校調到1%精度;片外晶振振蕩幅度可調,以改善EMI性能。 內置模擬量比較器。 可以用熔絲開啟、帶獨立振蕩器的看門狗,看門狗溢出時間分8級可調。 內置上電復位電路和可編程低電壓檢測(BOD)復位電路。 六種睡眠模式,給你更低的功耗和更靈活的選擇。 ATMEGA16L工作電壓2.7V-5.5V,工作頻率0-8MHZ;ATMEGA16工作電壓4.5-5.5V,工作頻率0-16MHZ。 32個IO口,DIP40、TQFP44封裝。 與其它8位單片機相比,有更高的程序安全性,保護您的知識產權。
上傳時間: 2013-11-22
上傳用戶:wcl168881111111
序號 參數 數據 單位 參數 說 明 . 輸 入 參 數 變 量 1 umin V 交流輸入電壓最小值 2 umax V 交流輸入電壓最大值 3 fL Hz 電網頻率 4 f kHz 開關頻率 5 UO V 直流輸出電壓 6 PO W 輸出功率 7 η % 電源效率 8 Z 0.5 損耗分配系數 9 UFB V 反饋電壓
上傳時間: 2013-10-14
上傳用戶:小碼農lz
針對目前普通日光燈因不能調節光強而造成的能源浪費問題,設計了一種基于單片機的新型節能日光燈系統,該系統主要分為3個部分,首先采集外界光強信息并將數據傳至單片機;隨后單片機根據輸入量的不同調整輸出的PWM波;最后日光燈控制電路通過PWM波的控制,調節日光燈兩端的電壓,控制日光燈輸出的光強,使日光燈隨外界光強的變化而自動調整照射光強。經過不同外界環境的實驗調試,在滿足使用者的用光要求的前提下,日光燈工作穩定,功率明顯降低,適宜推廣使用。
上傳時間: 2013-10-29
上傳用戶:蒼山觀海
為提高電容測量精度,針對電容式傳感器的工作原理設計了基于PIC16LF874單片機電容測量模塊。簡單闡述了電容測量電路的應用背景和國內外研究現狀,介紹了美國Microchip公司PIC16LF874單片機的特性。電容式傳感器輸出的動態微弱電容信號通過PS021型電容數字轉換器把模擬量數據轉換成數字量數據,所測數據由PIC16LF874單片機應用程序進行處理、顯示和保存。實驗結果表明,固定電容標稱值為10~20 pF 的測量值相對誤差在1%以內,同時也可知被測電容容值越大,測量值和標稱值相對誤差越小。 Abstract: To improve the accuracy of capacitance measurement,aimed at the principle of work of mercury capacitance acceleration transducer,the design of micro capacitance measurement circuit is based on the key PIC16LF874 chip. Briefly discusses the application of the capacitance measuring circuit for the background and status of foreign researchers,focusing on the United States PIC16LF874 microcontroller features. Capacitive sensor outputed signal through the dynamics of weak PS021-chip capacitors (capacitancedigital converter) to convert analog data into digital data,the measured data from the PIC16LF874 microcontroller application process, display and preservation. Experimental results show that the fixed capacitor 10pF ~ 20pF nominal value of the measured value of relative error is within 1%,but also it canbe seen the value of the measured capacitance larger,measuring value and the nominal value of relative error smaller.
上傳時間: 2013-10-29
上傳用戶:wojiaohs
常量:常量是在程序執行過程中其值不能改變的量。常量的數據類型有整、浮點型、字符型和字符串型等,C51編譯器還擴充了一種位(BIT)標量。
上傳時間: 2013-11-06
上傳用戶:lwq11