? The programming cable must be connected to the BL1810. (The colored wire on the
programming cable is closest to pin 1 on header J3 on the BL1810, as shown in
Figure 3.) The other end of the programming cable must be connected to the PC serial
port. The COM port specified in the Dynamic C Options menu must be the same as the
one the programming cable is connected to.
? To check if you have the correct serial port, select Compile , then Compile BIOS , or
type <Ctrl-Y> . If the “BIOS successfully compiled …” message does not display, try a
different serial port using the Dynamic C Options menu until you find the one you are
plugged into. Don’t change anything in this menu except the COM number. The baud
rate should be 115,200 bps and the stop bits should be 1.
Single-Stepping
Compile or re-compile DEMOJR1.C by clicking the Compile button on the task bar. The
program will compile and the screen will come up with a highlighted character (green) at
the first executable statement of the program. Use the F8 key to single-step. Each time the
F8 key is pressed, the cursor will advance one statement. When you get to the for(j=0,
j< ... statement, it becomes impractical to single-step further because you would have
to press F8 thousands of times. We will use this statement to illustrate watch expressions.
Watch Expression
Type <Ctrl-W> or chose Add/Del Watch Expression in the Inspect menu. A box will
come up. Type the lower case letter j and click on add to top and close . Now continue
single-stepping with F8 . Each time you step, the watch expression ( j ) will be evaluated
and printed in the watch window. Note how the value of j advances when the statement
j++ is executed.
Break Point
Move the cursor to the start of the statement:
for(j=0; j<1000; j++);
To set a break point on this statement, type F2 or select Breakpoint from the Run menu.
A red highlight will appear on the first character of the statement. To get the program run-
ning at full speed, type F9 or select Run on the Run menu. The program will advance
until it hits the break point. Then the break point will start flashing and show both red and
green colors. Note that LED DS3 is now solidly turned on. This is because we have passed
the statement turning on LED DS3. Note that j in the watch window has the value 25000.
This is because the loop above terminated when j reached 25000.
To remove the break point, type F2 or select Toggle Breakpoint on the Run menu. To
continue program execution, type F9 or select Run from the Run menu. Now the LED
should be flashing again since the program is running at full speed.
You can set break points while the program is running by positioning the cursor to a state-
ment and using the F2 key. If the execution thread hits the break point, a break point will
take place. You can toggle the break point off with the F2 key and continue execution with
the F9 key. Try this a few times to get the feel of things.
Getting Started Manual
19
相关PDF资料
101-0523 KIT DEV RABBIT3000/RCM3000
101-1109 KIT EMBEDDED PLC APPLICATION
101-1147 KIT RIO PROGRAM I/O
101-606 CONN SOCKET IDC 60POS W/KEY GOLD
10113616-01531LF CONN MOD JACK 8PORT 8/8 R/A PCB
10117863-5036010LF CONN MOD JACK 8/8 R/A PCB
10118061-5005010LF CONN MOD JACK 2PORT 8/8 R/A PCB
10118062-5001310LF CONN MOD JACK 4PORT 8/8 R/A PCB
相关代理商/技术参数
101-0359-000 制造商:ITT Interconnect Solutions 功能描述:1010359000 / 101-0359-000 / Circular
10103592 制造商:FCI-CONNECTOR 制造商全称:FCI connector 功能描述:MICRO-USB B-TYPE REVERSE
10103592-0001LF 功能描述:USB接头 5P Quick Connect Micro USB TypeB Plug RoHS:否 制造商:FCI 产品:USB Type A Connectors 标准:USB 3.0 端口数量: 位置/触点数量:9 型式:Female 电流额定值:1.8 A 安装风格:Through Hole 端接类型:Solder Pin 连接器类型:USB 3.0 Receptacle
10103593 制造商:FCI-CONNECTOR 制造商全称:FCI connector 功能描述:MICRO-USB B-TYPE MID-MOUNT
10103593-0001LF 功能描述:USB接头 5P Quick Connect Micro USB TypeB RCPT RoHS:否 制造商:FCI 产品:USB Type A Connectors 标准:USB 3.0 端口数量: 位置/触点数量:9 型式:Female 电流额定值:1.8 A 安装风格:Through Hole 端接类型:Solder Pin 连接器类型:USB 3.0 Receptacle
10103593-0001LF 制造商:FCI 功能描述:MICRO USB B, RECEPTACLE, 5POS, SMT RT AN
10103594 制造商:FCI-CONNECTOR 制造商全称:FCI connector 功能描述:MICRO-USB B-TYPE RECEP.
10103594-0001LF 功能描述:USB接头 5P Quick Connect Micro USB TypeB Rcpt RoHS:否 制造商:FCI 产品:USB Type A Connectors 标准:USB 3.0 端口数量: 位置/触点数量:9 型式:Female 电流额定值:1.8 A 安装风格:Through Hole 端接类型:Solder Pin 连接器类型:USB 3.0 Receptacle