0% found this document useful (0 votes)
222 views28 pages

ARM7 LP2148 Tyro V4 User's Guide: Pantech Prolabs India PVT LTD

The document provides an introduction and overview of the ARM7 Tyro development board. It describes the board's hardware features and components. Example programs and connections are also outlined to demonstrate uses of the board. Setup and troubleshooting guidance for using the board with HyperTerminal is also included.

Uploaded by

Ambedkar Rajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
222 views28 pages

ARM7 LP2148 Tyro V4 User's Guide: Pantech Prolabs India PVT LTD

The document provides an introduction and overview of the ARM7 Tyro development board. It describes the board's hardware features and components. Example programs and connections are also outlined to demonstrate uses of the board. Setup and troubleshooting guidance for using the board with HyperTerminal is also included.

Uploaded by

Ambedkar Rajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

ARM7 LP2148

Tyro V4

User’s Guide

PANTECH PROLABS INDIA PVT LTD.


#41, Rajeswari Street, Santhosh Nagar, Kandhanchavadi, Chennai - 600 096
Ph: +91 – 44 - 64524446| +91 – 44 - 64524447 | www.pantechsolutions.net
BRANCHES CHENNAI | COIMBATORE | MADURAI | HYDERABAD | BANGALURU | COCHIN | PUNE
Table Of Contents

CHAPTER 1: Introduction ...................................................................................................................... 4


1.1 WELCOME ............................................................................................................... 4
1.2 ARM7 TYRO DEVELOPMENT BOARD ..................................................................... 5
1.3 ARM7 TYRO HARDWARE ....................................................................................... 6
1.4 SAMPLE DEVICES .................................................................................................... 6
1.5 SAMPLE PROGRAMS ............................................................................................... 6
1.6 ARM7 TYRO BOARD LAYOUT ................................................................................. 7
CHAPTER 2: Hardware Details ............................................................................................................. 8
2.1 CONNECTORS .......................................................................................................... 8
2.2 JUMPER SETTINGS .................................................................................................. 9
2.3 CONFIG SWITCH-1 (SW2) ..................................................................................... 10
2.4 CONFIG SWITCH-2(SW29).................................................................................... 10
2.5 POWER SUPPLY .................................................................................................... 11
2.5.1 POWER SUPPLY TO THE PERIPHERALS .............................................................. 11
CHAPTER 3: Programming in Flash Magic ...................................................................................... 12
3.1 FIVE STEPS PROGRAMMING.................................................................................... 12
3.2 STEP 1 – COMMUNICATIONS .................................................................................. 13
3.3 STEP 2 – ERASE ....................................................................................................... 14
3.4 STEP 3 – HEX FILE .................................................................................................... 14
3.5 STEP 4 – OPTIONS ................................................................................................... 15
3.6 STEP 5 – START ....................................................................................................... 15
3.7 EXECUTION ............................................................................................................. 15
CHAPTER 4: Example Programs and Connections........................................................................ 16
4.1 LED ......................................................................................................................... 16
4.2 LED SWITCH ............................................................................................................ 16
4.3 LCD ......................................................................................................................... 17

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 2


4.4 UART0 .................................................................................................................... 17
4.5 UART1 .................................................................................................................... 18
4.6 ADC_LCD ................................................................................................................ 18
4.7 ADC_LCD and DAC .................................................................................................. 18
4.8 INTERNAL RTC LCD .................................................................................................. 19
4.9 INTERRUPT_LED...................................................................................................... 19
4.10 KEYPAD_LCD ........................................................................................................... 20
4.11 PWM-LED ............................................................................................................... 20
4.12 BUZZER ................................................................................................................... 20
4.13 STEPPER MOTOR..................................................................................................... 21
4.14 I2C EEPROM............................................................................................................ 21
4.15 ZIGBEE .................................................................................................................... 22
4.16 INTERRUPT COMPARISION OF FPGA AND ARM7 ..................................................... 23
4.17 MAILBOX ................................................................................................................ 24
CHAPTER 5: Setting up HyperTerminal ........................................................................................... 25
CHAPTER 6: Possible Errors and Solutions .................................................................................... 27
6.1 HOW TO USE HYPERTERMINAL WITH UART0 .......................................................... 27
6.2 PROBLEM CAUSED BY FT232 ................................................................................... 27
6.3 SHORTCUTS ............................................................................................................ 27

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 3


CHAPTER 1: Introduction

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.

The ARM7 Tyro Board Kit comes with the following:


