manualshive.com logo in svg
background image

20

RabbitCore RCM3000

IR_DEMO.c

—Demonstrates sending Modbus ASCII packets between two Prototyping 

Board assemblies via the IrDA transceivers with the IrDA transceivers facing each other. 
Note that this sample program will only work with the RCM30/31/32XX Prototyping 
Board.

First, compile and run this program on one Prototyping Board assembly, then remove 
the programming cable and press the 

RESET

 button on the Prototyping Board so that 

the first RabbitCore module is operating in the 

Run

 mode. Then connect the program-

ming cable to the second Prototyping Board assembly with the RCM3000 and compile 
and run the same sample program. With the programming cable still connected to the 
second Prototyping Board assembly, press switch S2 on the second Prototyping Board 
to transmit a packet. Once the first Prototyping Board assembly receives a test packet, it 
will send back a response packet that will be displayed in the Dynamic C 

STDIO

 win-

dow. The test packets and response packets have different codes.

Once you have loaded and executed these sample programs and have an understanding of 
how Dynamic C and the RCM3000 modules interact, you can move on and try the other 
sample programs, or begin building your own.

3.3.1  Serial Communication

The following sample programs can be found in the 

SAMPLES\RCM3000\SERIAL

 folder.

FLOWCONTROL.C

—This program demonstrates hardware flow control by configuring 

Serial Port C (PC3/PC2) for CTS/RTS with serial data coming from TxB at 115,200 bps. 
One character at a time is received and is displayed in the 

STDIO

 window.

To set up the Prototyping Board, you will need to tie TxB and RxB 
together on the RS-232 header at J5, and you will also tie TxC and 
RxC together using the jumpers supplied in the Development Kit as 
shown in the diagram.

A repeating triangular pattern should print out in the 

STDIO

 window. 

The program will periodically switch flow control on or off to demonstrate the effect of 
no flow control.

PARITY.C

—This program demonstrates the use of parity modes by 

repeatedly sending byte values 0–127 from Serial Port B to Serial Port 
C. The program will switch between generating parity or not on Serial 
Port B. Serial Port C will always be checking parity, so parity errors 
should occur during every other sequence.

To set up the Prototyping Board, you will need to tie TxB and RxC together on the 
RS-232 header at J5 using the jumpers supplied in the Development Kit as shown in the 
diagram.

The Dynamic C 

STDIO

 window will display the error sequence.

J5

RxC  TxC

GND

TxB  RxB

J5

RxC

 

RxB

  GND

TxB

TxC

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

Страница 1: ...RabbitCore RCM3000 C Programmable Module with Ethernet Getting Started Manual 019 0109 050131 E...

Страница 2: ...tor com RabbitCore RCM3000 Getting Started Manual Part Number 019 0109 050131 E Printed in U S A 2002 2005 Z World Inc All rights reserved Z World reserves the right to make changes and improvements t...

Страница 3: ...Development Kit Contents 7 2 2 Prototyping Board 8 2 2 1 Prototyping Board Features 9 2 3 Development Hardware Connections 11 2 3 1 Attach Module to Prototyping Board 11 2 3 2 Connect Programming Cab...

Страница 4: ...ssigned Internet Addresses 29 4 6 Placing Your Device on the Network 30 4 7 Running TCP IP Sample Programs 31 4 8 How to Set IP Addresses in the Sample Programs 32 4 9 How to Set Up Your Computer s IP...

Страница 5: ...series RabbitCore modules including TCP IP applications 1 1 Rabbit 3000 Microprocessor The Rabbit 3000 microprocessor shares its instruction set and conceptual design with the successful Rabbit 2000...

Страница 6: ...re are two production models in the RCM3000 series If the standard models do not serve your needs other variations can be specified and ordered in production quantities Contact your Z World or Rabbit...

Страница 7: ...igure 1 RCM3000 Connector Pinout Table 2 RCM3000 Specifications Specification Data Power Supply 3 15 3 45 V DC 145 mA at 29 5 MHz clock speed Size 1 85 x 2 65 x 0 86 47 mm 67 mm 22 mm Environmental 0...

Страница 8: ...The RCM3000 module requires Dynamic C v7 25 or later for development A compatible version is included on the Development Kit CD ROM 1 4 How to Use This Manual This Getting Started manual is intended...

Страница 9: ...k and ship Rather than include and charge for manuals that every user may not want or pro vide only product specific manuals we choose to provide our complete documentation and reference library in el...

Страница 10: ...y be helpful Print from the Adobe PDF versions of the files not the HTML versions If your printer supports duplex printing print pages double sided If you do not have a suitable printer or do not want...

Страница 11: ...The RCM3000 Development Kit contains the following items RCM3010 module with Ethernet port 256K flash memory and 128K SRAM RCM3000 Prototyping Board AC adapter 12 V DC 1 A Included only with Developme...

Страница 12: ...ORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 RES RN2 J1 RCM1JA C1 C2 R1 R3 R2 UX10 J3 RCM3000 ETHERNET CORE MODULE SLAVE MASTER RCM2 RC18 UX11 RC1 RC2 UX2 C4 C5 C8 C6 C7 S3 S2 RCM2JB R14 5V 5V 3 3V...

Страница 13: ...module and may be read as inputs by sample applications Two LEDs are connected to the PG6 and PG7 pins of the master module and may be driven as output indicators by sample applications Prototyping A...

Страница 14: ...emoved and replaced with an ammeter across the pins to measure the current drawn from the 5 V or the 3 3 V supplies respectively Motor Encoder A motor encoder header is provided at header J6 for futur...

Страница 15: ...module s pins firmly into the Prototyping Board header sockets 3 3V 5V 3 3V 5V GND GND GND GND 5V 5V 3 3V 3 3V GND MOTOR ENCODER RN5 J6 R20 JP1 CURRENT MEASUREMENT OPTION 3 3V 5V 3 3V POWER D1 C13 DS...

Страница 16: ...17 RN3 RN4 J15 RN1 GND PD0 PD6 PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND PD1 PD7 PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4 GND GND SM0 IOWR PG5 PG7 PE1 PE4 PE6 PF7...

Страница 17: ...POWER GND DC GND J9 2 5 MM JACK GND DC GND GND R17 RN3 RN4 J15 RN1 GND PD0 PD6 PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND PD1 PD7 PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 P...

Страница 18: ...ng the maximum download rate to a slower baud rate as follows Locate the Serial Options dialog in the Dynamic C Options Project Options Communications menu Select a slower Max download baud rate If a...

Страница 19: ...on icon should have been installed on your workstation s desktop click on it to reach the documentation menu You can create a new desktop icon that points to default htm in the docs folder in the Dyna...

Страница 20: ...16 RabbitCore RCM3000...

Страница 21: ...data might not both fit in RAM NOTE Do not depend on the flash memory sector size or type Due to the volatility of the flash memory market the RCM3000 and Dynamic C were designed to accommo date flash...

Страница 22: ...support files and libraries The other component is the documentation library in HTML and PDF formats which may be left uninstalled to save hard drive space or installed elsewhere on a separate or net...

Страница 23: ...ogramming cable More complete information on Dynamic C is provided in the Dynamic C User s Manual CONTROLLED C uses the STDIO window to demonstrate digital outputs by toggling LEDs DS1 and DS2 on the...

Страница 24: ...ample programs or begin building your own 3 3 1 Serial Communication The following sample programs can be found in the SAMPLES RCM3000 SERIAL folder FLOWCONTROL C This program demonstrates hardware fl...

Страница 25: ...C This program demonstrates transmits and then receives an ASCII string on Serial Ports B and C It also displays the serial data received from both ports in the STDIO window To set up the Prototyping...

Страница 26: ...Section 4 11 describes the TCP IP sample programs and the RabbitCore RCM3000 User s Manual provides sample programs for the optional LCD keypad module that can be installed on the Prototyping Board 3...

Страница 27: ...zworld com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Hardware Setup 2 Ethernet Connections There are four options for connecting the RCM3000 module to a network for deve...

Страница 28: ...onnection to the Internet and other Wide Area Networks but exceptional care should be used with IP address settings and all network related programming and development We recommend that development an...

Страница 29: ...uation will take place if you use a dial up line to send a packet to the Internet Windows may try to send it via the local Ethernet network if it is also valid for that network The following IP addres...

Страница 30: ...run the sample programs with out having to setup a direct connection between your computer and the RCM3000 board You will also need the IP address of the nameserver the name or IP address of your mail...

Страница 31: ...he same form as the IP address An example netmask is 255 255 255 0 This netmask has 8 zero bits in the least significant portion and this means that 28 addresses are a part of the local network Applie...

Страница 32: ...dcast packet to all devices on the local network asking the device with the desired IP address to answer with its MAC address In this way the table entry can be filled in If no device answers then the...

Страница 33: ...te address can be used to perform some Internet tasks such as sending e mail or browsing the Web but usually cannot be used to participate in conversations that originate elsewhere on the Internet If...

Страница 34: ...usually work by disallowing traffic that did not originate from inside the net work If you want users on the Internet to communicate with your RCM3000 you have several options You can either place th...

Страница 35: ...you to connect your PC and the RCM3000 board together on the same network This network can be a local private net work preferred for initial experimentation and debugging or a connection via the Inte...

Страница 36: ...IB library You will find this library in the LIB TCPIP directory 3 You can create a CUSTOM_CONFIG LIB library and use a TCPCONFIG value greater than 100 Instructions for doing this are at the beginnin...

Страница 37: ...ion of Windows you are using look for the TCP IP Protocol Network Dial Up Connections Network line or tab Double click on this line or select Properties or Local Area Connection Properties to bring up...

Страница 38: ...he Dynamic C SAMPLES RCM3000 TCPIP folder BROWSELED C This program demonstrates a basic controller running a Web page Two LEDs are created on the Web page with two buttons to toggle them Users can cha...

Страница 39: ...Board when a ping is sent and received 4 12 Where Do I Go From Here NOTE If you purchased your RCM3000 through a distributor or through a Z World or Rabbit Semiconductor partner contact the distribut...

Страница 40: ...36 RabbitCore RCM3000...

Страница 41: ...perfect Bugs are always present in a system of any size In order to prevent danger to life or property it is the responsibility of the sys tem designer to incorporate redundant protective mechanisms a...

Страница 42: ...38 RabbitCore RCM3000...

Страница 43: ...tions 13 programming cable RCM3000 connections 12 Prototyping Board 8 expansion area 9 features 8 9 mounting RCM3000 11 R RCM3000 mounting on Prototyping Board 11 reset 13 running TCP IP sample pro gr...

Страница 44: ...40 RabbitCore RCM3000...

Страница 45: ...w zworld com documentation schemat 090 0156 pdf 090 0128 Programming Cable Schematic www zworld com documentation schemat 090 0128 pdf The schematics included with the printed manual were the latest r...

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

Отзывы: