background image

16

RabbitCore 2000

3.2  Starting Dynamic C

Once the RabbitCore 2000 is connected as 
described in the preceding pages, start 
Dynamic C by double-clicking on the 
Dynamic C icon or by double-clicking on the 

.exe

 file associated with 

DcRab

 in the 

Dynamic C directory.

Dynamic C assumes, by default, that you are 
using serial port COM1 on your PC.  If you 
are using COM1, then Dynamic C should 
detect the RabbitCore 2000 and go through a 
sequence of steps to cold-boot the RabbitCore 
2000 and to compile the BIOS.  If an error message appears, you have probably connected 
to a different PC serial port such as COM2, COM3, or COM4. You can change the serial 
port used by Dynamic C with the 

OPTIONS

 menu, then try to get Dynamic C to recognize 

the RabbitCore 2000 by selecting 

Recompile BIOS

 on the 

Compile

 menu. Try the differ-

ent COM ports in the 

OPTIONS

 menu until you find the one you are connected to. If you 

can’t get Dynamic C to recognize the target on any port, then the hookup may be wrong or 
the COM port is not working on your PC.

If you receive the “BIOS successfully compiled …” message after pressing 

<Ctrl-Y>

 or 

starting Dynamic C, and this message is followed by “Target not responding,” it is possi-
ble that your PC cannot handle the 115,200 bps baud rate.  Try changing the baud rate to 
57,600 bps as follows.

1. Open the BIOS source code file, 

RABBITBIOS.C

.

2. Change the line

#define USE115KBAUD 1

// set to 0 to use 57600 baud

to read as follows.

#define USE115KBAUD 0

// set to 0 to use 57600 baud

3. Locate the 

Serial options

 dialog in the Dynamic C 

Options

 menu.  Change the baud 

rate to 57,600 bps, then press 

<Ctrl-Y>

.

If you receive the “BIOS successfully compiled …” message and do not receive a “Target 
not responding” message, the target is now ready to compile a program.

3.3  Run a Sample Program

You are now ready to test your set-up by running a sample program.

Find the file 

FLASHLEDS.C

, which is in the Dynamic C 

Samples/COREMODULE

 folder.  To 

run the program, open it using 

File > Open

, compile it with 

Debug Compile to Target

 in the 

Compile

 menu, and then run it by selecting 

Run

 in the 

Run

 menu. LEDs DS2 and DS3 on 

the Prototyping Board should start flashing.

Installing Dynamic C

If you have not yet installed Dynamic C, 
you may do so by inserting the CD from 
the Development Kit in your PC’s CD-
ROM drive.  The CD will auto-install 
unless you have disabled auto-install on 
your PC.

Chapter 1 provides detailed instructions 
for the installation of Dynamic C and any 
future upgrades.

Содержание RabbitCore 2000

Страница 1: ...RabbitCore 2000 C Programmable Core Module Getting Started 001004 C...

Страница 2: ...100 percent functionally tested Additional testing may include visual quality control inspections or mechanical defects analyzer inspections Specifica tions are based on characterization of tested sam...

Страница 3: ...unds 11 2 4 2 Upgrades 12 3 Hardware Connections 13 3 1 Connections 14 3 2 Starting Dynamic C 16 3 3 Run a Sample Program 16 Installing Dynamic C 16 3 4 Where Do I Go From Here 17 4 Sample Programs 19...

Страница 4: ...RabbitCore 2000...

Страница 5: ...50 000 C statements Conventions Table 1 lists and defines the typographic conventions that may be encountered in Dynamic C Table 1 Typographic Conventions Example Description while Bold Courier font...

Страница 6: ...debug C programs that run on the Rabbit 2000 AC adapter The AC adapter is used to power the Prototyping Board and the Rabbit Core 2000 The wall transformer is supplied only for Development Kits sold...

Страница 7: ...Getting Started 1 1 INSTALLING DYNAMIC C...

Страница 8: ...00 Windows NT Your PC should have at least one free COM port 1 2 Installation Insert the CD in the CD ROM disk drive on your PC As long as auto install is enabled the CD installation will begin automa...

Страница 9: ...estination folder where the files will be installed Click the Next button to continue the installation The Installation Wizard will prompt you to select a Compact a Custom or a Typical installation Co...

Страница 10: ...bitCore 2000 After choosing the installation click the Next button to continue The files selected for installation are check marked Now select the PC COM port usually COM1 Click the Next button to con...

Страница 11: ...nstallation wizard will ask you what icons to dis play on your PC desktop Separate icons are available for Dynamic C itself and for the manuals and other documents Click the Finish button to end the i...

Страница 12: ...esponding icon start Dynamic C or to access the documentation It is also possible to start Dynamic C or access the documentation by double clicking the corresponding launch file on the drive where you...

Страница 13: ...ON TO DYNAMIC C Dynamic C is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with Z World controllers and other con trollers base...

Страница 14: ...nts and other advanced debugging features Watch expressions can be used to compute C expressions involving the target s program variables or functions Watch expressions can be evaluated while stopped...

Страница 15: ...Costate lib enables multitasking costatements to be defined starting with costate Also contains a library of commonly used costatements Fft lib fast Fourier transform functions Math lib math functions...

Страница 16: ...h EPROM Idblock lib functions to access the ID block in Z World product flash devices also contains general CRC checking functions Mutil lib integer math utility functions Mutilfp lib floating point m...

Страница 17: ...ries or it may focus on bug fixes Check the Web sites www zworld com support supportcenter html or www rabbitsemiconductor com support html for the latest updates patches workarounds and bug fixes 2 4...

Страница 18: ...u can verify the operation of the new release without over writing the previous release If you have made any changes to the BIOS or to libraries or if you have programs in the old directory folder mak...

Страница 19: ...ardware connections described in this chapter locate the fol lowing items RabbitCore 2000 model RCM2020 RCM2000 Prototyping Board Power supply a 12 V 500 mA power supply is included with Development K...

Страница 20: ...J6 C6 GND VCC VCC PA1 PA3 PA5 PA7 PB1 PB3 PB5 PB7 GND D6 GND PA0 PA2 PA4 PA6 PB0 PB2 PB4 PB6 D7 PCLK RCM2000 PROTOTYPING BOARD D4 D2 D0 PE6 PE4 PE2 PE0 IOR WDO A11 A9 A7 A5 A3 A1 STAT PC1 PC3 PC5 PC7...

Страница 21: ...s provided on the Prototyping Board to allow a hardware reset J2 J1 C1 J4 U1 J5 S2 S3 S1 RN1 D2 JP1 DS3 DS2 DS1 C2 U2 C3 C4 C5 J6 C6 VCC PA1 PA3 PA5 PA7 PB1 PB3 PB5 PB7 GND D6 GND PA0 PA2 PA4 PA6 PB0...

Страница 22: ...is message is followed by Target not responding it is possi ble that your PC cannot handle the 115 200 bps baud rate Try changing the baud rate to 57 600 bps as follows 1 Open the BIOS source code fil...

Страница 23: ...t at 530 757 3737 or Rabbit Semiconductor Technical Support at 530 757 8400 If the sample program ran fine you are now ready to go on to other sample programs in the next chapter or to the RabbitCore...

Страница 24: ...18 RabbitCore 2000...

Страница 25: ...Getting Started 19 4 SAMPLE PROGRAMS...

Страница 26: ...demonstrates the output to the STDIO window The CoreModule folder provides sample programs specific to the RabbitCore 2000 Let s take a look at the CoreModule folder Each sample program has comments t...

Страница 27: ...pile menu and then run it by selecting Run in the Run menu The LED on the Prototyp ing Board should start flashing if everything went well If this doesn t work review the following points The target s...

Страница 28: ...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 stat...

Страница 29: ...edit and load the program FLASHLED2 C using the File menu Open command This program is the same as the first program except that a vari able k has been added along with a statement to increment k each...

Страница 30: ...ou are single stepping If your program is running you can also evaluate watch expressions with a ctrl U if your program has a run watch command that is frequently executed In this case only expression...

Страница 31: ...o describe a style of real time programming in which most operations are done in one loop The costatement is executed on each pass through the big loop When a waitfor or a wfd condition is encountered...

Страница 32: ...d between differ ent tasks without having to take elaborate precautions Sharing variables between tasks is the greatest cause of bugs in programs that use preemptive multitasking It might seem that th...

Страница 33: ...Getting Started SCHEMATICS...

Страница 34: ......

Отзывы: