manualshive.com logo in svg
background image

User’s Manual

17

3.1.2  Serial Communication

The following sample programs can be found in the 

SAMPLES\RCM2100

 folder.

CORE_FLOWCONTROL.C

—This program demonstrates hardware flow control by con-

figuring 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 PC4 and PC5 
(TxB and RxB) together at header J4, and you will also tie PC2 and 
PC3 (TxC and RxC) together using the jumpers supplied in the Devel-
opment 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.

Refer to the 

serBflowcontrolOn()

 function call in the 

Dynamic C Function Refer-

ence Manual

 for a general description on how to set up flow control lines.

CORE_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 PC4 and PC3 
(TxB and RxC) together at header J4 using the jumpers supplied in the 
Development Kit as shown in the diagram.

The Dynamic C 

STDIO

 window will display the error sequence.

Two sample programs, 

CORE_FLOW-

CONTROL.C

 and 

CORE_PARITY.C

are available to illustrate RS-232 
communication. To run these sample 
programs, you will have to add an 
RS-232 transceiver such as the 
MAX232 at location U2 and four 
100 nF capacitors at C3–C6 on the 
Prototyping Board. Also install the 2 
× 5 IDC header included with the 
Prototyping Board accessory parts at 
J6 to interface the RS-232 signals.

The diagram shows the connections.

MAX232

100 nF

storage

capacitors

J6

RxC  TxC

GND

TxB  RxB

J6

RxC  

TxC

GND

TxB  

RxB

Содержание RCM2100

Страница 1: ...ss mainly focus on the distribution of electronic components Line cards we deal with include Microchip ALPS ROHM Xilinx Pulse ON Everlight and Freescale Main products comprise IC Modules Potentiometer...

Страница 2: ...RabbitCore RCM2100 C Programmable Module with Ethernet User s Manual 019 0091 070831 K...

Страница 3: ...it 2000 and RabbitCore are trademarks of Rabbit Semiconductor Inc No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permis...

Страница 4: ...ort 12 Chapter 3 Running Sample Programs 13 3 1 Sample Programs 13 3 1 1 Getting to Know the RCM2100 14 3 1 2 Serial Communication 17 3 1 3 Other Sample Programs 18 3 1 4 Sample Program Descriptions 1...

Страница 5: ...2 6 8 1 How to Set Up your Computer for Direct Connect 53 6 9 Run the PINGME C Sample Program 54 6 10 Running More Sample Programs With Direct Connect 54 6 10 1 Sample Program PINGLED C 54 6 10 2 Samp...

Страница 6: ...ternal Battery Connections 81 C 1 2 Power to VRAM Switch 83 C 1 3 Reset Generator 83 C 2 Chip Select Circuit 84 Appendix D Sample Circuits 85 D 1 RS 232 RS 485 Serial Communication 86 D 2 Keypad and L...

Страница 7: ...RabbitCore RCM2100...

Страница 8: ...cifically The RCM2100 is a microprocessor core module designed to be the heart of your own con troller built around the plug in module Data processing is done by a Rabbit 2000 micro processor operatin...

Страница 9: ...clock Watchdog supervisor Provision for customer supplied backup battery via connections on header J2 Four CMOS compatible serial ports maximum asynchronous baud rate of 690 625 bps maximum synchronou...

Страница 10: ...asy C language program development and debugging including rapid production loading of programs Generous memory size allows large programs with tens of thousands of lines of code and substantial data...

Страница 11: ...rget system eliminating the need for complex and unreliable in circuit emulators NOTE The RCM2100 modules require Dynamic C v7 04 or later for development A compatible version is included on the Devel...

Страница 12: ...M2100 modules Dynamic C User s Manual An Introduction to TCP IP Dynamic C TCP IP User s Manual Rabbit 2000 Microprocessor User s Manual 1 4 2 Using Online Documentation We provide the bulk of our user...

Страница 13: ...mic C installation folder The latest versions of all documents are always available for free unregistered download from our Web sites as well Printing Electronic Manuals We recognize that many users p...

Страница 14: ...ment Kit If you purchased an RCM2100 module by itself you will have to adapt the information in this chapter and elsewhere to your test and development setup 2 1 Connections There are three steps to c...

Страница 15: ...dule on the Prototyping Board Note the orientation of the module NOTE It is important that you line up the RCM2100 pins on headers J1 and J2 exactly with the corresponding pins of header sockets J1 an...

Страница 16: ...rial connection Figure 3 Attaching Programming Cable to the RCM2100 NOTE The stripe on the cable is towards pin 1 of the header J5 Connect the other end of the programming cable to a COM port on your...

Страница 17: ...ply Connections to Prototyping Board Plug in the wall transformer The power LED on the Prototyping Board should light up The RCM2100 and the Prototyping Board are now ready to be used NOTE A RESET but...

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

Страница 19: ...ion menu You can create a new desktop icon that points to default htm in the docs folder in the Dynamic C installation folder 3 For advanced development topics refer to the Dynamic C User s Manual and...

Страница 20: ...n also be used as starting points or building blocks for your own applications NOTE It is assumed in this section that you have at least an elementary grasp of ANSI C If you do not see the introductor...

Страница 21: ...un this sample program FLASHLED C repeatedly flashes LED DS3 on the Prototyping Board on and off LED DS3 is controlled by Parallel Port A bit 1 PA1 FLASHLED2 C repeatedly flashes LED DS3 on the Protot...

Страница 22: ...llel Ports B C and D PB0 Keypad Col 0 PC1 Keypad Col 1 PB2 Keypad Col 2 PB3 Keypad Col 3 PB4 Keypad Col 4 PB5 Keypad Col 5 PD1 Keypad Row 0 PD2 Keypad Row 1 Connect the LCD to Parallel Port A PA0 back...

Страница 23: ...Port A bit 1 LED DS3 Parallel Port B bit 2 switch S2 Parallel Port B bit 3 switch S3 TOGGLELED C demonstrates the use of costatements to detect switch presses using the press and release method of deb...

Страница 24: ...et up flow control lines CORE_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 gen...

Страница 25: ...es are as follows RS485 to RS485 RS485 to RS485 GND to GND MASTER2 C This program demonstrates a simple RS 485 transmission of lower case letters to a slave RCM2100 The slave will send back converted...

Страница 26: ...s an endless loop with a for expression and within that loop Writes a bit to turn bit 1 off lighting LED DS3 Waits through a delay loop Writes a bit to turn bit 1 on turning off the LED Waits through...

Отзывы: