臺達的資料,給用的著的同學們。早期當各家 PLC 開發商紛紛建立自己的編程語言時,其各自不同的編程方式,對于用戶而言無疑是一個相當大的負擔;有鑒于此,由國際組織 I.E.C.(International Electro-technical Commission)所制定與推動的 IEC 61131-3 標準便由此應運而生。其主要的特色在于統整各家的編程特點,并考慮用戶的背景與習慣,而規范了一個可讓各家廠商與用戶共同依循的標準,并可讓符合 IEC61131-3 標準的程序代碼具備相當高的可讀性與兼容性。以下是關于 IEC 61131-3 的簡述。
標簽: plc
上傳時間: 2022-02-21
上傳用戶:
該問題由某客戶提出,發生在 STM32F103VBT6 器件上。據其工程師講述:在為 STM32 調試軟件過程中,遇到了一個怪現象:有如表(一)所示的一段程序中,KeyIn 是一個全局變量。當有按鍵按下時,鍵盤的中斷服務程序會將對應的鍵值放入其中,當按鍵釋放后,鍵盤中斷服務程序則把 RESET 值放入該變量。行(1)的條件語句在主程序中,檢測有無按鍵按下,并處理。行(2)則是等待按鍵釋放。調試時,在行(1)和行(2)處各設置一個斷點,然后全速運行程序。當程序停在行(1)時按下按鍵,繼續全速運行程序。當程序
標簽: while循環
上傳時間: 2022-02-21
上傳用戶:
本文說明一種使用STVP_CmdLine 對STM8X 系列產品進行燒寫的方法,著重介紹如何通過STVP_CmdLine 及ST-LINK進行多個芯片的循序燒寫,幫助各戶在生產線構建批量燒寫的方案
標簽: stm8
上傳時間: 2022-03-06
上傳用戶:
電子書-十天學會單片機實例100.pdf//實例 4:用單片機控制一個燈閃爍:認識單片機的工作頻率 #include<reg51.h> //包含單片機寄存器的頭文件 /**************************************** 函數功能:延時一段時間 *****************************************/ void delay(void) //兩個 void 意思分別為無需返回值,沒有參數傳遞 { unsigned int i; //定義無符號整數,最大取值范圍 65535 for(i=0;i<20000;i++) //做 20000 次空循環 ; //什么也不做,等待一個機器周期 } /******************************************************* 函數功能:主函數 (C 語言規定必須有也只能有 1 個主函數) ********************************************************/ void main(void) { while(1) //無限循環 { P1=0xfe; //P1=1111 1110B, P1.0 輸出低電平 delay(); //延時一段時間 P1=0xff; //P1=1111 1111B, P1.0 輸出高電平 www.91
標簽: 單片機
上傳時間: 2022-03-19
上傳用戶:kingwide
電子書-RTL Design Style Guide for Verilog HDL540頁A FF having a fixed input value is generated from the description in the upper portion of Example 2-21. In this case, ’0’ is output when the reset signal is asynchronously input, and ’1’ is output when the START signal rises. Therefore, the FF data input is fixed at the power supply, since the typical value ’1’ is output following the rise of the START signal. When FF input values are fixed, the fixed inputs become untestable and the fault detection rate drops. When implementing a scan design and converting to a scan FF, the scan may not be executed properl not be executed properly, so such descriptions , so such descriptions are not are not recommended. recommended.[1] As in the lower part of Example 2-21, be sure to construct a synchronous type of circuit and ensure that the clock signal is input to the clock pin of the FF. Other than the sample shown in Example 2-21, there are situations where for certain control signals, those that had been switched due to the conditions of an external input will no longer need to be switched, leaving only a FF. If logic exists in a lower level and a fixed value is input from an upper level, the input value of the FF may also end up being fixed as the result of optimization with logic synthesis tools. In a situation like this, while perhaps difficult to completely eliminate, the problem should be avoided as much as possible.
標簽: RTL verilog hdl
上傳時間: 2022-03-21
上傳用戶:canderile
在全球氣候變暖和石油資源短缺的形勢下,推動新能源汽車的發展將成為汽車行業一種新的發展方向。在大力發展新能源電動汽車行業的同時還應兼顧電動汽車充電設施的發展,因此對電動汽車充電樁的設計與研究顯得十分必要。對電動汽車直流充電樁的硬件系統進行設計,主要的硬件電路包括安全監測電路、總壓采集電路、溫濕度檢測電路、語音電路。軟件包括主要流程圖和溫濕度檢測流程圖。Under the situation of global warming and shortage of petroleum resources,promoting the development of new energy vehicles will become a new development direction for the automotive industry.While vigorously developing the new energy electric vehicle industry,we should also take into account the development of electric vehicle charging facilities.Therefore,the design and research of electric vehicle charging piles is very necessary.The hardware system of the electric vehicle DC charging pile is designed.The main hardware circuits include safety monitoring circuit,total voltage collecting circuit,temperature and humidity detecting circuit,voice circuit and CAN communication.The software includes a main flow chart and a temperature and humidity detection flow chart.
標簽: 電動汽車
上傳時間: 2022-04-03
上傳用戶:jason_vip1
最近經理通知要做項目了,讓我選型一個LCD開始試著做下。這是我用仿真實現的一個smt32的硬件SPI1來驅動的ST7735R,難度挺小的,因為大部分的代碼LCD的廠商已經給我們提供了,我們主要修改成硬件SPI來驅動就好了。 此次仿真上面有2個問題,不知道是代碼的問題還是仿真圖上的問題。第一個問題是仿真運行時有時會出通信數據傳輸問題,導致指令越界報警,這個可能是SPI不穩定導致的;第二個問題是在改用SPI2或者SPI3來驅動沒有任何反應,猜測是代碼時鐘沒開對或者仿真圖上面還要加上具體晶振。 代碼工程和仿真工程都已壓縮打包,可放心下載。。。先貼上仿真實現圖: 再貼上部分代碼:/**ST7735驅動**/#include "ST7735.h"#include "usart.h" u16 BACK_COLOR, POINT_COLOR; //背景色,畫筆色 void WriteCommand_7735(u8 CmdData) //寫指令{SPI_LCD_CS_LOW; //片選SPI_LCD_COMMAND_W;//寫指令SPI_I2S_SendData(LCD_SPIx,CmdData);while (SPI_I2S_GetFlagStatus(LCD_SPIx, SPI_I2S_FLAG_TXE) == RESET){}SPI_LCD_CS_HIGH;} void WriteDate_7735(u8 Data) //寫8位數據{SPI_LCD_CS_LOW; //片選SPI_LCD_DATA_W;//寫數據SPI_I2S_SendData(LCD_SPIx,Data);while(SPI_I2S_GetFlagStatus(LCD_SPIx, SPI_I2S_FLAG_TXE) == RESET){} SPI_LCD_CS_HIGH; } void WriteDate16(int data) //寫16位數據{WriteDate_7735(data>>8);WriteDate_7735(data);} 字符限制了,貼不了多少,2積分即可下載。。。
標簽: stm32 硬件 spi 驅動 tft lcd proteus
上傳時間: 2022-04-12
上傳用戶:
S32K1xx Series Reference Manual 用戶手冊--2029頁 Supports S32K116, S32K118, S32K142, S32K144, S32K146, and S32K148S32K是一款符合AEC-Q100規范、基于32位ARM Cortex-M4F和Cortex-M0+內核的MCU,適用于通用汽車和高可靠性工業應用。The S32K1xx product series further extends the highly scalable portfolio of Arm? Cortex?-M0+/M4F MCUs in the automotive industry. It builds on the legacy of the KEA series, while introducing higher memory options alongside a richer peripheral set extending capability into a variety of automotive applications. With a 2.70–5.5 V supply and focus on automotive environment robustness, the S32K product series devices are well suited to a wide range of applications in electrically harsh environments, and are optimized for cost-sensitive applications offering low pin-count options. The S32K product series offers a broad range of memory, peripherals, and package options. It shares common peripherals and pin counts, allowing developers to migrate easily within an MCU family or among the MCU families to take advantage of more memory or feature integration. This scalability allows developers to use the S32K product series as the standard for their end product platforms, maximizing hardware and software reuse and reducing time to market
標簽: S32K116 S32K118 S32K142 S32K144
上傳時間: 2022-04-16
上傳用戶:jason_vip1
隨著電磁閥在工業和日常應用的增多,其功耗越來越被人們所重視。通過對電磁閥驅動電路的研究,設計一套電磁閥節能驅動電路。不僅提高了電磁閥的響應時間,更重要的是降低了功耗,使電磁閥由工作在大電流狀態下,變成大電流啟動小電流維持的工作狀態。減少了由電流過大引起的電磁閥線圈過熱,增加了電磁閥的安全性。The power consumption of an electromagnetic valve is drawing increasingly more attentiori as it is widely used in industrial production and daily life. In this study, an energy - saving driving circuit of electromagnetic valves was designed. It can make an electromagnetic valve to start with a high current while work with a low current; thereby the power consumption can be reduced. Besides, it can shorten the response time of an electromagnetic valve and improve the security of the valve.
上傳時間: 2022-04-16
上傳用戶:
為適應雙向DC/DC功率變換的電流采樣需求,一種高精度高邊電流采樣電路被提出。其基本思想是在功率電路的高邊串入采樣電阻,借助電流鏡原理并引入偏置電流電路,將雙向電流均轉換為正向電壓輸出。通過理論分析與仿真結合的方法對電流鏡采樣原理及4種不同的偏置電流電路方案進行對比,最后通過實驗數據驗證了高精度高邊電流采樣電路的有效性。實驗數據表明,該采樣電路可在-25~75℃的溫度工作范圍內,針對-10~+10 A范圍內的電流采樣實現優于5%的采樣精度。Current sensing plays an important role in controlling,monitoring or protection functions of power systems.To meet the current sensing requirement of bidirectional DC/DC converters,a high-accuracy bidirectional current sensing circuit is proposed.The proposed current sensing circuit inserts a resistor in the path of the current to be sensed,while the current mirror and biased current circuit are introduced.Therefore,the bidirectional current can be expressed by positive voltage.By theoretical analysis and simulation,the sampling theory is analyzed and four biased current circuits are compared.At last,experimental results verified the proposed method.It is demonstrated that the proposed current sensing circuit can achi...
上傳時間: 2022-04-22
上傳用戶: