User`s manual

User’s Manual 15
FLASHLEDS.C—demonstrates the use of coding with assembly instructions, cofunc-
tions, and costatements to flash LEDs DS2 and DS3 on the Prototyping Board on and
off. LEDs DS2 and DS3 are controlled by Parallel Port A bit 0 (PA0) and Parallel Port
A bit 1 (PA1).Once you have compile this program and it is running, LEDs DS2 and
DS3 will flash on/off at different rates.
FLASHLEDS2.C—demonstrates the use of cofunctions and costatements to flash LEDs
DS2 and DS3 on the Prototyping Board on and off. LEDs DS2 and DS3 are controlled
by Parallel Port A bit 0 (PA0) and Parallel Port A bit 1 (PA1).Once you have compile
this program and it is running, LEDs DS2 and DS3 will flash on/off at different rates.
KEYLCD2.C—demonstrates a simple setup for a 2 × 6 keypad and a 2 × 20 LCD.
Connect the keypad to Parallel 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—backlight (if connected
PA1LCD /CS
PA2—LCD RS (High = Control,
Low = Data) / LCD Contrast 0
PA3—LCD /WR/ LCD Contrast 1
PA4—LCD D4 / LCD Contrast 2
PA5—LCD D5 / LCD Contrast 3
PA6—LCD D6 / LCD Contrast 4
PA7—LCD D7 / LCD Contrast 5
Once the connections have been made and the sample program isrunning, the LCD will
display two rows of 6 dots, each dot representing the corresponding key. When a key is
pressed, the corresponding dot will become an asterisk.
PB2
PB0
PB3
PB4
PB5
PC1
VCC
10 kW
resistors
RCM2100
Prototyping Board
J2
J4
3
4
5
1
6
26
35
34
PD2
PD1
Keypad
Col 1
Row 0
Row 1
NC
NC
Col 0
Col 2
Col 3
Col 4
Col 5
7
8
9
10
PA2
PA1
PA3
PA4
PA5
PA6
PA7
VLC
20 kW
10 kW
4.7 kW
2.2 kW
1 kW
470 W
680 W
100 nF
3
6
4
5
11
12
13
14
2
RCM2100
Prototyping Board
J4
10
9
8
7
6
5
4
2x20 LCD
/CS
RS
/WR
D4
D5
D6
D7
D0
D1
D2
D3
VLC
VCC