-
為解決當(dāng)前計算機串行通訊接口只有USB,難以滿足舊型號設(shè)備或某些單片機要求RS232通訊的問題,設(shè)計出兩款RS232/USB電路。采用CH341A與MAX223集成電路芯片構(gòu)建標(biāo)準(zhǔn)9線RS232/USB通用接口轉(zhuǎn)換器,無需編程。采用CH341A與PIC16F877A構(gòu)建單片機與計算機之間的USB通訊電路,軟件遵循RS232通訊協(xié)議,硬件進(jìn)行電平轉(zhuǎn)換。實際使用表明,這兩款產(chǎn)品與計算機端Windows 操作系統(tǒng)下的串口應(yīng)用程序完全兼容,且通訊過程中無握手失敗現(xiàn)象。
Abstract: To solve the problem that current computer serial communication only with USB interface can not satisfy with the old type equipments or MCU to communicate with RS232, two kinds of RS232/USB circuit were designed.CH341A and MAX223 integrated circuit chips were used to create a standard 9-line RS232/USB universal interface convertor without programme. CH341A and PIC16F877A chips were adopted to build the USB communication circuit between computers and MCU. The software follows RS232 communication protocol, and the hardware converts electrical levels. Actual practices indicate that the two manufactures are compatible with serial application program of Windows operation system completely,and get avoid of handshake lost.
標(biāo)簽:
341A
341
USB
CH
上傳時間:
2013-11-03
上傳用戶:siying
-
提出一種基于凌陽單片機的步進(jìn)電機加減速的控制方法。采用凌陽科技推出的16位結(jié)構(gòu)工控單片機SPMC75F2413A為控制器,由Allegro公司生產(chǎn)的兩相步進(jìn)電機專用驅(qū)動器件SLA7042M構(gòu)成步進(jìn)電機的驅(qū)動電路,在傳統(tǒng)的3段直線加減速控制算法基礎(chǔ)上增加至7段S形曲線加減速過程,控制步進(jìn)電機的啟動和停止。實驗結(jié)果表明,該控制方法克服了直線加減速中不連續(xù)、易造成系統(tǒng)沖擊的問題,整個系統(tǒng)實現(xiàn)柔性控制,電機啟動、停止連續(xù)性能提高30%。
Abstract:
The method of controlled stepping motor is referred based on SPMC75F2413A MCU, which adopts the 16 knots SPMC75F2413A MCU as the controller. The special-purpose actuation chip SLA7042M of two stepping motor produced by Allegro Corporation constituted to actuation electric circuit. The purpose of increasing to seven section of S shape curve based on the traditional three sections of straight line is to control the start and stop process of stepping motor. The experimental results show that the control method solves easy to pull-out and overshot problems. The overall system realizes flexible control, and the performance of motor start or stop continuity is increased 30%
標(biāo)簽:
凌陽單片機
步進(jìn)電機
減
控制方法
上傳時間:
2013-12-08
上傳用戶:jiangfire
-
單片機作為一種微型計算機,其內(nèi)部具有一定的存儲單元(8031除外),但由于其內(nèi)部存儲單元及端口有限,很多情況下難以滿足實際需求。為此介紹一種新的擴展方法,將數(shù)據(jù)線與地址線合并使用,通過軟件控制的方法實現(xiàn)數(shù)據(jù)線與地址線功能的分時轉(zhuǎn)換,數(shù)據(jù)線不僅用于傳送數(shù)據(jù)信號,還可作為地址線、控制線,用于傳送地址信號和控制信號,從而實現(xiàn)單片機與存儲器件的有效連接。以單片機片外256KB數(shù)據(jù)存儲空間的擴展為例,通過該擴展方法,僅用10個I/O端口便可實現(xiàn),與傳統(tǒng)的擴展方法相比,可節(jié)約8個I/O端口。
Abstract:
As a micro-computer,the SCM internal memory has a certain units(except8031),but because of its internal storage units and the ports are limited,in many cases it can not meet the actual demand.So we introduced a new extension method,the data line and address lines combined through software-controlled approach to realize the time-conversion functions of data lines and address lines,so the data lines not only transmited data signals,but also served as address lines and control lines to transmit address signals and control signals,in order to achieve an effective connection of microcontroller and memory chips.Take microcontroller chip with256KB of data storage space expansion as example,through this extension method,with only10I/O ports it was achieved,compared with the traditional extension methods,this method saves8I/O ports.
標(biāo)簽:
單片機
P0口
數(shù)據(jù)存儲器
擴展
上傳時間:
2014-12-26
上傳用戶:adada
-
詳細(xì)介紹工控軟件組態(tài)王與單片機多機串口通訊的設(shè)計原理。分析組態(tài)王提供的直接與單片機串口通信方法的優(yōu)點,給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機多機串口通訊的原理,給出程序設(shè)計流程與思路。
Abstract:
In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
標(biāo)簽:
工控軟件
單片機
串口通訊
多機
上傳時間:
2013-12-19
上傳用戶:tecman
-
Mega16是一款采用先進(jìn)RISC精簡指令,內(nèi)置A/D的8位單片機,可支持低電壓聯(lián)機 Flash和EEPROM 寫入功能;同時還支持 Basic和C 等高級語言編程。用它設(shè)計電子時鐘不僅成本低,硬件簡單,而且很容易實現(xiàn)系統(tǒng)移植。介紹了如何利用AVR系列單片機Mega16及1602字符液晶來設(shè)計電子時鐘的方法,同時給出了相應(yīng)的電路原理及部分語言程序。
Abstract:
?Mega16 is a high-performance, low power consumption, the use of advanced RISC concise instructions, built-in A/D 8-bit microcontrollers, the on-line support for low-voltage Flash, EEPROM write function. Except Mega16 also support the Basic, C, and other high-level language programming.The electronic clock which is deisgned by Mega16 is not only low-cost, simple hardware, but easy to achieve system migration.The design method of electrioic clock based on the AVR Mega16 and character LCD1602 is introduced in this paper,and the corresponding circuit electrionic and some language program are given.
標(biāo)簽:
Mega
AVR
16
單片機
上傳時間:
2014-12-27
上傳用戶:zl5712176
-
針對材料試驗機等設(shè)備中要求測量或控制材料拉伸或壓縮的位移,一般采用光電軸角編碼器檢測位置信號,輸出正交編碼脈沖信號。若采用其他方法檢測位置信號,必然導(dǎo)致電路設(shè)計復(fù)雜,可靠性降低。因此,提出一種基于LS7266R1的電子式萬能材料試驗機設(shè)計方案。給出了試驗機中的控制器工作原理,LS7266R1與單片機的接口硬件設(shè)計,以及主程序軟件流程圖。巧妙地把力量傳感器,位移傳感器等機械運動狀態(tài)的壓力或拉力以及位置坐標(biāo),變成了電壓信號和電脈沖數(shù)字信號,供A/D測量和LS7266R1計數(shù),從而實現(xiàn)了獨立完成材料試驗控制或通過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.
標(biāo)簽:
7266R
7266
LS
R1
上傳時間:
2013-11-02
上傳用戶:yl1140vista
-
The PCF8578 is a low power CMOS1 LCD row and column driver, designed to drive dotmatrix graphic displays at multiplex rates of 1:8, 1:16, 1:24 or 1:32. The device has40 outputs, of which 24 are programmable and configurable for the following ratios ofrows/columns: 32¤8, 24¤16, 16¤24 or 8¤32. The PCF8578 can function as a stand-alone LCDcontroller and driver for use in small systems. For larger systems it can be used inconjunction with up to 32 PCF8579s for which it has been optimized. Together these twodevices form a general purpose LCD dot matrix driver chip set, capable of driving displaysof up to 40960 dots. The PCF8578 is compatible with most microcontrollers andcommunicates via a two-line bidirectional bus (I2C-bus). Communication overhead isminimized by a display RAM with auto-incremented addressing and display bankswitching.
標(biāo)簽:
8578
PCF
LCD
圖形點陣
上傳時間:
2013-10-23
上傳用戶:頂?shù)弥?/p>
-
1 FEATURES· Single chip LCD controller/driver· 1 or 2-line display of up to 24 characters per line, or2 or 4 lines of up to 12 characters per line· 5 ′ 7 character format plus cursor; 5 ′ 8 for kana(Japanese syllabary) and user defined symbols· On-chip:– generation of LCD supply voltage (external supplyalso possible)– generation of intermediate LCD bias voltages– oscillator requires no external components (externalclock also possible)· Display data RAM: 80 characters· Character generator ROM: 240 characters· Character generator RAM: 16 characters· 4 or 8-bit parallel bus or 2-wire I2C-bus interface· CMOS/TTL compatible· 32 row, 60 column outputs· MUX rates 1 : 32 and 1 : 16· Uses common 11 code instruction set· Logic supply voltage range, VDD - VSS: 2.5 to 6 V· Display supply voltage range, VDD - VLCD: 3.5 to 9 V· Low power consumption· I2C-bus address: 011101 SA0.
標(biāo)簽:
2116
PCF
LCD
驅(qū)動器芯片
上傳時間:
2013-11-08
上傳用戶:laozhanshi111
-
The SN65LBC170 and SN75LBC170 aremonolithic integrated circuits designed forbidirectional data communication on multipointbus-transmission lines. Potential applicationsinclude serial or parallel data transmission, cabledperipheral buses with twin axial, ribbon, ortwisted-pair cabling. These devices are suitablefor FAST-20 SCSI and can transmit or receivedata pulses as short as 25 ns, with skew lessthan 3 ns.These devices combine three 3-state differentialline drivers and three differential input linereceivers, all of which operate from a single 5-Vpower supply.The driver differential outputs and the receiverdifferential inputs are connected internally to formthree differential input/output (I/O) bus ports thatare designed to offer minimum loading to the buswhenever the driver is disabled or VCC = 0. Theseports feature a wide common-mode voltage rangemaking the device suitable for party-lineapplications over long cable runs.
標(biāo)簽:
170
LBC
SN
TRIP
上傳時間:
2013-10-13
上傳用戶:ytulpx
-
The bootloader is stored in the internal boot ROM memory (system memory) of STM32devices. It is programmed by ST during production. Its main task is to download theapplication program to the internal Flash memory through one of the available serialperipherals (USART, CAN, USB, etc.). A communication protocol is defined for each serialinterface, with a compatible command set and sequences
標(biāo)簽:
STM
32
啟動代碼
上傳時間:
2014-09-06
上傳用戶:417313137