ARM Kit Manual

46
Embin Technologies Pvt. Ltd. ETM150 User’s manual 1 User’s Manual for ETM150 32bit ARM based Prototyping Board Embin Technologies Pvt. Ltd. First Floor, Trimurti Towers, Plot No.34, Gorai-I, Borivali (W), Mumbai – 400091 Tel: 91-22-28674971 Fax: 91-22-28689486 E-Mail: [email protected] URL: http://www.embin.com/products We recommend to read the complete Manual to understand the Switch & Jumper settings, to avoid any damage to the Board / Kit.

Transcript of ARM Kit Manual

Page 1: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

1

User’s Manual for

ETM150

32bit ARM based Prototyping Board

Embin Technologies Pvt. Ltd.

First Floor, Trimurti Towers, Plot No.34,

Gorai-I, Borivali (W), Mumbai – 400091

Tel: 91-22-28674971 Fax: 91-22-28689486

E-Mail: [email protected] URL: http://www.embin.com/products

We recommend to read the complete Manual to understand the

Switch & Jumper settings, to avoid any damage to the Board / Kit.

Page 2: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

2

Contents

1. Introduction ……………………………………………………………………………..…. 4

2 ETM150 Main Board ………………………………………………………….6

2.1 Serial EEPROM ………………………………………………………….………………..7

2.2 Real Time Clock …………………………………….……………………………….….9

2.3Two RS-232 Serial Interfaces ………………………………………..9

2.4 Analog to Digital Converter …………………………………………………….11

2.5 Matrix Keyboard …………………………………………………………….13

2.6 Two 32bit Timers…………………………………………………………….14

2.7 LED Section …………………………………………………………………………………….15

2.8 CAN Interface…………………………………………………………………….15

2.9 SPI interface……………………………………………………………………..17

2.10 Buzzer …………………………………………………………………………….18

2.11 JTAG interface ……………………………………………………………… 19

2.12 Port 1 input/output connector(J19)……………………………… 20

2.13 External Interrupt Jumper (J20)…………………………………… 21.

2.14 PWM Connector (J4)……………………………………………………….21

2.15 Display Board Connector (J5)………………………………………….22

2.16 Power Supply Section………………………………………………………22

3 ETM150 Display board………………………………………………………….23

3.1 Liquid crystal display…………………………………………………………24

3.2 Seven Segment Display……………………………………………………26

3.3 All jumper settings……………………………………………………………27

4. Board Description………………………………………………………………28

Page 3: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

3

4.1 Schematic of LPC2294 …………………………………………………….…………29

4.2 Pin Description of LPC2294………………………………………………30

5. CD – Contents …………………………………………………………………………….......35

6. Run your Programs …………………………………………………………………..………35

7. Applications …………………………………………………………………………… ……..……37

7.1 LED Display ……………………………………………………………………………………..37

7.2 Seven Segment Display ……………………………………………………………. …38

7.3 Matrix Keyboard ………………………………………………………………………………38

7.4 ADC …………………………………………………………………………………………………….38

7.5 LCD Display …………………………………………………………………………………….39

7.6 RTC ……………………………………………………………………………………………………39

7.7 EEPROM …………………………………………………………………………………………39

7.8 SPI interface …………………………………………………………………………………39

7.9 Free RTOS ported Code Example……………………………………………40

7.10 uC/OS – II Real-Time Kernel………………………………………..41

Page 4: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

4

1. Introduction

Embin’s ETM150 development 32-bit LPC2294 Microcontroller based

evaluation module. ETM150 is a general-purpose development board

for ARM Controller. ETM150 can be used extensively to test and

validate programs. At the heart of the development board is Philips

LPC2294, this provides advance features like ISP and IAP. The micro

controller has 256KB internal flash memory and 64KB on-chip RAM.

The development board comes with RS-232 interface to allow user to

program the micro controller directly from PC.

ETM150 Includes:

ETM150 Package contents are:

•ETM150 Development Board.

•NULL MODEM Serial Cable.

•Power Adaptor.

•System CD-ROM.

Power Supply Requirements:

ETM150 Development Board is provided with +12 Volts O/P adaptor

with 230V AC I/P. The board has a +5 Volts Regulator and 3.3V and

1.8V regulators on-board, which provides supply to the entire device

on the board.

Configuring the system:

Connect the Serial cable provided to the DB9 connector on ETM150

board & COM1/COM2 of the Computer. Plug in the Power adaptor in

230VAC mains socket & connect the +12V pin of power adaptor to the

Page 5: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

5

ETM150 board the board is now ready to be switched on.

ETM150 Main Board: contains the devices which can be interfaced

with the ARM microcontroller, along with the supporting software

routines which can help designer to rapidly design and prototype their

designs based on ARM Core.

It provides a complete development platform with Different modules

interface that accelerates the task of designers to run application

software on target ARM Controller hardware, thus providing a platform

to benchmark their system, save time & expense of building their own

application test board and enabling them to get their designs to

market quickly.

ETM150 is a unique hardware and software combination providing

designers, the tools to develop most advanced ARM series

Microcontroller applications. The ETM150 hardware reference and

software application programs also simplify ARM based hardware and

software development.

Page 6: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

6

2. ETM150 Main Board:

The ETM150 board is available with 144 Pins LPC2294 ARM Controller.

Below Sections give the Board layout & Board Jumper Details.

ETM150 Main board Layout

Page 7: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

7

Peripherals:

• Serial EEPROM. (I2C Interface).

• On-chip Real Time Clock

• 2 RS232 Serial Interfaces

• On-chip 10 Bit 8 Channel Analog to Digital Converter.

• 4 X 4 Matrix keyboard.

• Two 32-bit Timers

• LED Display

• Two CAN (Control Area Network) Interfaces

• SPI Interface

• PWM with Buzzer as Output

• JTAG Interface.

• 4 GPIO (32-bit) General purpose Ports

All the peripherals of ETM150 are implemented as independent

module. Only the required ports of the Microcontroller are brought out

on the connector for the ease of developer so that any port can be

connected to any module with a very small footprint.

2.1 Serial EEPROM. (I2C Interface): The AT24C512 provides

524,288 bits of serial electrically erasable and programmable read only

memory (EEPROM) organized as 65,536 words of 8 bits each. In

ETM150 AT24C512 is connected to serially to Microcontroller at P0.2

and P0.3 (I2C bus for LPC2294). This peripheral can be used in many

industrial and commercial applications where low power and low

voltage operation is essential. LPC2294 has an on-chip I2C interface

that is compliant with the standard I2C Bus standard. It is easy to

configure as Master, Slave or Master/Slave. Bidirectional Data transfer

between master and slave. Programmable clocks allow multiple clock

rates. Arbitration between simultaneously masters without corruption

of serial data on the bus. Serial clock synchronization allows devices

Page 8: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

8

with different bit rates to communicate via one serial bus. Serial Clock

mechanism can be used as a handshake mechanism to suspend and

resume serial transfer. The I2C bus can be used for test and diagnostic

purposes.

Features of AT24C512:

1. Low-voltage and Standard-voltage Operation

– 1.8 (VCC = 1.8V to 3.6V)

2. Internally Organized 65,536 x 8

3. 2-wire Serial Interface

4. Schmitt Triggers, Filtered Inputs for Noise Suppression

5. Bi-directional Data Transfer Protocol

6. 1 MHz (5V), 400 kHz (2.7V) and 100 kHz (1.8V) Compatibility

7. Write Protect Pin for Hardware and Software Data Protection

8. 128-byte Page Write Mode (Partial Page Writes Allowed)

9. Self-timed Write Cycle (5 ms Max)

10. High Reliability

– Endurance: 100,000 Write Cycles

– Data Retention: 40 Years

Page 9: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

9

Sr.No Pin Name Description

1 A0 Address input

2 A1 Address input

3 NC No connect

4 GND Ground pin

5 SDA Serial data

6 SCL Serial clock input

7 WP Write Protect

8 VCC 5volts supply pin

9 P0.2/SCL I2C clock input /output (LPC2294 PORT PIN)

10 P0.3/SDA I2C data input/output (LPC2294 PORT PIN)

2.2 Real Time Clock: In ETM150, the RTC is On-Chip. Address and

data are transferred serially via 2-wire, bi-directional bus. The

clock/calendar provides seconds, minutes, hours, day, date, month,

and year information. The end of the month date is automatically

adjusted for months with fewer than 31 days, including corrections for

leap year. The clock operates in either the 24-hour or 12-hour format

with AM/PM indicator. And this data can be shown on the LCD by using

the subroutine provided in the folder RTC/RTC.hex provided with

ETM150.

2.3 Two RS-232 Serial Interfaces: RS-232 Interface standard is

provided for serial communication to and from the computer/other

device .2 DB9 Connectors are interfaced with a MAX3232 Device and

microcontroller.This interface could be 5 wire as well as 3 wire serial

communication .In ETM150 a 3 wire serial communication is used .

Embedded Systems
Note
Page 10: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

10

Connector name Function

P1 UART0

P2 UART1

RIN1,RIN2 Receive input

DOUT1,DOUT2 Transmit data o/p

Page 11: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

11

DB9 Connector:

Sr.No Pin Name Description

1 NC No connection

2 RxD Receive Data pin

3 TxD Transmit Data Pin

4 NC No connection

5 GND Ground pin

6 NC No connection

7 RTS Ready to send

8 CTS Clear to send

9 NC No connection

2.4 Analog to Digital Converter: The LPC2294 has 10–bit

successive approximation analog to digital converter. It has input

multiplexing among 8 pins. It also has a power-down mode feature. It

incorporates a Burst conversion mode for single or multiple inputs.

POT R3 for internal ADC input variation

Page 12: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

12

Sr.No Pin Name Description

1 P0.27/AIN0 A/D converter input 0

2 P0.28/AIN1 A/D converter input 1

Analog Input Connector (J18): J18 Connector on the main board

can be used to provide external analog input.

POT R43 for external ADC input variation

Page 13: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

13

Pin Number Pin name Description

1-P2.30 D30/AIN4 A/D converter input 4

2-P2.31 D31/AIN5 A/D converter input 5

3-P0.29 MAT0.3/CAP0.3/AIN2 A/D converter input 2

4-P0.30 EINT3/CAP0.0/AIN3 A/D converter input 3

5-P3.28 AIN7/BLS3 A/D converter input 7

6-P3.29 AIN6/BLS2 A/D converter input 6

2.5: Matrix Keyboard: Matrix keyboard is interfaced with ETM150

using port pins of LPC2294 P3.0 – P3.7. 16 simple SPST switches are

connected in 4 X 4 matrix format for the use of maximum keys using

minimum port pins. When a key is pressed the respective key number

is displayed on the hyper terminal as well as the voltage of that

particular port pins goes low.

Page 14: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

14

Port pins P3.0 –P3.7 are external memory address lines and in this

application are used as general purpose port pins.

2.6: 2 32 bit Timers: LPC2294 Pulse Width Modulator is based on

standard Timer 0/1 Application can choose among PWM and match

functions available. The PWM is based on the standard Timer block and

inherits all of its features, although only the PWM function is pinned

out on the LPC2294.

The Timer is designed to count cycles of the peripheral clock (pclk)

and optionally generate interrupts or perform other actions when

specified timer values occur, based on seven match registers. It also

includes four capture inputs to save the timer value when an input

signal transitions, and optionally generate an interrupt when those

events occur.

The PWM function is in addition to these features, and is based on

match register events. The ability to separately control rising and

falling edge locations allows the PWM to be used for more applications.

Two match registers can be used to provide a single edge controlled

PWM output. One match register (PWMMR0) controls the PWM cycle

rate, by resetting the count upon match. The other match register

controls the PWM edge position.

To understand the exact working of the timer a TIMER subroutine is

provided in a folder TIMER/timer.receive.hex in the sample

program a timer is set to 2sec after which a interrupt occurs and a

Interrupt service routine is executed showing the output on the hyper

terminal (baud rate -9600) across UART 0.

Page 15: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

15

2.7: LED SECTION:

J2: LED interface jumper

Pin No. Pin name Description

P0.18 P0.18/CAP1.3/MISO1/MAT1.3 Used as a general purpose port pin

P0.19 P0.19/CAP1.2/M0Si1/MAT1.2 Used as a general purpose port pin

P0.20 P0.20/SSEL1/EINT3/MAT1.3 Used as a general purpose port pin

P0.21 P0.21/PWM5/RD3/CAP1.3 Used as a general purpose port pin

P0.22 P0.22/TD3/CAP0.0/MAT0.0 Used as a general purpose port pin

P0.23 RD2 -CAN2 Receiver Input Used as a general purpose port pin

P0.24 TD2-CAN2Transmitter Output Used as a general purpose port pin

P0.25 RD1 -CAN 1 Receiver Input Used as a general purpose port pin

2.8: CAN Interface: The Control Area Network (CAN) is a serial

communication protocol, which efficiently supports distributed real

time control with a very high level of security. Its domain of

application ranges from high speed networks to low-cost multiplex

wiring.

The LPC2294 CAN Block is intended to support multiple CAN buses

simultaneously, allowing the device to be used as a gateway, switch or

router among a number of CAN buses in industrial or automotive

applications.

Page 16: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

16

Features:

• 2 CAN Controllers and Buses

• Data rate of 1Mbits/sec on each Bus.

• 32-bit Register and RAM Access

• Global Acceptance Filter recognizes 11 and 29 bit Rx identifiers

for all CAN Buses.

• Acceptance Filter can provide Full CAN –style automatic

reception for selected standard identifiers.

CAN Interface Connector (J6):

Pin Number Pin name Description

1 TD1 CAN 1 Transmitter output

2-P0.25 RD1 CAN 1 Receiver input

3-P0.24 TD2 CAN 2 Transmitter output

4-P0.23 RD2 CAN 2 Receiver input

5 VCC 3.3 Volts supply

6 VCC 3.3 Volts supply

7 GND Connect to ground pin.

8 GND Connect to ground pin

9 VCC 5 Volts supply

10 VCC 5 Volts supply

Page 17: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

17

2.9: SPI Interface: On-chip complete and independent SPI

Controllers. Compliant with SPI Specification. SPI interface provides

synchronous, serial and full duplex communication. The Maximum

data-bit rate is one-eight of the input clock rate. Only a single master

and a single slave can communicate on an interface during a given

transfer. During a data transfer, the master always sends a byte of

data to the slave, and the slave always sends a byte of data to the

master.

SPI Interface Connector (J9):

Pin No. Pin name Description

1-P0.4 SCK0/CAP0.1 Serial clock for SPI0,clock output from master or

input to slave

2P0.5 MISO/MAT0.1 Master input slave output SPI0,Data input for SPI

master or data output for SPI slave

3-P0.6 MOSI0/CAP0.2 Master output slave in SPI0,Data output for SPI

master or data input for SPI slave

4-P0.7 SSEL0/PWM2/

EINT2

Slave Select for SPI0,Selects the SPI interface as a

slave

5 VCC 3.3 Volts

6 VCC 3.3Volts

7 GND Connect to ground

8 GND Connect to ground

9 VCC 5 Volts supply

10 VCC 5 Volts supply

Page 18: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

18

2.10: Jumper for Buzzer:

JUMPER J3:

Pin No Description

1 LPc2294Port pin - P0.21/PWM5/RD3/CAP1.3

PWM5-Pulse width modulator o/p

RD3-CAN3 Receiver input

CAP1.3- Capture input from TIMER1, channel 3.

2 Input to transistor BC547(Q11)

Page 19: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

19

2.11: JTAG Connector (J13):

Pin Number Pin name Description

1,2 3.3 volts Supply 3.3 volts

3- P1.31 TRST Test reset for JTAG interface

4- P1.28 TDI Test data in for JTAG Interface

5-P1.30 TMS Test mode select for JTAG interface

6- P1.29 TCK Test clock for JTAG Interface

7- P1.26 RTCK Returned test clock output extra signal

to JTAG Port.

8- P1.27 TDO Test data Out for JTAG interface

9 RESET Controller reset pin no.135

10 GND Connect to ground

Page 20: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

20

2.12: Port 1 input/output connector (J19):

Pin Number Pin name Description

1- P1.16 TRACEPKT0 Trace packet bit 0,standard I/O port

with internal pull up

2-P1.17 TRACEPKT1 Trace packet bit 1,standard I/O port

with internal pull up

3- P1.18 TRACEPKT2 Trace packet bit 2,standard I/O port

with internal pull up

4- P1.19 TRACEPKT3 Trace packet bit 3,standard I/O port

with internal pull up

5- P1.20 TRACESYNC Trace synchronization, standard I/O

port with internal pull up.

6- P1.21 PIPESTAT0 Pipeline status bit 0, standard I/O port

with internal pull up.

7- P1.22 PIPESTAT1 Pipeline status bit 1 standard I/O port

with internal pull up.

8- P1.23 PIPESTAT2 Pipeline status bit 2 standard I/O port

with internal pull up.

9 VCC 3.3 volts supply

10 GND Connected to ground pin

Page 21: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

21

2.13: External Interrupt Jumper (J20):

Pin Number Pin name Description

1- P0.14 DCD1/EINT1 External interrupt 1 input

2- P0.15 RI1/EINT2 External interrupt 2 input

2.14: PWM Connector (J4):

Pin Number Pin name Description

1-P0.0 TxD0/PWM1 Pulse width modulator output 1

2-P0.7 SELO/EINT2 Pulse width modulator output 2

3-P0.1 RxD0/EINT0 Pulse width modulator output 3

4-P0.8 TxD1/PWM4 Pulse width modulator output 4

5-P0.21 CAP1.3/RD3/PWM5 Pulse width modulator output 5

6-P0.9 RxD1/PWM6/EINT3 Pulse width modulator output 6

Page 22: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

22

2.15: Display Board Connector (J5):

Port pins from P2.0 – P2.17- are external memory data lines used

as general purpose port pins.

2.16 Power Supply Section:

J10: Power jack 12V/500mA connector

J17: +1.8V power supply isolation from main board jumper.

Page 23: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

23

Pin Number Description

1-2

output from the regulatorLM317

1.8 volts adjusted using the pot

J12: +3.3V power supply isolation from main board jumper.

Pin Number Description

1-2

output from the regulatorLM317

3.3 volts adjusted using the pot.

J11: +5V power supply isolation from main board jumper.

Pin Number Description

1-2

5Voutput from the regulatorLM7805

Page 24: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

24

3. ETM150 Display board Layout

J1: Jumper for 7-segment display supply connector (3.3 or +5V).

J15: Not to be connected

3.1 Liquid crystal display: In ETM150 LCD is given in the form of

plug and play. LCD can be connected to the Microcontroller through

the port2. LCD is connected in the 4-bit mode. And the standard

subroutine is given with the ETM150 so that the application can be

easily demonstrated and also for further implementation the

subroutine can be easily embedded for which one has to do very few

changes.

Features of LCD:

1. Easy interface.

2. Built-in Dot Matrix LCD controller with font 5X7 dots.

3. Display data RAM for 80 characters.

4. Character generator ROM, which provides 160, characters

Page 25: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

25

with font 5X7 dots and 32 characters with font 5X10 dots.

5. Both display data and character generator RAM can be read

from the MPU.

6. Internal automatic reset circuit at power ON.

7. Built in oscillator circuit.

Wide range of instruction functions: Clear displays, cursor home,

display ON/OFF, cursor ON/OFF, cursor shift, display shift.

LCD connector (CN1) :

Pin Number Pin name Description

1 Vcc 5 volts supply for the LCD

2 Contrast

3 Contrast

Used for contrast adjustment of the

LCD using a POT.

4 EN Enable pin for LCD

5 R/W READ/WRITE

Page 26: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

26

6 RS Control Operation or Data .

7 Data line Sending 8 bit data

8 Data line Sending 8 bit data

9 Data line Sending 8 bit data

10 Data line Sending 8 bit data

11 Data line For sending 8bit /4bit data

12 Data line For sending 8bit /4bit data

13 Data line For sending 8bit /4bit data

14 Data line For sending 8bit /4bit data

15 Vcc Backlight adjustment

16 Gnd Backlight adjustment

3.2 Seven Segment Display: In ETM150 4 number of common

anode seven segment displays are used. The segments of seven

segments LED is being selected by one of the LPC2294 port while

another 4 port pins of LPC2294 are selecting the display number by

using biasing BC557 transistor. All the common anode displays

consumes very small amount of current. The routine given with the

ETM150 displays the no. Given through the routine and it operates in

interrupt mode, uses Timer0. Whenever the interrupt occurs due to

the timer the data has been refreshed and the display no is selected.

With the help of this provided hardware one can design any application

related to the seven-segment display, like counters, timers etc. The

simple hardware and software make the design very easy for further

implementations.

Page 27: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

27

3.3 All Connector details and jumper settings

J1: Jumper for 7-segment display supply connector (3.3 or +5V).

J2: LED interface jumper

J3: PWM based Buzzer interface jumper

J4: PWM output connector 6pin

J5: Display daughter board connector.

J6: CAN bus interface connector.

J7: PS2 interface interrupt connector.

J9: SPI bus interface connector.

J10: Power jack 12V/500mA connector

J11: +5V power supply isolation from main board jumper.

J12: +3.3V power supply isolation from main board jumper.

J13: J-TAG interface connector

J14: J-TAG interface jumper.

J15: Not to be connected

J17: +1.8V power supply isolation from main board jumper.

J18: ADC interface connector

J19: Port1 input output interface connector.

J20: 2 pin external interrupt connector

Page 28: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

28

4. Board Description

__________________________________________________

• Philips 32-bit, LPC2294 Microcontroller (LQFP-144 pin package, 12

MHz clock frequency)

• On-chip 256 KB FLASH.

• All ports and decoded interface available on board

• 256KB on-chip FLASH with download utility for in-System (ISP)

FLASH. Programming. 64KB of on-chip Ram.

• 512KB external serial I2C-EEPROM.

• Two RS232 serial interface (UART0, UART1)

• Internal Real-Time Clock with internal quartz.

• DPDT Push-Button switch provided to change form Programming to

run mode.

• 2 Lines X 16 Character LCD Display.

• 10-bit Analog to Digital Converter.

• 4 X 4 Matrix keyboard.

• Seven segment display.

• 5V, 3.3V, 1.8V power supply.

Page 29: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

29

4.1: Schematic of LPC2294

Page 30: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

30

4.2: PIN Description:

Page 31: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

31

Page 32: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

32

Page 33: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

33

Page 34: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

34

Page 35: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

35

Page 36: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

36

5. CD contents

_______________________________________________

Flash utility for IC

KEIL compiler evaluation version (16K code size)

Sample code for development.

Manual for easy debugging of the circuit.

Schematic of the board.

6. Guidelines to Run Programs _________________________________________________ The ETM150 main microcontroller is LPC2294, which has on-chip

256kb of flash 16k RAM. The LPC2000 Flash Utility is used to download

the firmware to the target board. To install the WINISP software run

the setup provided in the CD. To Program (download) the hex file in

the flash follow the below simple steps:

Download steps

• Connect the Power adaptor to the board (do not switch on).

• Connect the supplied serial cable to the board and the COM1/COM2

Page 37: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

37

of computer

• Press the programming switch (S1) so that it remains in down

position.

• Power on the Board (switch the mains supply).

• The RED led on board should light up indicating proper power supply.

• The Green led should also light up indicating program mode.

• Run the LPC2000 Flash Utility software.

• Under the parameters heading select the following

CHIP LPC2294

PORT – COM1/COM2 (As per serial cable connected to PC)

OSC (MHz) – 12

• Using the LOAD (Alt-L) button load the appropriate HEX File provided

in CD.

• Click button Read Device ID,

The above dialog box will appear, reset the board using the switch S2

provided next to the blue colored programming switch (S1) and then

click on to the above dialog box. If communication establishes

• Click the ERASE BLOCK (Alt-E) button; select the flash memory block

to be erased. Click the ERASE! Button, the selected block will flash

with Pink color. Once completed the Block Erase Selection window will

close.

• Press the UPLOAD TO FLASH button and wait till the Status Display

shows “Programming Flash Successful” is displayed.

• Now close the LPC2000 Flash Utility software & switch off the mains.

Page 38: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

38

• Press the programming switch (S1) again so it comes in up

position.

• Open the hyper terminal if hello. Hex file is loaded & select the baud

rate to 9600, Set Data Bits=8, parity bit=None, Echo=Off.

• Switch on the Board power, which will run hello. Hex file displaying

the string”Hello World” in the hyper Terminal

7. Applications • ETM150 can be used to Explore the ARM core & as a Test Platform

to download the programs to LPC2294 flash to run the Program, check

the desired output & if required change the program & download it to

the microcontroller flash without removing it from the board.

• The Sample C code provided with the ETM150 board are self

explanatory with comments that help you understand the Serial port,

LCD, Simple keypad, Seven segment display, LED Display, ADC, CAN

Interface, I2C interface, SPI Interface programs.

• The ETM150 board removes the burden of hardware development &

as the entire peripheral pins are accessible hence further development

with the board is easily possible. Here few applications are discussed.

7.1 LED Display: Source code provided for LED Display demonstrates

the use of common cathode LED’s. LED array is interfaced with

ETM150 at P0.18 – P0.25. Download the LED. hex file of LED Display

program. For the use of common cathode LED’s close jumper J2 for

the use of common Cathode.

7.2 Seven Segment Display: Source code for seven-segment display

demonstrates the use of common anode seven segment display to

Page 39: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

39

display the different numeric values. Seven segment display section

uses port pins P2.6 – P2.17 through connecter J5 for interfacing with

LPC2294. Display PCB consists of connecter CN1 that will be connected

to the J5 on the main board. Download the .hex file of the Seven-

segment display program; it will display some numeric value on the

display as coded in source code.

7.3 Matrix Keyboard: Source code for matrix keyboard demonstrates

the use of 4 X 4 matrix keyboard to display the message on hyper

terminal. 16 simple SPST switches are connected in 4 X 4 matrix

format for the use of maximum keys using minimum port pins. Matrix

keyboard is interfaced with ETM150 using port pins of LPC2294 P3.0 –

P3.7 Download the .hex file of matrix keyboard program and open

hyper terminal. Connect the serial cable provided to DB9 connector P2

Configure Hyper terminal for the baud rate of 9600 and after pressing

the key different messages are displayed as coded in source code.

After recognizing the key pressed in main routine passes only the

value of the key.

7.4 Analog to digital converter (ADC): Source code for the ADC

demonstrates the use of ADC to interface the external signal

conditioning with the microcontroller. The ADC has two sources of the

analog signal, we can use the internal 0 –3.3V DC (Variable) as a

source to the ADC or can use external analog signal from external

signal conditioning. For demonstration of working of internal ADC R42,

R43 POT is provided. Connector J18 is equipped will all the ADC

channel that can be used for external Analog signal interface. The

variation of 0 – 3.3V DC will be obtained by varying R42. Download

the .hex file of ADC sample program Connect the serial cable provided

to DB9 connector P2 Configure and open hyper terminal. Configure it

Page 40: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

40

for the baud rate of 9600. Run the program, the value of ADC will be

displayed on the hyper terminal. By using this ADC value and ETM150

a developer can implement his/her own control system.

7.5 LCD Display: Source code for the LCD displays the interfacing of

LCD with microcontroller. Connect display board to main board.

Download the .Hex file using downloads flash utility.

Connect LCD module on the LCD connecter LCD. Download the

program; the message will be displayed on the LCD, which is coded in

sample code.

7.6 EEPROM: Source code for the EEPROM demonstrates how to store

the Data in EEPROM by using I2C protocol. By using this sample code

data can be stored and retrieved from EEPROM. By using this EEPROM

and ETM150 a developer can implement his/her own control system.

7.7 Real Time Clock (RTC): Source code for the RTC demonstrates

the working of RTC. The clock is implemented and the clock is shown

on LCD. Download sample code for RTC for demonstrating how internal

RTC is working. The RTC values are displayed on the LCD as well as on

hyper terminal.

7.8 SPI Interface: Source code for the SPI interface demonstrates

the use of the SPI Communication protocol. By using this SPI

Communication protocol and ETM150 a developer can implement

his/her own control system.

7.9 FREE RTOS ported example: RTOS is a Real time operating

system, which does all the tasks as per priority. Code for this is

Page 41: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

41

provided in CD. Using this code we can port FREE RTOS onto the

ARM processor & develop the related interfacing of the peripheral. The

sample code for FREE RTOS is provided in the folder Free RTOS/Free

RTOS/Samples/Sample3/RTOSThumb. By using this sample code for

