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

CY327 参数 Datasheet PDF下载

CY327图片预览
型号: CY327
PDF下载: 下载PDF文件 查看货源
内容描述: 步进系统控制器 [Stepper System Controller]
分类和应用: 控制器
文件页数/大小: 107 页 / 1095 K
品牌: ETC [ ETC ]
 浏览型号CY327的Datasheet PDF文件第99页浏览型号CY327的Datasheet PDF文件第100页浏览型号CY327的Datasheet PDF文件第101页浏览型号CY327的Datasheet PDF文件第102页浏览型号CY327的Datasheet PDF文件第103页浏览型号CY327的Datasheet PDF文件第105页浏览型号CY327的Datasheet PDF文件第106页浏览型号CY327的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 '  
140 '  
150 '  
160 '  
170 '  
180 '  
190 '  
200 '  
210 '  
220 '  
230 '  
300 CLS  
BASIC Language  
CRT EMULATOR FOR CY545A  
Cybernetic Micro Systems, Inc.  
This program configures the CY545A for serial commands,  
by sending two carriage returns to set the adaptive  
rate, then sending a Mode command to enable the Clear  
To Send signal. After this, the program redefines the  
computer serial port to function with the CTS signal.  
It then becomes a terminal emulator, waiting for keyboard  
input, which it displays on the screen and sends to the  
CY545A, while displaying all serial characters received  
from the CY545A.  
310 LF$=CHR$(10)  
320 '  
:
CR$=CHR$(13) : NL$=CHR$(0) : ES$=CHR$(27)  
330 '  
340 '  
350 '  
Open the COM1 serial port at 9600 baud, no parity  
Note that CTS is disabled during this part  
360 OPEN "COM1:9600,N,8,1,CS0,DS0,CD0" AS #1  
370 '  
380 '  
390 '  
Send two carriage returns to adapt the CY545A baud rate  
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  
460 NEXT I%  
'Delay while Mode Command is sent  
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 '  
560 '  
Open the screen for displays  
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  
 复制成功!