Professional Documents
Culture Documents
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
Contents
1. Introduction ……………………………………………………………………………..…. 4
4. Board Description………………………………………………………………28
2
Embin Technologies Pvt. Ltd. ETM150 User’s manual
5. CD – Contents …………………………………………………………………………….......35
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.
4
Embin Technologies Pvt. Ltd. ETM150 User’s manual
5
Embin Technologies Pvt. Ltd. ETM150 User’s manual
Below Sections give the Board layout & Board Jumper Details.
6
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
7
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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
8
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
9
Embin Technologies Pvt. Ltd. ETM150 User’s manual
P1 UART0
P2 UART1
RIN1,RIN2 Receive input
DOUT1,DOUT2 Transmit data o/p
10
Embin Technologies Pvt. Ltd. ETM150 User’s manual
DB9 Connector:
11
Embin Technologies Pvt. Ltd. ETM150 User’s manual
12
Embin Technologies Pvt. Ltd. ETM150 User’s manual
13
Embin Technologies Pvt. Ltd. ETM150 User’s manual
Port pins P3.0 –P3.7 are external memory address lines and in this
application are used as general purpose port pins.
14
Embin Technologies Pvt. Ltd. ETM150 User’s manual
15
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
16
Embin Technologies Pvt. Ltd. ETM150 User’s manual
17
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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)
18
Embin Technologies Pvt. Ltd. ETM150 User’s manual
19
Embin Technologies Pvt. Ltd. ETM150 User’s manual
20
Embin Technologies Pvt. Ltd. ETM150 User’s manual
21
Embin Technologies Pvt. Ltd. ETM150 User’s manual
Port pins from P2.0 – P2.17- are external memory data lines used
as general purpose port pins.
22
Embin Technologies Pvt. Ltd. ETM150 User’s manual
23
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
25
Embin Technologies Pvt. Ltd. ETM150 User’s manual
26
Embin Technologies Pvt. Ltd. ETM150 User’s manual
27
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
28
Embin Technologies Pvt. Ltd. ETM150 User’s manual
29
Embin Technologies Pvt. Ltd. ETM150 User’s manual
30
Embin Technologies Pvt. Ltd. ETM150 User’s manual
31
Embin Technologies Pvt. Ltd. ETM150 User’s manual
32
Embin Technologies Pvt. Ltd. ETM150 User’s manual
33
Embin Technologies Pvt. Ltd. ETM150 User’s manual
34
Embin Technologies Pvt. Ltd. ETM150 User’s manual
35
Embin Technologies Pvt. Ltd. ETM150 User’s manual
5. CD contents
_______________________________________________
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
36
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
37
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
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.
38
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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
39
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
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.
40
Embin Technologies Pvt. Ltd. ETM150 User’s manual
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.
Semaphores
Mutual Exclusion Semaphores
Event Flags
Message Mailboxes
Message Queues
Task Management Facility
Fixed Size Memory Block management
Time Management
Timer Management
41
Embin Technologies Pvt. Ltd. ETM150 User’s manual
42
Embin Technologies Pvt. Ltd. ETM150 User’s manual
Sample programs:
¾ 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.
43
Embin Technologies Pvt. Ltd. ETM150 User’s manual
44
Embin Technologies Pvt. Ltd. ETM150 User’s manual
¾ Program name:Semaphore
Hex file name: semaphore. hex
Output across: hyper terminal
(Baud rate=9600) + UART1.
45
Embin Technologies Pvt. Ltd. ETM150 User’s manual
46