欢迎访问ic37.com |
会员登录 免费注册
发布采购

CY325 参数 Datasheet PDF下载

CY325图片预览
型号: CY325
PDF下载: 下载PDF文件 查看货源
内容描述: 步进系统控制器 [Stepper System Controller]
分类和应用: 控制器
文件页数/大小: 107 页 / 1095 K
品牌: ETC [ ETC ]
 浏览型号CY325的Datasheet PDF文件第99页浏览型号CY325的Datasheet PDF文件第100页浏览型号CY325的Datasheet PDF文件第101页浏览型号CY325的Datasheet PDF文件第102页浏览型号CY325的Datasheet PDF文件第103页浏览型号CY325的Datasheet PDF文件第105页浏览型号CY325的Datasheet PDF文件第106页浏览型号CY325的Datasheet PDF文件第107页  
CY545 Stepper System Controller  
www.ControlChips.com  
BASIC Language CRT Emulation Program  
The following BASIC language program emulates a CRT for direct serial communications with  
the CY545A. It starts by sending the two carriage returns to set the CY545 baud rate. It then  
sends the Mode command to enable the CTS/ signal. These are both done with CTS monitoring  
disabled. The host serial port id then reconfigured to enable the CTS monitoring function, and all  
other commands use CTS/. The program is a simple terminal emulator, which takes any  
command entered from the keyboard and sends it to the CY545, while also displaying any serial  
data sent by the CY545.  
100 '  
110 '  
120 '  
130 '  
BASIC Language  
CRT EMULATOR FOR CY545A  
Cybernetic Micro Systems, Inc.  
140 ' This program configures the CY545A for serial commands,  
150 ' by sending two carriage returns to set the adaptive  
160 ' rate, then sending a Mode command to enable the Clear  
170 ' To Send signal. After this, the program redefines the  
180 ' computer serial port to function with the CTS signal.  
190 ' It then becomes a terminal emulator, waiting for keyboard  
200 ' input, which it displays on the screen and sends to the  
210 ' CY545A, while displaying all serial characters received  
220 ' from the CY545A.  
230 '  
300 CLS  
310 LF$=CHR$(10) : CR$=CHR$(13) : NL$=CHR$(0) : ES$=CHR$(27)  
320 '  
330 ' Open the COM1 serial port at 9600 baud, no parity  
340 ' Note that CTS is disabled during this part  
350 '  
360 OPEN "COM1:9600,N,8,1,CS0,DS0,CD0" AS #1  
370 '  
380 ' Send two carriage returns to adapt the CY545A baud rate  
390 '  
400 PRINT #1,CR$;CR$  
410 '  
420 ' Send the Mode command to turn on the CY545A CTS signal  
430 '  
440 PRINT #1,"O 0A0h";CR$  
450 FOR I% = 1 to 5000  
'Delay while Mode Command is sent  
460 NEXT I%  
470 '  
480 ' Now reconfigure COM1 to use CTS  
490 '  
500 CLOSE #1  
510 OPEN "COM1:9600,N,8,1,CS30000,DS0,CD0" AS #1  
520 LOCATE 5,5,1  
530 PRINT "Ready to Go!"  
540 '  
550 ' Open the screen for displays  
560 '  
570 OPEN "SCRN:" FOR OUTPUT AS #2  
600 '  
610 ' Check for keyboard input. Display and send any  
© 2002 Cybernetic Micro Systems  
99  
Chapter 20 - Getting Your CY545 Running  
 复制成功!