Embin Technologies Pvt. Ltd.

ETM150 User’s manual

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: customer.support@embin.com 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.

1

Embin Technologies Pvt. Ltd.

ETM150 User’s manual

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 2

Embin Technologies Pvt. Ltd.

ETM150 User’s manual

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

3

Embin Technologies Pvt. Ltd.

ETM150 User’s manual

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

4

5 . the tools to develop most advanced ARM series Microcontroller applications.Embin Technologies Pvt. along with the supporting software routines which can help designer to rapidly design and prototype their designs based on ARM Core. ETM150 User’s manual ETM150 board the board is now ready to be switched on. thus providing a platform to benchmark their system. Ltd. ETM150 is a unique hardware and software combination providing designers. save time & expense of building their own application test board and enabling them to get their designs to market quickly. The ETM150 hardware reference and software application programs also simplify ARM based hardware and software development. 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. ETM150 Main Board: contains the devices which can be interfaced with the ARM microcontroller.

ETM150 Main board Layout 6 . ETM150 Main Board: The ETM150 board is available with 144 Pins LPC2294 ARM Controller. Ltd. Below Sections give the Board layout & Board Jumper Details.Embin Technologies Pvt. ETM150 User’s manual 2.

Slave or Master/Slave. Serial clock synchronization allows devices 7 .3 (I2C bus for LPC2294). In ETM150 AT24C512 is connected to serially to Microcontroller at P0. Arbitration between simultaneously masters without corruption of serial data on the bus. Programmable clocks allow multiple clock rates. This peripheral can be used in many industrial and commercial applications where low power and low voltage operation is essential.536 words of 8 bits each. 2.1 Serial EEPROM.288 bits of serial electrically erasable and programmable read only memory (EEPROM) organized as 65. LPC2294 has an on-chip I2C interface that is compliant with the standard I2C Bus standard. Ltd. • 4 X 4 Matrix keyboard.2 and P0. It is easy to configure as Master. • On-chip Real Time Clock • 2 RS232 Serial Interfaces • On-chip 10 Bit 8 Channel Analog to Digital Converter. Bidirectional Data transfer between master and slave. • Two 32-bit Timers • LED Display • Two CAN (Control Area Network) Interfaces • SPI Interface • PWM with Buzzer as Output • JTAG Interface. (I2C Interface). ETM150 User’s manual Peripherals: • Serial EEPROM.Embin Technologies Pvt. 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. • 4 GPIO (32-bit) General purpose Ports All the peripherals of ETM150 are implemented as independent module. (I2C Interface): The AT24C512 provides 524.

