MY ARM-7 USER TUTORIAL
INDEX
1. MYARM7 FEATURES.
2. POWER SUPPLY OPTIONS.
3. IO POTRS.
3.1 PORT_0.
3.2 PORT_1.
4. SERIAL PORTS.
4.1 COM_0.
4.2 COM_1.
5. ADC OPTIONS.
5.1 ADC_0_2:
5.2 ADC_0_3:
6. ON BOARD IO DEVICES..
6.1 BUZZER
6.2 LCD.
7. SOFTWARE PROGRAMMIG DEVLOPMENT.
8. DUMPING .HEX FILE.
1. MYARM7 FEATURES
MYARM7 is the evolution board for the LPC2148.LPC2148 is
16-bit/32-bit ARM7TDMI-S microcontroller in a tiny
LQFP64 package has 64 pins, on chip SRAM of 32kB. USB
RAM of 2 kB, On-chip FLASH of 512kB, has 14no 10-bit ADC
channels and 1 no 10-bit DAC channels.
The development board has the following features
2. POWER OPTIONS:
Input power with control ON/OFF switch.
Require 12v DC with 1 amp current or also can provide
5v DC to run the board for low power ratings applications.
Two 5 v dc slots and one 3.3v dc slot for additional Power
for external devices which has low current ratings and also
for common ground problems.
3.IO PORTS:
Generally LPC2148 has IO port pins of 45 pins and are divided into
8 bit pin out mode with pull up of 10 k provided.
3.1 PORT_0:
MYARM-7 board has total 29 port_0 I/O pins. In which three 8 bit
pin mode and the remaining five pins left as 5 bit pin has no pull up. As
the pin configuration can be available in LPC2148 user manual.
3.1 PORT_1:
MYARM-7 board has total 16 port_1 I/O pins. In which two 8 bit
pin mode with pull up. As the pin configuration can be available in
LPC2148 user manual.
One set of 8 bit pins of P1 are connected to LCD 8 bit data and
RS,RW,EN connected to other 3 pins of 8 bit pins of P1.
While programming the LCD we should not use the LCD data and
control pins.
Some pins are given to switches and buttons which we discuss later
in ON BOARD I/O DEVICES OPTIONS.
4. SERIAL PORTS
Introducing a fractional baud rate generator for both UARTs,
enabling these microcontrollers to achieve standard baud rates such
as 115200 with any crystal frequency above 2 MHz’s The LPC2148
each contain two UARTs. In addition to standard transmit and receive
data lines, the LPC2148 UART1 also provide a full modem control
handshake interface.
MY ARM-7 has two com ports which UART0 and UART1 with DB9
female connectors.
UARTS (0&1) are configured with jumpers.
4.1 COM_0.
UART_0 has TTL pins P0.0 (TX_0), P0.1 (RX_0) has the additional
feature which is dumping the .hex code to the LPC2148.
4.2COM_1
UART1 has TTL pins P0.8 (TX_1), P0.9 (RX_1) also provides a full
modem control handshake interface as this doesn’t support the
.hex code dumping.
5.ADC OPTIONS
The LPC2148 contain two analog to digital converters. These
converters are single 10-bit successive approximation analog to
digital converters. While ADC0 has six channels, ADC1 has eight
channels. Therefore, total number of available ADC inputs for
LPC2148 is 14.
MY ARM-7 board has the 2 ADC in put one is POT (10 k) and
other is LM 35 (TEMPERATURE sensor).
5.1 ADC_0_2
To ADC_0 the channel2 to which pin P0.29 POT is
connected(POT: ADC_0_2)
POT Meter has the variable voltage is from 0 to 3.3 volts as per
the standard specification.
5.2 ADC_0_3
To ADC_0 the channel3 to which pin P0.30 temperature sensor
is connected (LM 35:ADC_0_3).
The LM35 which is of plastic package has the variation from -50
to 150 degrees centigrade
6.ON BOARD I/O DEVICES
6.1 BUZZER:
MYARM -7 has the only buzzer on the board it is
connected to the port_0
It was connected to the P0.10 and it is active low.
6.2 LCD:
MY ARM-7 has LCD which is of 2 lined and 16 character liquid crystal
display connected to the Port_1
One set of 8 bit pins from P1.18to P1.25 given to LCD 8 bit data
and P1.16,P1.17, are given to RS, EN respectively.
P1.18 to p1.21 to LCD 4 bit data and P1.16,P1.17, are given to RS, EN
respectively.
While programming the LCD we should not use the LCD data and
control pins.
7. SOFTWARE PROGRAMMIG DEVLOPMENT
As there are many tools are available for the development of
the application program.keilUversion 3 is mostly used
following are the steps for developing the project
Step1: opening Keil icon present on the desktop.
Step2: open the NEW Uversion project which is in the project option in the tool
bar.
Step3: save the project with the required name and click save button
Step:4 select the device from NXP options the window which comes after
saving the project.
Step 5: select the LPC 2148 from the NXP options
Step 6: click yes in the startup code of LPC 2148 window
Step 7: select the new file from the file options to write the C code
Step 8: a new text file will open which we have to write the following code
Step 9: write the code require for ur applications
Step 10:save the text file as .C file
Step 11: Add the saved .C file p by right clicking the Source Group Option1 and u
will get drop down window in that select Add Files to Group
Step 12: select the saved .c file from the window which is showing to add the file
by clicking the add tab.
Step 13: thus .C file is added to the Source Group is clearly seen
Step 14: press the icon that shows Translate Current File after pressing it will
shows errors if present which is compiling the code
Step 15: press the icon that shows Rebuilt Target which proceeds for the Linking
if the .C file.
Step 16:Re-built All Target files for complete process of assembling->Compiling -
>linking-> generating .hex file
Step 17: press the start/stop debug icon for debugging of the code which
written. Following are debugging windows press F11 for step by step debug
Window:1
Window2
Generating hex file from keil
slect the Options For The Target which is left side of Target1 for creating
the hex file using the keil.select the creat the HEX file and click the ok
button and follow the step14,15,16
8. DUMPING .HEX FILE.
In MY ARM-7 development board programmed through serial port using ‘Flash
Magic’. ‘Flash Magic’ is a freeware windows utility used dump the hex file format
onto the MYARM-7 board. Flash Magic can be downloaded from here
http://www.flashmagictool.com/. If your PC does not have a serial port; use a USB
to serial converter to download the hex file using the Flash Magic utility.
Step1: open the Flash magic short cut icon.
Step2: complete window will open for the flash magic
Step 3: select the type of the device ur using to dump the file .select the device
(LPC 2148) and press ok button
STEP4: select the com port which the serial cable connected to the system to
development board
Step6: select the baud rate of 9600 which is the standard and preferred
STEP8: Select the oscillator (MHz) as the crystal that present on the MY ARM7
development board
Step9: click on the browse options for selecting the .hex file used to dump on
the development board
Step9: .Hex file dumping process is clearly seen in the at right side bottom of
the window
Step 10:“Finished” is seen at the bottom after the dumping is completed