FREE RTOS and ETM150 a developer can implement his/her own

control system.

7.10 uC/OS – II Real-Time Kernel Jean Labrosse developed the Real-Time kernel uC/OS – II for use in

embedded Systems such as microcontrollers and DSP’s.

uC/OS – II is a Real Time Kernel that is highly portable, ROMable,

scaleable and preemptive real-time multitasking kernel for

microprocessors and microcontrollers.

UC/OS – II can manage upto 64 tasks and provides the following

services:

Semaphores

Mutual Exclusion Semaphores

Event Flags

Message Mailboxes

Message Queues

Task Management Facility

Fixed Size Memory Block management

Time Management

Timer Management

Key Features of uC/OS – II: uC/OS – II has a very small real-time kernel.

Memory footprint is about 20KB for a fully functional kernel.

Page 42: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

42

Source code is about 5000 lines in ANSI C.

Its source is free but not free for commercial uses.

uC/OS – II incorporates a preemptive based priority scheduling

mechanism.

There are 64 priority levels (maximum 64 tasks)

8 Tasks are reserved for uC/OS – II

Each Task is an infinite loop.

uC/OS – II has deterministic execution times for most uC/OS – II

functions and services. Nested interrupts could go upto 256 levels.

A uCos Port for specific processor architecture requires the definition of

the data types on the processor, assembly language routines for

critical section protection interrupt handling and context switching.

The uC/OS – II is suited to run on a variety of microcontrollers. The

main effort involved in porting uC/OS – II is to determine the

processor programming model. Secondly, the calling conventions of

the compiler and most importantly servicing of the interrupts.

Page 43: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

43

Sample programs:

Program name: ADC

Hex file name: ADC. hex

Output across: hyper terminal (baud rate=9600) + UART1.

Program name : Buzzer

Hex file name: ADC+BUZZER.hex

Output across: the led no.D8 glows when the buzzer (BUZ) rings

Program name : Endianess

Hex file name: Endianess. hex

Output across: hyper terminal

(Baud rate=9600) + UART1.

Program name:

Free RTOS/FreeRTOS/Samples/Sample3/RTOSThumb

Hex file name: RTOSThumb. hex

Output across: hyper terminal (Baud rate=9600) –ADC output+

LCD shows the RTC time + UART1.

Program name: Keypad

Hex file name: keypad. hex

Output across: hyper terminal

(Baud rate=9600) + UART1.

Program name : LCD

Hex file name: lcd.hex

Output across: display “EMBIN TECHONOLOGY “ on LCD

Page 44: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

44

Program name : LED

Hex file name: Led.hex

Output across: Leds will glow IN A Sequential manner.

Program name : RTC

Hex file name: rtc.hex

Output across: Rtc time is displayed on the LCD

Program name : Seven Segment Display

Hex file name: Seven segment .hex

Output across: shows a static display of “1111 “on the seven

Segment

Program name : timer

Hex file name: Timer_final.hex

Output across: hyper terminal (baud rate=9600) + UART0.

Program name :UART 0

Hex file name: UART0.hex

Output across: hyper terminal (baud rate=9600) + UART0.

Program name :UART 1

Hex file name: UART1.hex

Output across: hyper terminal (baud rate=9600) + UART1.

Program name :WATCHDOG

Hex file name: watchdog. hex

Output across: hyper terminal (baud rate=9600) + UART1.

Page 45: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

45

Folder name: uCos Programs

Program name :All modules integrated

Hex file name: serial. hex

Output across: hyper terminal (baud rate=115200) + UART0.

Program name : Mutex Demo

Hex file name: mutex.hex

Output across: hyper terminal

(Baud rate=9600) + UART1.

Program name : RTOS LED Blink Fast

Hex file name: led. hex

Output across: hyper terminal

(Baud rate=9600) + UART1.

Program name :RTOS LED Blink slow

Hex file name: led. hex

Output across: hyper terminal

(Baud rate=9600) + UART1.

Program name:Semaphore

Hex file name: semaphore. hex

Output across: hyper terminal

(Baud rate=9600) + UART1.

Page 46: ARM Kit Manual

Embin Technologies Pvt. Ltd. ETM150 User’s manual

46