User`s manual
20 RabbitCore RCM2000
• LCD_DEMO.C—demonstrates a simple setup for an LCD that uses the HD44780 con-
troller or an equivalent.
Connect the LCD to the RCM2000 address and data lines on the Prototyping Board.
D0—DB0
D1—DB1
D2—DB2
D3—DB3
D4—DB4
D5—DB5
D6—DB6
D7—DB7
A0—RS (Register Select: 0 = command, 1 = data)
A1—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.
RCM2000
Prototyping Board
2x20 LCD
E
D0D7
DB0DB7
36
/PE0
38
/IOR
37
/IOW
2x20 LCD
E
D0D7
DB0DB7
35
/PE1
D7D0 are pins 2128
on header J2
HEADER J2:
A1A0 are pins 1213
on header J4
A0A1
A0A1