manualshive.com logo in svg
background image

16

RabbitCore RCM2100

LCD_DEMO.C

—demonstrates a simple setup for an LCD that uses the HD44780 con-

troller or an equivalent.

Connect the LCD to the RCM2100 address and data lines on the Prototyping Board.

BD0—DB0
BD1—DB1
BD2—DB2
BD3—DB3
BD4—DB4
BD5—DB5
BD6—DB6
BD7—DB7

BA0—RS (Register Select: 0 = command, 1 = data)
BA1—R/W (0=write, 1=read)
*—E (normally low: latches on high-to-low transition)

SWTEST.C

—demonstrates the use of pushbutton switches S2 and S3 to toggle LEDs 

DS2 and DS3 on the Prototyping Board on and off.

Parallel Port A bit 0 = LED DS2
Parallel 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 debouncing. As soon as the sample program starts run-
ning, LED DS3 on the Prototyping Board (which is controlled by PA1) starts flashing 
once per second. Press switch S2 on the Prototyping Board (which is connected to PB2) 
to toggle LED DS2 on the Prototyping Board (which is controlled by PA0). The push-
button switch is debounced by the software.

RCM2100

Prototyping Board

2x20 LCD

E

BD0–BD7

DB0–DB7

25

/PE0

37

/BIOR

36

/BIOW

2x20 LCD

E

BD0–BD7

DB0–DB7

24

/PE1

BD7–BD0 are pins 10–17
on header J2

HEADER J2:

BA1–BA0 are pins 23–24
on header J4

BA0–BA1

BA0–BA1

Содержание 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...

Отзывы: