4.2 Sample Programs
Sample programs are provided in the Dynamic C SAMPLES folder. The sample program
PONG.C demonstrates the output to the STDIO window. The various directories in the
SAMPLES folder contain specific sample programs that illustrate the use of the correspond-
ing Dynamic C libraries.
The SAMPLES\SMRTSTAR folder provides sample programs specific to the Smart Star
control system. Each sample program has comments that describe the purpose and func-
tion of the program. Follow the instructions at the beginning of the sample program.
To run a sample program, open it with the File menu (if it is not still open), compile it using
the Compile menu, and then run it by selecting Run in the Run menu. The BL2500 must
be in Program mode (see Section 3.3, “Programming Cable”) and must be connected to a
PC using the programming cable as described in Section 2.2, “Connect the Power Supply.”
More complete information on Dynamic C is provided in the Dynamic C User ’s Manual .
Let’s take a look at sample programs for the backplane and the CPU Card in the
SMRTSTAR folder.
The RS232 directory contains two sample programs to illustrate RS-232 serial communi-
cation.
? SSTAR232.C —Demonstrates a simple RS-232 loopback using both serial ports C and D.
? SSTAR5W.C —Demonstrates simple 5-wire RS-232 communication with flow control.
The RS485 directory contains two sample programs to illustrate RS-485 serial communication.
? MASTER.C —Demonstrates a simple RS-485 transmission of lower case letters to a
slave controller. The slave will send converted upper case letters back to the master
controller for display in the STDIO window. Use SLAVE.C to program the slave con-
troller.
? SLAVE.C —Demonstrates a simple RS-485 transmission of alphabetic characters to a
master controller. The slave will send converted upper case letters back to the master
controller for display in the STDIO window. Use MASTER.C to program the master
controller.
46
Smart Star (SR9000)
相关PDF资料
101-0545 PROTOTYPING BOARD FOR LP3500
101-0563 RCM3400 PROTO BOARD
101-0589 CLONING BOARD RABBIT
101-0688 CARD D/A EXPANSION RN1300
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
相关代理商/技术参数
101-0507 功能描述:模块化系统 - SOM RCM3000 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101-0508 功能描述:模块化系统 - SOM RCM3010 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101050-9 制造商:RUKO 功能描述:Bulk 制造商:RUKO 功能描述:STEP DRILL 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM; Drill Bit Size Metric:4mm; Overall Length:65mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 12mm; Shank Dia:6mm; Step:1mm ;RoHS Compliant: NA
101050BO 制造商:TE Connectivity 功能描述:
101051 制造商:RUKO 功能描述:STEP DRILL 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM; Drill Bit Size Metric:4mm; Overall Length:75mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 20mm; Shank Dia:8mm; Step:2mm ;RoHS Compliant: NA
10-105108-03G 制造商:Amphenol Aerospace 功能描述:10-105108-03G
10-105108-03P 制造商:Amphenol Aerospace 功能描述:10-105108-03P
10-105108-04P 制造商:Amphenol Aerospace 功能描述:10-105108-04P