ARM7 LP2148 Tyro V4 User's Guide: Pantech Prolabs India PVT LTD
ARM7 LP2148 Tyro V4 User's Guide: Pantech Prolabs India PVT LTD
Tyro V4
User’s Guide
1.1 WELCOME
Thank you for purchasing the ARM7 Tyro Board from Pantech ProLabs India Pvt Ltd. The
ARM7 Tyro is a development board which demonstrates the capabilities of the 64-pin
LPC2148 devices.
The ARM7 Tyro Board can be used as a stand-alone board built with an in-circuit USB pro-
grammer. Sample programs are provided to demonstrate the unique features of the
supported devices.
Note: If you are missing any part of the kit, please contact our support executive
The ARM7 TYRO development board has the following hardware features:
2.1 CONNECTORS
40 pin FRC box type connector: Instead of terminating each port separately, this connector has all the
port pins. So More IO lines can be taken by using single cable.
The Ports are arranged as Pin1-16P0.0 to P0.15, Pin25-32 P0.16 to P0.23, and Pin33-40 P1.16 to
P1.23. Pin17-18RST, Pin19-20VDD (5V), Pin21-22GND, Pin23-24+3V3
Similarly, two no. of 20x2 Connector gives access to P0.0-P0.15 and P1.16-P1.31.
GPIO CONNECTORS
J8
1 2
P0.0 P0.1 1 2
3 4 P0.0 3 4 P0.1
P0.2 5 6 P0.3 P0.2 P0.3
5 6
P0.4 7 8 P0.5 P0.4 7 8 P0.5
P0.6 J9
P0.6 9 10 P0.7 9 10 P0.7
P0.8 P0.8 P0.9
11 12 P0.9 P0.10
11 12
13 14 P0.11
P0.10 13 14 P0.11 +5V P0.12 P0.13
P0.12 15 16
15 16 P0.13 +3.3V +5V P0.14 17 18 P0.15
+3.3V +5V P0.14 17 18 P0.15 19 20
RST 19 20 RST
21 22
HEADER 10X2
23 24
25 26
P0.16 27 28 P0.17 1 2
P0.18 P0.19 P1.16 3 4 P1.17
29 30 P1.18 P1.19
P0.20 31 32 P0.21 5 6
P1.20 7 8 P1.21
P0.22 33 34 P0.23 P1.22 J11
P1.23
P1.16 9 10
35 36 P1.17 P1.24 11 12 P1.25
P1.18 37 38 P1.19 P1.26 13 14 P1.27
P1.20 P1.21 +5V P1.28 15 16 P1.29
39 40 P1.30 P1.31
P1.22 P1.23 17 18
19 20
JUMPER DESCRIPTION
ADC Selection: Place a jumper for the required channel; this will connect LPC2148
J6
pins with POT or LM35.
ZIGBEE U0TX,
Connects ZIGBEE with UART0
(Pins 4-8) U0RX
U1TX,
Connects ZIGBEE with UART1
U1RX
The external power should be DC5V, 1A. The ARM board produces +3.3V using an onboard vol-
tage regulator, which provides supply to the ARMcontroller.
Power supply is controlled through slide switch SW1. The 5V volt from USB or DC JACK is used for
Peripherals directly
The ARM Tyro V4 development board features an automatic RST and ISP pin (P0.14) control.
This control switches the RST and P0.14 pins between ISP and EXE mode automatically. No manual
pressing of RESET and other jumper configurations needed. This Feature is called “One click program-
ming and Execution”
1. Click Select…,
2. Expand ARM 7 from device database
3. Scroll down and Select your IC.
4. Click OK.
2. Navigate to the project folder; Select the hex file to be loaded and Click Open.
Generally Verify after programming is required to cross check the burned hex file with the loaded
hex file and the remaining options left unchecked.
Programming Finished:
3.7 EXECUTION
The ARM7 Tyro V4 from Pantech ProLabs India Pvt Ltd will start executing the burned hex code
immediately after the programming finishes. No need to press RESET.
Prerequisites:
The CONFIG-I (SW2) switch pins 1, 2, 3, 6, 7 and 8 should be turned ON by default.
And remains unchanged for all examples
4.1 LED
LED1 P1.16
LED2 P1.17
LED3 P1.18
LED4 P1.19 LED’s will be Turned ON and
Place a Jumper @JP3
LED5 P1.20 OFF at 500ms interval.
LED6 P1.21
LED7 P1.22
LED8 P1.23
4.3 LCD
CONTROL LINES
RS P1.16
RW GND
EN P1.17
DATA LINES
D0 P1.18 Turn ON DIP Switch (SW29) Pins
The Strings “ARM7 TYRO
2-(5V-LCD) and 3-RS.
D1 P1.19 VER4” and " > LCD DEMO <"
D2 P1.20 will be displayed on LCD.
D3 P1.21
D4 P1.22
D5 P1.23
D6 P1.24
D7 P1.25
4.4 UART0
4.5 UART1
4.6 ADC_LCD
Turn ON DIP Switch (SW29) Pins Adjust the POT2 (R23), the voltage value
DAC P0.25 2-(5V-LCD) and 3-RS. @P0.25 varies from 0 to 3.3V which is
directly proportion to the POT2 value
4.9 INTERRUPT_LED
4.10 KEYPAD_LCD
ROW1 P0.16
ROW2 P0.17
Turn ON DIP Switch (SW29) Pins
ROW3 P0.18 2-(5V-LCD) and 3-RS.
P0.19 Press a Key (4x4 matrix key-
ROW4
pad) and the number will be
COL1 P0.20 Ensure all the Slide switches
displayed LCD
COL2 P0.21 (SW5-SW12) are pointing UP-
P0.22 WARD (HIGH side)
COL3
COL4 P0.23
4.11 PWM-LED
HARDWARE
CONNECTIONS OUTPUT
PIN OUT
Measure the pulse width and duty cycle @P0.0
PWM P0.0 using CRO
Connect a Hook wire between The LED11 will blinks at the rate of PWM
P0.0 and J15 (GPLED)
SW5 P0.16 Change the position of switches SW5 and SW6 to
change the frequency of PWM
SW6 P0.17
I.e. make SW5 and SW6 as 00,01,10 and 11
4.12 BUZZER
HARDWARE PIN
CONNECTIONS OUTPUT
OUT
PHASE.3 P0.6 Turn ON DIP Switch (SW29) Pin1 (5V-STEP). The direction will be
changed after few rotations
PHASE.4 P0.7 in either direction
HARDWARE PIN
CONNECTIONS OUTPUT
OUT
4.15 ZIGBEE
Take Two ARM7 Tyro Boards. Load the Transmitter code in one board and Receiver code in an-
other Board. Press RESET on both boards.
Transmitter
HARDWARE PIN
CONNECTIONS OUTPUT
OUT
U0TXD P0.0 Turn ON DIP Switch SW29 pins ZBE+(4), U1TX(7) and
U1RX(8)
U0RXD P0.1 Transmitter transmits the Slide
Alternatively ZBE+(4), U0TX(5) and U0RX(6) can be
Switch position over Zigbee
U1TXD P0.8 used to communicate via UART0 instead of UART1
Receiver
HARDWARE PIN
CONNECTIONS OUTPUT
OUT
U0TXD P0.0 Turn ON DIP Switch SW29 pins ZBE+(4), U1TX(7) and
U1RX(8)
U0RXD P0.1 Receiver receives the switch posi-
Alternatively ZBE+(4), U0TX(5) and U0RX(6) can be tions from transmitter and dis-
U1TXD P0.8 used to communicate via UART0 instead of UART1 plays its value in LED
1. 200 (Finite) no of PWM pulses are generated with the help of ARM7 LPC2148’s inbuilt PWM.
2. The PWM outputs are taken at the pins P0.7 and P0.1.
3. One of the pulse is connected to the interrupt pin of ARM7 LPC2148 (P0.7INT2/P0.15)
4. The other one is given to the FPGA as input (P0.196 of J13)
5. Both FPGA and ARM7 start counting the pulses.
6. If the ARM7 and FPGA are capable enough to detect the train of pulses applied, then both
will get 200 (Any Finite value) as count.
7. If the count value of FPGA and ARM7 are equal to the no of pulses applied, then the fre-
quency of PWM pulse can be increased to test the performance again.
8. This procedure of increasing the PWM frequency continues until the ARM7 or FPGA misses a
pulse. If a pulse is missed then the count value will be decreased.
9. So the processor that misses a pulse will be declared as low performance device. And the
other will be declared as winner.
Note: You can supply the PWM pulse from external device. But the maximum voltage should
not exceed 3.3V
HARDWARE PIN
CONNECTIONS OUTPUT
OUT
INT2 P0.15 Connect a USB cable between FPGA Press RESET on FPGA
and PC (Just for Power Supply) Press RESET on ARM7
FPGA
Place the Jumpers J1 and J5 of FPGA Check the counts. The ARM will fail to capture
INTR 96 400Khz and above
4.17 MAILBOX
Introduction:
Mailbox is an inter-task communication provides a means of passing messages between tasks for data ex-
change.
For example, assume that a data gathering task that produces data needs to convey the data to a calculation
task that consumes the data. This data gathering task can convey the data by placing it in a mailbox using
the SEND command; the calculation task uses RECEIVE to retrieve the data.
The data producer puts the data in a mailbox and SENDs it. The data consumer task calls RECEIVE to check
whether there is new data in the mailbox; if not, RECEIVE calls Pause to allow other tasks to execute while
the consuming task is waiting for the new data. So the mailbox follows the pull model. I.e. the sender
task can send a message to the mailbox and the receiver doesn't have to get it immediately. He has
to check if there is a message in the mailbox to consume.
Check the box “Use a delay character” and Select CR in Newlines (just for new line character)
Turn OFF CONFIG switch SW2 pins 6-RST and 7(.14) and Press reset. The board will com-
municate with HyperTerminal.
Note: Windows7 and Later will not support HyperTerminal. So use Flash Magic’s Terminal
6.3 SHORTCUTS
1. Use CONFIG switch SW2 pin 1-5V to restart the FT232 instead of removing and reinserting
the USB cable (in case of restarting the FT232).
2. The UART0 and UART1 are tied with FT232 USB-UART and DB9 (P1) respectively. But we
can see the UART0 output in DB9 and the UART1 output in FT232 USB-UART by Turning
ON all the First Five pins of CONFIG-I SW2 switch. This method will interconnect U0RXD
with U1RXD and U0TXD with U1TXD. The Power to the LPC2148 chip can be turned
ON/OFF by CONFIG-I switch SW2 pin 8.
3. Buzzer can be used with any Port pin by removing the jumper @EN and connecting a hook
wire between EN and the port pin.
Note: Only one UART should be used at a time.