536 x 8 3. Filtered Inputs for Noise Suppression 5.6V) 2. 400 kHz (2.000 Write Cycles – Data Retention: 40 Years 8 . Bi-directional Data Transfer Protocol 6.8V to 3. Schmitt Triggers. Features of AT24C512: 1. Internally Organized 65. Low-voltage and Standard-voltage Operation – 1.7V) and 100 kHz (1.Embin Technologies Pvt. ETM150 User’s manual with different bit rates to communicate via one serial bus. 1 MHz (5V). 2-wire Serial Interface 4. Write Protect Pin for Hardware and Software Data Protection 8.8 (VCC = 1. 128-byte Page Write Mode (Partial Page Writes Allowed) 9. High Reliability – Endurance: 100. The I2C bus can be used for test and diagnostic purposes. Ltd. Self-timed Write Cycle (5 ms Max) 10.8V) Compatibility 7. Serial Clock mechanism can be used as a handshake mechanism to suspend and resume serial transfer.

date.2 DB9 Connectors are interfaced with a MAX3232 Device and microcontroller. And this data can be shown on the LCD by using the subroutine provided in the folder RTC/RTC. The clock/calendar provides seconds. 2. month.2 Real Time Clock: In ETM150. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator. ETM150 User’s manual Sr.3/SDA Description Address input Address input No connect Ground pin Serial data Serial clock input Write Protect 5volts supply pin I2C clock input /output (LPC2294 PORT PIN) I2C data input/output (LPC2294 PORT PIN) 2.2/SCL P0.No Pin Name 1 2 3 4 5 6 7 8 9 10 A0 A1 NC GND SDA SCL WP VCC P0.Embin Technologies Pvt. Ltd. and year information. including corrections for leap year.This interface could be 5 wire as well as 3 wire serial communication . hours. bi-directional bus. 9 .In ETM150 a 3 wire serial communication is used . day. minutes. the RTC is On-Chip. The end of the month date is automatically adjusted for months with fewer than 31 days.hex provided with ETM150.3 Two RS-232 Serial Interfaces: RS-232 Interface standard is provided for serial communication to and from the computer/other device . Address and data are transferred serially via 2-wire.

RIN2 DOUT1. Ltd.Embin Technologies Pvt.DOUT2 UART0 UART1 Receive input Transmit data o/p 10 . ETM150 User’s manual Connector name Function P1 P2 RIN1.

No Pin Name 1 2 3 4 5 6 7 8 9 NC RxD TxD NC GND NC RTS CTS NC Description No connection Receive Data pin Transmit Data Pin No connection Ground pin No connection Ready to send Clear to send No connection 2. It also has a power-down mode feature. It incorporates a Burst conversion mode for single or multiple inputs. ETM150 User’s manual DB9 Connector: Sr. POT R3 for internal ADC input variation 11 .Embin Technologies Pvt.4 Analog to Digital Converter: The LPC2294 has 10–bit successive approximation analog to digital converter. Ltd. It has input multiplexing among 8 pins.

POT R43 for external ADC input variation 12 . ETM150 User’s manual Sr.Embin Technologies Pvt.27/AIN0 P0. Ltd.No Pin Name 1 2 P0.28/AIN1 Description A/D converter input 0 A/D converter input 1 Analog Input Connector (J18): J18 Connector on the main board can be used to provide external analog input.

28 6-P3.30 2-P2. ETM150 User’s manual Pin Number 1-P2.29 4-P0.31 3-P0.3/AIN2 A/D converter input 2 EINT3/CAP0.Embin Technologies Pvt.30 5-P3.5: Matrix Keyboard: Matrix keyboard is interfaced with ETM150 using port pins of LPC2294 P3.29 Pin name D30/AIN4 D31/AIN5 Description A/D converter input 4 A/D converter input 5 MAT0. 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.3/CAP0. 16 simple SPST switches are connected in 4 X 4 matrix format for the use of maximum keys using minimum port pins.7. 13 .0/AIN3 AIN7/BLS3 AIN6/BLS2 A/D converter input 3 A/D converter input 7 A/D converter input 6 2.0 – P3. Ltd.

The ability to separately control rising and falling edge locations allows the PWM to be used for more applications. although only the PWM function is pinned out on the LPC2294. ETM150 User’s manual Port pins P3. 14 .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.0 –P3.7 are external memory address lines and in this application are used as general purpose port pins. It also includes four capture inputs to save the timer value when an input signal transitions. The other match register controls the PWM edge position.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. and optionally generate an interrupt when those events occur. and is based on match register events. Two match registers can be used to provide a single edge controlled PWM output. To understand the exact working of the timer a TIMER subroutine is provided in a folder TIMER/timer. The PWM is based on the standard Timer block and inherits all of its features. Ltd. The PWM function is in addition to these features. by resetting the count upon match. One match register (PWMMR0) controls the PWM cycle rate.Embin Technologies Pvt. 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. 2.

20 P0.3 P0.18 P0.2/M0Si1/MAT1.3 Used as a general purpose port pin P0.24 P0.3/MISO1/MAT1.21 P0.22 P0.3 P0.0/MAT0.25 Description P0. 15 .Embin Technologies Pvt. Pin name P0. The LPC2294 CAN Block is intended to support multiple CAN buses simultaneously.18/CAP1.0 RD2 -CAN2 Receiver Input Used as a general purpose port pin Used as a general purpose port pin Used as a general purpose port pin Used as a general purpose port pin Used as a general purpose port pin TD2-CAN2Transmitter Output Used as a general purpose port pin RD1 -CAN 1 Receiver Input Used as a general purpose port pin 2.21/PWM5/RD3/CAP1.20/SSEL1/EINT3/MAT1.19/CAP1. allowing the device to be used as a gateway.8: CAN Interface: The Control Area Network (CAN) is a serial communication protocol.2 P0. Its domain of application ranges from high speed networks to low-cost multiplex wiring.19 P0.22/TD3/CAP0. which efficiently supports distributed real time control with a very high level of security.7: LED SECTION: J2: LED interface jumper Pin No. ETM150 User’s manual 2. Ltd. switch or router among a number of CAN buses in industrial or automotive applications.23 P0.

• 32-bit Register and RAM Access • Global Acceptance Filter recognizes 11 and 29 bit Rx identifiers for all CAN Buses.24 4-P0. ETM150 User’s manual Features: • 2 CAN Controllers and Buses • Data rate of 1Mbits/sec on each Bus. • Acceptance Filter can provide Full CAN –style automatic reception for selected standard identifiers.25 3-P0.Embin Technologies Pvt. Ltd.3 Volts supply Connect to ground pin.3 Volts supply 3.23 5 6 7 8 9 10 Pin name TD1 RD1 TD2 RD2 VCC VCC GND GND VCC VCC Description CAN 1 Transmitter output CAN 1 Receiver input CAN 2 Transmitter output CAN 2 Receiver input 3. CAN Interface Connector (J6): Pin Number 1 2-P0. Connect to ground pin 5 Volts supply 5 Volts supply 16 .

3Volts Connect to ground Connect to ground 5 Volts supply 5 Volts supply 17 .9: SPI Interface: On-chip complete and independent SPI Controllers.clock output from input to slave Master input slave output SPI0. 1-P0.Selects the SPI interface as a slave 3.6 4-P0. Only a single master and a single slave can communicate on an interface during a given transfer.2 Master output slave in SPI0.Data input for SPI master or data output for SPI slave output for SPI master or MOSI0/CAP0.7 5 6 7 8 9 10 Pin name SCK0/CAP0.3 Volts 3.1 MISO/MAT0.5 3-P0. Ltd. SPI Interface Connector (J9): Pin No. ETM150 User’s manual 2.1 Description Serial clock for SPI0. serial and full duplex communication. SPI interface provides synchronous.Data master or data input for SPI slave SSEL0/PWM2/ EINT2 VCC VCC GND GND VCC VCC Slave Select for SPI0.4 2P0. Compliant with SPI Specification. During a data transfer. The Maximum data-bit rate is one-eight of the input clock rate.Embin Technologies Pvt. the master always sends a byte of data to the slave. and the slave always sends a byte of data to the master.

3 PWM5-Pulse width modulator o/p RD3-CAN3 Receiver input CAP1. 2 Input to transistor BC547(Q11) 18 .Embin Technologies Pvt.21/PWM5/RD3/CAP1. Ltd.3. ETM150 User’s manual 2.P0.Capture input from TIMER1.10: Jumper for Buzzer: JUMPER J3: Pin No 1 Description LPc2294Port pin . channel 3.

30 6.26 8.P1.P1.31 4.28 5-P1.29 7.27 9 10 Pin name 3.3 volts Test reset for JTAG interface Test data in for JTAG Interface Test mode select for JTAG interface Test clock for JTAG Interface Returned test clock output extra signal to JTAG Port.P1.P1.2 3.P1.3 volts TRST TDI TMS TCK RTCK TDO RESET GND Description Supply 3.11: JTAG Connector (J13): Pin Number 1. Ltd. ETM150 User’s manual 2.Embin Technologies Pvt. Test data Out for JTAG interface Controller reset pin no.135 Connect to ground 19 .

standard I/O port with internal pull up Trace packet bit 3.P1.P1.18 4.12: Port 1 input/output connector (J19): Pin Number 1. Pipeline status bit 2 standard I/O port with internal pull up.Embin Technologies Pvt.21 7. 3. ETM150 User’s manual 2. Pipeline status bit 1 standard I/O port with internal pull up.19 5.standard I/O port with internal pull up Trace packet bit 2.22 8. PIPESTAT0 PIPESTAT1 PIPESTAT2 VCC GND Pipeline status bit 0. standard I/O port with internal pull up.P1.P1. Ltd.20 6.23 9 10 Pin name TRACEPKT0 TRACEPKT1 TRACEPKT2 TRACEPKT3 Description Trace packet bit 0.P1.standard I/O port with internal pull up TRACESYNC Trace synchronization.P1.16 2-P1.standard I/O port with internal pull up Trace packet bit 1.P1.3 volts supply Connected to ground pin 20 .17 3. standard I/O port with internal pull up.

ETM150 User’s manual 2.13: External Interrupt Jumper (J20): Pin Number 1. Ltd.15 Pin name Description DCD1/EINT1 External interrupt 1 input RI1/EINT2 External interrupt 2 input 2.14 2.14: PWM Connector (J4): Pin Number 1-P0.1 4-P0.Embin Technologies Pvt.7 3-P0.3/RD3/PWM5 Pulse width modulator output 5 RxD1/PWM6/EINT3 Pulse width modulator output 6 21 .8 5-P0.0 2-P0.9 Pin name TxD0/PWM1 SELO/EINT2 RxD0/EINT0 TxD1/PWM4 Description Pulse width modulator output 1 Pulse width modulator output 2 Pulse width modulator output 3 Pulse width modulator output 4 CAP1.21 6-P0.P0.P0.

0 – P2.15: Display Board Connector (J5): Port pins from P2.are external memory data lines used as general purpose port pins. 22 .Embin Technologies Pvt. Ltd. ETM150 User’s manual 2.16 Power Supply Section: J10: Power jack 12V/500mA connector J17: +1. 2.17.8V power supply isolation from main board jumper.

3V power supply isolation from main board jumper.8 volts adjusted using the pot J12: +3.Embin Technologies Pvt. Pin Number 1-2 Description 5Voutput from the regulatorLM7805 23 .3 volts adjusted using the pot. ETM150 User’s manual Pin Number 1-2 Description output from the regulatorLM317 1. J11: +5V power supply isolation from main board jumper. Ltd. Pin Number 1-2 Description output from the regulatorLM317 3.

Character generator ROM.Embin Technologies Pvt. ETM150 Display board Layout J1: Jumper for 7-segment display supply connector (3. Easy interface. 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. LCD can be connected to the Microcontroller through the port2. ETM150 User’s manual 3. Display data RAM for 80 characters. 3. Built-in Dot Matrix LCD controller with font 5X7 dots. 2. J15: Not to be connected 3. characters 24 .3 or +5V). Ltd.1 Liquid crystal display: In ETM150 LCD is given in the form of plug and play. which provides 160. LCD is connected in the 4-bit mode. 4. Features of LCD: 1.

cursor shift. Built in oscillator circuit. Internal automatic reset circuit at power ON. Enable pin for LCD READ/WRITE 25 . display shift. Wide range of instruction functions: Clear displays. Both display data and character generator RAM can be read from the MPU. cursor home. cursor ON/OFF. ETM150 User’s manual with font 5X7 dots and 32 characters with font 5X10 dots. LCD connector (CN1) : Pin Number 1 2 3 4 5 Pin name Vcc Contrast Contrast EN R/W Description 5 volts supply for the LCD Used for contrast adjustment of the LCD using a POT. Ltd.Embin Technologies Pvt. 7. 6. display ON/OFF. 5.

Ltd. like counters. With the help of this provided hardware one can design any application related to the seven-segment display. timers etc. Given through the routine and it operates in interrupt mode. uses Timer0. Sending 8 bit data Sending 8 bit data Sending 8 bit data Sending 8 bit data For sending 8bit /4bit data For sending 8bit /4bit data For sending 8bit /4bit data For sending 8bit /4bit data Backlight adjustment Backlight adjustment In ETM150 4 number of common 3. The simple hardware and software make the design very easy for further implementations.Embin Technologies Pvt. The routine given with the ETM150 displays the no.2 Seven Segment Display: 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. ETM150 User’s manual 6 7 8 9 10 11 12 13 14 15 16 RS Data line Data line Data line Data line Data line Data line Data line Data line Vcc Gnd Control Operation or Data . 26 . All the common anode displays consumes very small amount of current. Whenever the interrupt occurs due to the timer the data has been refreshed and the display no is selected.

J20: 2 pin external interrupt connector 27 . Ltd.8V power supply isolation from main board jumper. J6: CAN bus interface connector. J13: J-TAG interface connector J14: J-TAG interface jumper. J15: Not to be connected J17: +1. J7: PS2 interface interrupt connector.Embin Technologies Pvt. J2: LED interface jumper J3: PWM based Buzzer interface jumper J4: PWM output connector 6pin J5: Display daughter board connector. J10: Power jack 12V/500mA connector J11: +5V power supply isolation from main board jumper.3 or +5V).3 All Connector details and jumper settings J1: Jumper for 7-segment display supply connector (3. J9: SPI bus interface connector. J12: +3.3V power supply isolation from main board jumper. J18: ADC interface connector J19: Port1 input output interface connector. ETM150 User’s manual 3.

• 4 X 4 Matrix keyboard.8V power supply. • DPDT Push-Button switch provided to change form Programming to run mode. Programming. Board Description __________________________________________________ • Philips 32-bit. • 5V. 12 MHz clock frequency) • On-chip 256 KB FLASH.Embin Technologies Pvt. • 512KB external serial I2C-EEPROM. ETM150 User’s manual 4. • All ports and decoded interface available on board • 256KB on-chip FLASH with download utility for in-System (ISP) FLASH.3V. 64KB of on-chip Ram. • 10-bit Analog to Digital Converter. • Two RS232 serial interface (UART0. • Seven segment display. 3. Ltd. • 2 Lines X 16 Character LCD Display. 28 . 1. UART1) • Internal Real-Time Clock with internal quartz. LPC2294 Microcontroller (LQFP-144 pin package.

Embin Technologies Pvt. Ltd. ETM150 User’s manual 4.1: Schematic of LPC2294 29 .

Ltd.2: PIN Description: 30 .Embin Technologies Pvt. ETM150 User’s manual 4.

Ltd. ETM150 User’s manual 31 .Embin Technologies Pvt.

ETM150 User’s manual 32 . Ltd.Embin Technologies Pvt.

Embin Technologies Pvt. ETM150 User’s manual 33 . Ltd.

ETM150 User’s manual 34 . Ltd.Embin Technologies Pvt.

Embin Technologies Pvt. ETM150 User’s manual 35 . Ltd.

• Connect the supplied serial cable to the board and the COM1/COM2 36 . 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). CD contents _______________________________________________ Flash utility for IC KEIL compiler evaluation version (16K code size) Sample code for development. Guidelines to Run Programs _________________________________________________ The ETM150 main microcontroller is LPC2294. 6. ETM150 User’s manual 5. Schematic of the board. To install the WINISP software run the setup provided in the CD. The LPC2000 Flash Utility is used to download the firmware to the target board. Ltd.Embin Technologies Pvt. Manual for easy debugging of the circuit. which has on-chip 256kb of flash 16k RAM.

• Power on the Board (switch the mains supply). • Now close the LPC2000 Flash Utility software & switch off the mains. • 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. • The Green led should also light up indicating program mode. • Run the LPC2000 Flash Utility software. Ltd. • The RED led on board should light up indicating proper power supply. select the flash memory block to be erased. • Press the UPLOAD TO FLASH button and wait till the Status Display shows “Programming Flash Successful” is displayed. If communication establishes • Click the ERASE BLOCK (Alt-E) button. 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. ETM150 User’s manual of computer • Press the programming switch (S1) so that it remains in down position. the selected block will flash with Pink color.Embin Technologies Pvt. • Click button Read Device ID. 37 . Click the ERASE! Button. Once completed the Block Erase Selection window will close.

• Switch on the Board power. LED Display. hex file of LED Display program. parity bit=None. LCD. SPI Interface programs.1 LED Display: Source code provided for LED Display demonstrates the use of common cathode LED’s.25. Echo=Off. Hex file displaying the string”Hello World” in the hyper Terminal 7. Ltd. • The Sample C code provided with the ETM150 board are self explanatory with comments that help you understand the Serial port. which will run hello. For the use of common cathode LED’s close jumper J2 for the use of common Cathode. LED array is interfaced with ETM150 at P0. Download the LED.2 Seven Segment Display: Source code for seven-segment display demonstrates the use of common anode seven segment display to 38 . I2C interface. 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. 7. Simple keypad. CAN Interface. 7. ADC. check the desired output & if required change the program & download it to the microcontroller flash without removing it from the board. Seven segment display. programming switch (S1) again so it comes in up • Open the hyper terminal if hello.18 – P0. Hex file is loaded & select the baud rate to 9600. ETM150 User’s manual • Press the position. Here few applications are discussed. • 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.Embin Technologies Pvt. Set Data Bits=8.

Connector J18 is equipped will all the ADC channel that can be used for external Analog signal interface. Display PCB consists of connecter CN1 that will be connected to the J5 on the main board.17 through connecter J5 for interfacing with LPC2294.3V DC will be obtained by varying R42.3V DC (Variable) as a source to the ADC or can use external analog signal from external signal conditioning.hex file of the Sevensegment display program. 7. Configure it 39 .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. Seven segment display section uses port pins P2. Matrix keyboard is interfaced with ETM150 using port pins of LPC2294 P3.hex file of matrix keyboard program and open hyper terminal. we can use the internal 0 –3. 16 simple SPST switches are connected in 4 X 4 matrix format for the use of maximum keys using minimum port pins.0 – P3.6 – P2. Download the .hex file of ADC sample program Connect the serial cable provided to DB9 connector P2 Configure and open hyper terminal. it will display some numeric value on the display as coded in source code. After recognizing the key pressed in main routine passes only the value of the key.3 Matrix Keyboard: Source code for matrix keyboard demonstrates the use of 4 X 4 matrix keyboard to display the message on hyper terminal. For demonstration of working of internal ADC R42. Download the .7 Download the . 7. The ADC has two sources of the analog signal. ETM150 User’s manual display the different numeric values. The variation of 0 – 3. 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. Ltd.Embin Technologies Pvt. R43 POT is provided.

Run the program. Download the program. 7. Connect display board to main board.Hex file using downloads flash utility. The RTC values are displayed on the LCD as well as on hyper terminal. Download the .9 FREE RTOS ported example: RTOS is a Real time operating system.8 SPI Interface: Source code for the SPI interface demonstrates the use of the SPI Communication protocol.7 Real Time Clock (RTC): Source code for the RTC demonstrates the working of RTC. 7. the message will be displayed on the LCD. By using this sample code data can be stored and retrieved from EEPROM. 7. Connect LCD module on the LCD connecter LCD. Download sample code for RTC for demonstrating how internal RTC is working. By using this EEPROM and ETM150 a developer can implement his/her own control system. 7.Embin Technologies Pvt. By using this ADC value and ETM150 a developer can implement his/her own control system. By using this SPI Communication protocol and ETM150 a developer can implement his/her own control system. Code for this is 40 . Ltd. which does all the tasks as per priority. the value of ADC will be displayed on the hyper terminal.5 LCD Display: Source code for the LCD displays the interfacing of LCD with microcontroller. which is coded in sample code. 7. ETM150 User’s manual for the baud rate of 9600.6 EEPROM: Source code for the EEPROM demonstrates how to store the Data in EEPROM by using I2C protocol. The clock is implemented and the clock is shown on LCD.

