You are on page 1of 10

+3.

3V
C6 100n
P2
5
U3 9
16

4
TXD0 11 14 TX0_OUT 8
VCC

TXD1 10 T1IN T1OUT 7 TX1_OUT RX1_IN 3


T2IN T2OUT 7
RXD0 12 13 RX0_IN TX1_OUT2
RXD1 9 R1OUT R1IN 8 RX1_IN 6
R2OUT R2IN 1
1
100n C1+ COM2
MAX3232/SO
C7 3 P1
C1- C8 5
4 6 100n 9
100n C2+ V- 4
8
GND

C9 5 2 C10 RX0_IN 3
C2- V+ 100n 7
TX0_OUT2
15

6
1

COM1 / ISP

P0.0
P0.1 UART SECTION
RXD0
TXD1
P0.8 RXD1

SERIAL SLT
Programming the Kit
The kit can be programmed through serial port using ‘Flash Magic’. ‘Flash
Magic’ is
a freeware windows utility used download the hex file format onto the kit.
Creating Project in KEIL and Generating
HEX file
The following section explains how to create a KEIL project for the
experiments. We
will create a example project which will blink the LEDs on the kit. The
section assumes
that you already have the necessary ‘.c’ and ‘.h’ files required for the
project in a
specified folder
1. Run the KEIL IDE and go the

2. Select the CPU target as LPC2148 under the option of NXP in the list
3. Next click YES option in the pop-up window

4. Lets give the project a name and save it as shown below


5. Copy the main.c file under the folder where we have the project file
saved

6. Include the main.c file into the project as shown below


7. Perform the following settings: ‘Click on Target1’ in the left pain, and
then go to
‘Options for target1’ as shown below and in the next pop-up window
select the
‘Output’ tab and check the option ‘Create HEX file’ as shown below.
8. To compile the project click on the icon on top of the left pane, as
highlighted
below. If the project is successfully compiled a HEX file would be
generated in
the same path where we have stored the project file. Flash the HEX file
using
Flash Magic tool as explained earlier
Algorithm:

Step1: Set port0 & port1 pins as High Speed GPIO's


Step2: Initialize the GPIO's connected to GLCD .
Step3: Initialize the GLCD.
Step4: Clear the GLCD.
Step5: Set Page and Column of GLCD to display String.
Step6: Stay resistant after step5 (in infinite loop).

You might also like