1. ARM7 Tyro Development Board
2. Sample devices (LPC2148)
3. CD-ROM, which contains:
a) Sample programs
b) ARM7 Tyro Development Board User’s Guide
4. 5V Adapter
5. Straight Female to Female serial cable
6. One Hook wire
7. USB Cable

Note: If you are missing any part of the kit, please contact our support executive

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 4


ARM7 TYRO USER GUIDE v1

1.2 ARM7 TYRO DEVELOPMENT BOARD

The ARM7 TYRO development board has the following hardware features:

 8 Nos. Point LEDs (Logic Output)


 8 Nos. Digital Input(SLIDE Switch)
 2 Nos. Analog Input (Potentiometer)
 2x16 Char LCD Interface
 Temperature Sensor(LM35)
 Internal RTC with Battery-Backup
 1 No. UART(RS232)
 1 No. USB UART
 USB 2.0 device (Virtual Port)
 DAC Output
 Interrupts Study, Reset Button
 4x4 Matrix Keyboard
 40-Pin Expansion Connector
 JTAG (Program/Debug) |ISP Programming
 2 Nos. 20pin- I/O Expansion Connector
 PWM Terminations
 Stepper Interface
 Optional Onboard ZIGBEE Interface
 Onboard Buzzer
 Optional SPARTAN3AN FPGA Stick Interface
 SPI/I2C Expansion Connector
 SD card Interface

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 5


ARM7 TYRO USER GUIDE v1

1.3 ARM7 TYRO HARDWARE

1.4 SAMPLE DEVICES


One FLASH device (LPC2148) is included on the board itself.

1.5 SAMPLE PROGRAMS


The ARM7 TYRO Kit includes a CD-ROM with sample programs. These programs may be used with the
included sample devices. Demo source code with compiled Hex file is provided.

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 6


ARM7 TYRO USER GUIDE v1

1.6 ARM7 TYRO BOARD LAYOUT

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 7


CHAPTER 2: Hardware Details

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-16P0.0 to P0.15, Pin25-32 P0.16 to P0.23, and Pin33-40 P1.16 to
P1.23. Pin17-18RST, Pin19-20VDD (5V), Pin21-22GND, 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

EXTENSION CONN HEADER 10X2

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 8


ARM7 TYRO USER GUIDE v1

2.2 JUMPER SETTINGS

JUMPER DESCRIPTION

JP2 JTAG ENABLE : Place a Jumper towards EN

JP3 LED ENABLE: Place a Jumper

JP5 3232EN: Just Place a Jumper to Enable Communication via DB9

ADC Selection: Place a jumper for the required channel; this will connect LPC2148
J6
pins with POT or LM35.

JP11 RTS and DTR pin Termination, Jumper not needed

BUZZER In order to use Buzzer, Place Two jumpers on VCC and EN

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 9


ARM7 TYRO USER GUIDE v1

2.3 CONFIG SWITCH-1 (SW2)

DIP SWITCH PIN PIN DESCRIPTION

5V 1 Power Supply to the FT232 Chip

TX, RX 2,3 Connects FT232 with UART0 of LPC2148

TX, RX 4,5 Connects FT232 with UART1 of LPC2148

RST 6 ISP Pin: Connects FT232-DTR with RST of LPC2148

.14 7 ISP Pin: Connects FT232-RTS with P0.14 of LPC2148

3V3 8 Power Supply for LPC2148

2.4 CONFIG SWITCH-2 (SW29)

DIP SWITCH PIN PIN DESCRIPTION

5V 1-STEP Power Supply for Stepper Motor

5V 2-LCD Power Supply for LCD

RS 3-P1.16 Connects P1.16 with RS pin of LCD

ZBE+ Power Supply for ZIGBEE

ZIGBEE U0TX,
Connects ZIGBEE with UART0
(Pins 4-8) U0RX
U1TX,
Connects ZIGBEE with UART1
U1RX

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 10


ARM7 TYRO USER GUIDE v1

2.5 POWER SUPPLY

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

EXT USB EXT Supply Turned ON


POWER SWITCH
EXT USB USB Supply Turned ON

2.5.1 POWER SUPPLY TO THE PERIPHERALS

PERIPHERAL SWITCH PIN DESCRIPTION

LPC2148 SW2 (CONFIG-I) 8 Turn ON the DIP switch pin

FT232 SW2(CONFIG-I) 1 Turn ON the DIP switch pin

MAX3232 JP5 - Place a Jumper on JP5

LCD SW29(CONFIG-II) 2 Turn ON the DIP switch pin

STEPPER SW29(CONFIG-II) 1 Turn ON the DIP switch pin

ZIGBEE SW29(CONFIG-II) 4 Turn ON the DIP switch pin

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 11


CHAPTER 3: Programming in Flash Magic

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”

TURN ON DIP SWITCH SW2 PINS 1, 2,3,6,7 AND 8.


HARDWARE CONNECTION
SUPPLY POWER TO THE BOARD USING SW1.

3.1 FIVE STEPS PROGRAMMING

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 12


ARM7 TYRO USER GUIDE v1

3.2 STEP 1 – COMMUNICATIONS:

1. Click Select…,
2. Expand ARM 7 from device database
3. Scroll down and Select your IC.
4. Click OK.

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 13


ARM7 TYRO USER GUIDE v1

3.3 STEP 2 – ERASE


Put a Check Mark on Erase blocks used by Hex File checkbox

3.4 STEP 3 – HEX FILE


1. Click Browse…

2. Navigate to the project folder; Select the hex file to be loaded and Click Open.

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 14


ARM7 TYRO USER GUIDE v1

3.5 STEP 4 – OPTIONS


1. Put a check mark on each options that is required for the project

Generally Verify after programming is required to cross check the burned hex file with the loaded
hex file and the remaining options left unchecked.

3.6 STEP 5 – START

1. Click Start. This will start programming the chip

2. See the Status bar for current status


Programming:

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.

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 15


CHAPTER 4: Example Programs and Connections

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

HARDWARE PIN OUT CONNECTIONS OUTPUT

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.2 LED SWITCH

HARDWARE PIN OUT CONNECTIONS OUTPUT

LED1 P1.16 SW5 P0.16


LED2 P1.17 SW6 P0.17
LED3 P1.18 SW7 P0.18
LED4 P1.19 SW8 P0.19 Turn ON and OFF the switches SW5-12,
Place a Jumper @JP3 The Corresponding LED will be turned ON/OFF.
LED5 P1.20 SW9 P0.20
I.e. LED displays the Switch Status.
LED6 P1.21 SW10 P0.21
LED7 P1.22 SW11 P0.22
LED8 P1.23 SW12 P0.23

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 16


ARM7 TYRO USER GUIDE v1

4.3 LCD

HARDWARE PIN OUT CONNECTIONS OUTPUT

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

HARDWARE PIN OUT CONNECTIONS OUTPUT

Turn ON 1-5V, 2-TX and 3-RX (UART0) pins of


U0TXD P0.0 CONFIG switch SW2.
A Welcome string will be
displayed and then
Open HyperTerminal and Configure USB-UART
Type a character, the same
COM Port Number,
character will be returned
9600, 8, N, 1, N.
from Board.
U0RXD P0.1
Press RESET Once (If Necessary)

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 17


ARM7 TYRO USER GUIDE v1

4.5 UART1

HARDWARE PIN OUT CONNECTIONS OUTPUT

Connect a Straight Female to Female Serial ca-


U1TXD P0.8 ble between P1 (DB9) and the PC.
A Welcome string will be
Place a jumper @JP5 3232EN
displayed and then
Type a character, the same
Open HyperTerminal and Configure DB9 COM
character will be returned
Port Number,
from Board.
9600, 8, N, 1, N.
U1RXD P0.9
Press RESET Once (If Necessary)

4.6 ADC_LCD

HARDWARE PIN OUT CONNECTIONS OUTPUT

LM35 P0.30 Digital Values of all the Three channels


Place all the Jumpers @J6 (ADC)
will be displayed in LCD
POT1 P0.29 Turn ON DIP Switch (SW29) Pins
Adjust the POT1 and POT2 or Apply
2-(5V-LCD) and 3-RS.
temperature on LM35 to see the
POT2 P0.28 changes

4.7 ADC_LCD and DAC

HARDWARE PIN OUT CONNECTIONS OUTPUT

Measure the voltage between P0.25 and


POT2 P0.28 Place all the Jumpers @J6 (ADC) GND (JP4-DAC)

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

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 18


ARM7 TYRO USER GUIDE v1

4.8 INTERNAL RTC LCD

HARDWARE PIN OUT CONNECTIONS OUTPUT

It’s an internal Module, Time 00:00:00 will be dis-


Turn ON DIP Switch (SW29) Pin2 (5V-LCD)
So there no Hardware played in LCD and starts in-
and 3-RS.
pin-outs crementing

4.9 INTERRUPT_LED

HARDWARE PIN OUT CONNECTIONS OUTPUT

Press SW4 (INT2) and the


INT2 P0.15 Place a Jumper @JP3 (LED) interrupt count is dis-
played in LED

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 19


ARM7 TYRO USER GUIDE v1

4.10 KEYPAD_LCD

HARDWARE PIN OUT CONNECTION OUTPUT

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

Place all the jumpers (VCC and EN) of BUZZER


BUZZER P0.15 Buzzer sounds at an interval
SECTION

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 20


ARM7 TYRO USER GUIDE v1

4.13 STEPPER MOTOR

HARDWARE PIN OUT CONNECTIONS OUTPUT

PHASE.1 P0.4 The Stepper motor will ro-


tate in both clockwise and
PHASE.2 P0.5 Connect a Stepper Motor @J10 (6 wire) counter clockwise.

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

4.14 I2C EEPROM

HARDWARE PIN
CONNECTIONS OUTPUT
OUT

CLK (6) P0.2


The EEPROM has a fixed connection.
DATA (5) P0.3 No need for manual connections SW7 SW6 SW5

SW5 P0.16 Turn ON 5V, TX and RX (UART0) pins


of CONFIG switch SW2. Writes EEPROM
SW6 P0.17
LED1 Blinks,
Open HyperTerminal and Configure 1 1 0
SW7 P0.18 Successful message will be
USB-UART COM Port Number, displayed in HyperTerminal
9600, 8, N, 1, N. Reads EEPROM
LED1 P0.16
LED2 Blinks,
Place a Jumper @JP3 (LED) 1 0 1
Successful message will be
LED2 P0.17
displayed in HyperTerminal
Make all the switches SW5-7 HIGH Erases EEPROM
LED3 P0.18
LED3 Blinks,
LED4 is for Error indication 0 1 1
Successful message will be
LED4 P0.19
displayed in HyperTerminal

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 21


ARM7 TYRO USER GUIDE v1

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

U1RXD P0.9 The code should be modified to use UART0

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

U1RXD P0.9 The code should be modified to use UART0

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 22


ARM7 TYRO USER GUIDE v1

4.16 INTERRUPT COMPARISION OF FPGA AND ARM7


Method:

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.7INT2/P0.15)
4. The other one is given to the FPGA as input (P0.196 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

PWM ARM Turn OFF the switches SW6 and SW5


ie Make it as 00
PWM2 P0.7 Connect a Hook wire between P0.1
and P0.15 (INTR) Press RESET on FPGA
PWM3 P0.1 Press RESET on ARM7
Connect a Hook wire between P0.7
SW5 P0.16 and Pin-96 of J13 Both ARM7 and FPGA will display 200 (0xc8) in
LEDs
SW6 P0.17 Place a Jumper @JP3 (LED)
ARM7 FPGA Make the switch combination as 01, 10 and 11

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

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 23


ARM7 TYRO USER GUIDE v1

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.

The sender task can be discarded when it is no longer needed.

HARDWARE PIN OUT CONNECTIONS OUTPUT

Connect a Straight Female to Female Serial ca-


ble between P1 (DB9) and the PC.
U1TXD P0.8
Place a jumper @JP5 3232EN
The mailbox data that are
Open HyperTerminal and Configure DB9 COM
retrieved using Receive task
Port Number,
is displayed in HyperTermin-
9600, 8, N, 1, N.
al
Alternatively DIP switch SW2 pins 4 (TX) and 5
U1RXD P0.9
(RX) of UART1 can be turned on along with al-
ready turned ON pins to see the data via USB-
UART

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 24


CHAPTER 5: Setting up HyperTerminal

There is no HyperTerminal in Windows 7 and the later versions of windows,

So you can use Flash Magic Terminal Program

1. Click Tools Terminal

2. Select your COM port number and Baud rate

Check the box “Use a delay character” and Select CR in Newlines (just for new line character)

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 25


ARM7 TYRO USER GUIDE v1

3. The output will display the received messages


The input textbox used to transmit characters. Just type something if you need to transmit data’s

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 26


CHAPTER 6: Possible Errors and Solutions

6.1 HOW TO USE HYPERTERMINAL WITH UART0

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.2 PROBLEM CAUSED BY FT232

1. This error may be due to incorrect driver installed.


2. Windows 7, 8 and 10 will automatically install the latest driver; this may cause error if it is
not properly updated. Turn OFF automatic driver installation in Windows. Uninstall all the
FT232 drivers and install FT232 v2.8 driver.

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.

ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 27


ARM7 Tyro Board V4 rev2 www.pantechsolutions.net Page 28

You might also like