Memory footprint is about 20KB for a fully functional kernel. scaleable and preemptive real-time multitasking kernel for microprocessors and microcontrollers. Using this code we can port FREE RTOS onto the ARM processor & develop the related interfacing of the peripheral. By using this sample code for FREE RTOS and ETM150 a developer can implement his/her own control system.Embin Technologies Pvt. ROMable.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. 41 . uC/OS – II is a Real Time Kernel that is highly portable. ETM150 User’s manual provided in CD. 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. The sample code for FREE RTOS is provided in the folder Free RTOS/Free RTOS/Samples/Sample3/RTOSThumb. 7. Ltd.

assembly language routines for critical section protection interrupt handling and context switching. uC/OS – II incorporates a preemptive based priority scheduling mechanism. The uC/OS – II is suited to run on a variety of microcontrollers. 42 . There are 64 priority levels (maximum 64 tasks) 8 Tasks are reserved for uC/OS – II Each Task is an infinite loop. The main effort involved in porting uC/OS – II is to determine the processor programming model. ETM150 User’s manual Source code is about 5000 lines in ANSI C. Its source is free but not free for commercial uses. Ltd. the calling conventions of the compiler and most importantly servicing of the interrupts. Secondly.Embin Technologies Pvt. uC/OS – II has deterministic execution times for most uC/OS – II functions and services. A uCos Port for specific processor architecture requires the definition of the data types on the processor. Nested interrupts could go upto 256 levels.

hex Output across: hyper terminal (baud rate=9600) + UART1. Program name: Keypad Hex file name: keypad. Ltd. hex Output across: hyper terminal (Baud rate=9600) –ADC output+ LCD shows the RTC time + UART1.D8 glows when the buzzer (BUZ) rings Program name : Endianess Hex file name: Endianess. Program name: Free RTOS/FreeRTOS/Samples/Sample3/RTOSThumb Hex file name: RTOSThumb. Program name : Buzzer Hex file name: ADC+BUZZER.Embin Technologies Pvt. ETM150 User’s manual Sample programs: Program name: ADC Hex file name: ADC.hex Output across: display “EMBIN TECHONOLOGY “ on LCD 43 . Program name : LCD Hex file name: lcd.hex Output across: the led no. hex Output across: hyper terminal (Baud rate=9600) + UART1. hex Output across: hyper terminal (Baud rate=9600) + UART1.

Seven segment . hex Output across: hyper terminal (baud rate=9600) + UART1. Program name :WATCHDOG Hex file name: watchdog.hex Output across: Rtc time is displayed on the LCD Program name : Seven Segment Display Hex file name: Segment Program name : timer Hex file name: Timer_final.hex Output across: hyper terminal (baud rate=9600) + UART1.hex Output across: hyper terminal (baud rate=9600) + UART0. Ltd.hex Output across: shows a static display of “1111 “on the seven Program name :UART 0 Hex file name: UART0. ETM150 User’s manual Program name : LED Hex file name: Led. Program name : RTC Hex file name: rtc.hex Output across: Leds will glow IN A Sequential manner.Embin Technologies Pvt. 44 . Program name :UART 1 Hex file name: UART1.hex Output across: hyper terminal (baud rate=9600) + UART0.

hex Output across: hyper terminal (baud rate=115200) + UART0. Program name :RTOS LED Blink slow Hex file name: led. 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. ETM150 User’s manual Folder name: uCos Programs Program name :All modules integrated Hex file name: serial.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. 45 . Program name : Mutex Demo Hex file name: mutex.Embin Technologies Pvt. Ltd.

ETM150 User’s manual 46 . Ltd.Embin Technologies Pvt.

Sign up to vote on this title
UsefulNot useful