Home
User Manual
Contents
1. 14 4T Ov PWR DC C15 10u 10v U6 11011178533 CLOCK SOURCE eCee NXP LPC 2129 evaluation board has two clock sources 32 768 KHz Crystal as the RTC clock source gt 10 Crystal as the MCU clock source M O O D Y INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 V3 3 J12 2 D10 CON2 LED R30 470R 16 C17 0 1 uF 10uf 10v We bring the world to you rhydolabz com www rhydolabz com LED INTERFACING LED s are the simplest devices to test port functioning The board contains 8 LED s connected to PORTI pins 16 to 23 P1 16 to P1 23 Note For the LED s to work the LED jumper JS must be in position LED Ae LED m F 116 2 117 4 118 6 119 8 120 11 121 13 122 15 Emm P123 17 1Y2 1Y3 1 4 2Y1 gt LED irs 3 18 wh LED 2X3 2 4 5 LEA DO LEP lh 5 7T4LV244 pS LEA 5 We bring the world to you FICATION ISO 9001 2000 7 rhydolabz com www rhydolabz com The board has all port pins available at Berge strip and at round machine cut female connector The connection is as given below Ji CON25 CON25 Q 1uF Buzzer 15 connected to PO 7 Note For the Buzzer to work the jumper J5 B
2. em ST 3 3 7 3 m 3 mw ELEM mum 9 m a 4 m L3 34 P1 1 14 1 21 Led6 LCD deWicba PONG 15 Matrix o 16 ie Matrix o 43 3 P0 17 Matrix Key P1 Led5 LCD bedS LCD D We bring the world to you rhydolabz com VDD www rhydolabz com We bring the world to you rhydolabz com www rhydolabz com 22 SO TECHNICAL SUPPORT If you are experiencing a problem that 1s not described in this manual please contact us Our phone lines are open from 9 00 AM 5 00 PM Indian Standard Time Monday through Saturday excluding holidays Email can be sent to support rhydolabz com LIMITATIONS AND WARRANTEES This product is intended for personal or lab experimental purpose and in no case should be used where it harmfully effect human and nature No liability will be accepted by the publisher for any consequence of its use Use of the product software and or hardware 15 with the understanding that any outcome whatsoever is at the users own risk All products are tested for their best performance before shipping still rhydoLABZ is offering One year Free service warranty Components cost Shipping cost will be charged from Customer DISCLAIMER Copyright Rhydo Technologies P Ltd rights are reserved Reproduction in whole or in part 15 prohibited without the prior w
3. E H JTAG Server Jo ES File Operations Flasher Script Settings Options Help euan 8 x4F 1FOFOF Minimize the H JTAG screen and pop up the Keil window Click Download in the Flash Menu for downloading the program using JT AG The H JTAG automatically pop up LED pVision3 E ARM JTAG Led_Blink c 2 File Edit View Project Debug Peripherals Tools 4905 Window Help uy E e H4 Download ET d H Project Workspace ___ Target 1 E Source Group 1 ist 8 Startup s Led Blink c ARM JTAG Led Blink c Description 1 This sample program of ete et eee eS Ee ERE ER EE EER ER ES EK EK EE SER EH EH id includezlpczi3x h Configure Flash Tools define LED 1 lt lt 16 LE Hdefine LED IO1SET IOL1SET LED define LED OFF IO1CLR IOL1CLE LED We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com 2 SOS Select Flash Selection under Program Wizard to select the microcontroller in the evaluation board Here we use NXP s LPC2138 controller H Flasher Mew Load Save SaveAas ptions Exit About Flash Selection NXP vendor Configuration LPC2102 2455 LPC2103 __ Pam Options 0 LPC210
4. 33K 517 o D12 4148 EXTERNAL EEPROM INTERFACING The eCee LPC 2129 development board has 4K SERIAL EEPROM interfacing Internally organized with 256 pages of 2 byte each the 4K requires an 9 bit data word address for random word addressing with data transfer rate 100 kbits s Also it is to be noted that an external EEPROM 24 04 is the slave device to be communicated with the microcontroller via protocol M O O D Y INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 We bring the world to you 7 rhydolabz com www rhydolabz com JP2 23 16 C8 C9 GND 0 14 0 1 0144 25 25 V3 3 VL8 VI 8 L O 1uF MCP2551 M O O D Y We bring the world to you CERTIFICATION 15 9001 2000 7 rhydolabz com www rhydolabz com The eCee LPC 2129 development board has a potentiometer connected to its ADC pin P0 28 Note Place jumper on A2DIN J9 ADC PORT AUDIO AMPLIFIER V5 0 J19 C26 LSI 025 Ho oH AOUT SPEAKER We bring the world to you CERTIFICATION 150 9001 2000 rhydolabz com www rhydolabz com CHAPTER 3 SOFTWARE DEVELOPMENT We bring the world to you rhydolabz com www rhydolabz com 2222 SE FAMILIARIZATION OF KEIL PROFESSIONAL DEVELOPMENT SUITE CREATING PROJECT Keil uVision3 software is a stan
5. Potentiometer as ADC input HDP1206 X Buzzer LM35 Temperature Sensor 74LV244 LED Driver IC External EEPROM 24C04 LM7805 Regulator IC 5V 01117533 Regulator IC 3 3V 74LV244 LCD Driver IC MAX3232 Level Converter LM386 Audio Amplifier U10 1040 CAN interfacing IC CI c c CI C c CoO N C Cc M O O D Y D CO ES cr D cr lt INTERNATIONAL TIFICATION ISO 9001 2000 2 rhydolabz com www rhydolabz com JUMPER LIST J umper no Description Set option Set description External Access Package External Access J6 TEMPP JJjShortoacces LM35AccessviaADOO 7 LED 1 2 LCD Brightness vary PWM POO E fa o J8 LED j Shottoaccess LED enable P1 16 P1 23 J9 ADN X J jShortoaccess Potentiometer as 00 1 input Module Only 26 CAN Transmission LPC2129 Only 2 3 USB Power is selected We bring the world to you ERTIFICATION ISO 9001 2000 rhydolabz com www rhydolabz com POW ER SUPPLY eCee NXP LPC 2129 Board has two power supplies you can choose one of the following ways to supply power 1 Through an Adaptor any standard 9 12V power supply 2 Through the motherboard USB port The external Power Supply circuit 15 given below EXTERNAL POWER SUPPLY D9 144007 N
6. LED OFF IOLCLR IO1CLR LED RE 0 00000000 14 000000000 15 void Delay unsigned long Count R8 0500000000 155 R3 0x3a93allc 17 while Count gt 0 R10 0 0000051 c 18 R11 0 00000000 13 Count R12 0 000001 44 20 13 5 0 4000045 211 R14 LR 0 00000248 22 R15 PC 0 00000214 23 int main CPSR 0x40000010 244 5 000000010 25 IO1DIR IO1DIR LED T 7 WE User Syst 26 LED OFF To OFF LED Y Fast Interrupt 2 while 1 gt Interrupt 28 Supervisor 23 LED ON 8 Abort 6220 Delay 1200000 A Software Delay Of 100ms Undefined 31 LED OFF Internal 8 2 Delay 1200000 000000214 33 Mode User 34 m 35 B 8 6 9 36 Symbols x E tee Led Blink We bring the world to you CERTIFICATION ISO 9001 2000 rhydolabz com www rhydolabz com CHAPTER 4 1 0 DISTRIBUTION We bring the world to you rhydolabz com www rhydolabz com The Pin Distribution of LPC2129 Development Board LPC2129 Pin No Type The 1 0 assign of LPC2129 Board p m mmm V55 GND Se E 9 We bring the world to you 7 rhydolabz com www rhydolabz com 52 o6 et Ce ow f mum Lom 79 1 Lom 79 ew Lm
7. menu option File New This opens an empty editor window where you can enter your source code uVision3 enables the C color syntax highlighting when you save your file with the dialog File Save As under a filename with the extension C Here we save our example file under the name led C include LPC21xx h LPC 2129 definitions i void delay void Delay function int i for i 0 i lt 1000 i f Delay for LED blink int main void IO 1DIR 0 00 0000 P1 16 23 defined as Outputs while 1 infinite Loop 1015 0X00FF 0000 P1 16 23 pins high 2 delay IO1CLR 0 00 0000 P1 16 23 pins low delay M O O D Y We bring the world to you CERTIFICATION ISO 9001 2000 7 rhydolabz com www rhydolabz com Add Source Files to Project Once you have created your source file you can add this file to your project uVision3 offers several ways to add source files to a project For example you can select the file group in the Project Workspace Files page and click with the right mouse key to open a local menu The option Add Files opens the standard files dialog Select the file led c you have just created Right Click Source Group Click On Add Files to Group Source Group 1 Stop D d Mew Group d Manage Components Remove Group Source Group 1 and its Files Include Dependencies Set Tool Options for Target u
8. reflect this configuration in the Startup Code Configure Startup Code The CPU Startup Code on most ARM targets the file name is Startup S may be open from the Project Workspace Files Tab Most startup files have embedded comments for the uVision3 Configuration Wizard which provides menu driven selections MOODY We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000 rhydolabz com www rhydolabz com Expand All Collapse All ag Stack Configuration Stack Sizes in Bytes Heap Configuration 7 VPBDIV Setup VPB Clock VPB Clock CPU Clock 2 XCLKDIV XCLK Pin XCLK Pin CPU Clock 4 PLL Setup MSEL PLL Multiplier Selection 5 i PSEL PLL Divider Selection 2 H Setup v H External Memory Controller Configuration Wizard The default settings of the Startup Code give a good starting point on most single chip applications However you need to adapt the configuration for your target hardware CPU PLL clock and BUS system are target specific and cannot be automatically configured You need to ensure that the settings in the startup file match the other settings in your project The button Edit as Text opens the Startup Code in a standard editor window and allows you to review the source code of this file Create HEX File Once you have successfully generated your application you can start debugging After you have tested
9. with jumper select option On Board 8 LED Interface to test Port pin with jumper select option On Board Pot interface to ADC On Board Temperature Sensor Interface Optional On Board Buzzer Interface On Board 4x4 16 Keys Matrix Keyboard On Board EEPROM On Board External Interrupt Button On Board Connector for Output PWM controlled LCD backlight On Board Connector for Analog Output On Board Speaker Output LF Amplifier LM 386 M O O D Y Adaptor any standard 9 12V power supply option We bring the world to you CERTIFICATION ISO 9001 2000 rhydolabz com www rhydolabz com 2 SOS ON Y M O O D Y INTERNATIONAL TIFICATION ISO 9001 2000 On Board Power LED Indicator On Board Reset button Port Pins available at Berge Strip On Board Connector for Debugging Programming Power Supply Reverse Polarity Protection Controller Area Network CAN transceiver Three On Board DB9 Connectors Two for UART and One for CAN On Board USB Connector On Board 1 Amp Voltage Regulator On Board Connector for regulated 3V3 output On Board Connector for regulated 5V output Can be used as main board for developing applications We bring the world to you rhydolabz com www rhydolabz com CHAPTER 2 HARDWARE INTRODUCTION We bring the world to you 7 rhydolabz com www rh
10. your application it 1s required to create an Intel HEX file to download the software into an EPROM programmer or simulator u Vision3 creates HEX files with each build process when Create HEX file under Options for Target Output is enabled We bring the world to you FICATION ISO 9001 2000 i rhydolabz com www rhydolabz com Options for Target Target 1 Device Target Output Listing User cc Asm Linker Debug Utilities select Folder for Objects of Executable 785 Create Executable Debug Information Create Batch File Big Endian Create Library Xtest LIB Build Project Typical the tool settings under Options Target are all you need to start a new application You may translate all source files and link the application with a click on the Build Target toolbar icon When you build an application with syntax errors u Vision3 will display errors and warning messages in the Output Window Build page A double click on a message line opens the source file on the correct location in a u Vision3 editor window 1 114 target Target 1 ElFromELF creating hex file l led axf 0 Error s 0 Warning s 3 We bring the world to you FICATION ISO 9001 2000 rhydolabz com www rhydolabz com 2 SOS CONNECTING THE DEVELOPMENT BOARD eCee LPC 2129 requires 9 12V DC adapter or USB c
11. 4 LPC2105 LPC2106 Size H Flasher Help oo LPE2109 are TT Init Scripts b LFE2114 Sector Programming ID LPC2113 2124 LPE2128 21 31 i PC2132 LPE2134 LPC2136 Now select Configuration and set external crystal frequency the XTAL MHz text box Enter the frequency of the crystal used in the evaluation board i H Flasher Mew Load Save Saveds Options Exit About 1 Flash Selection 2 Configuration Flash Width Chip 3 Init Scripts Pam Options Flash Start Address 5 Programming Start Address H Flasher Help ATAL MHz We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com 2 SOE Now Select the Programming option and set Type as Intel hex Format and select the Source File from your program folder We can also check the Flash and Target unit by clicking Check Now click Program button to program the Target board Mew Load Save Save s lptions Exit About 1 Flash Selection Flash Unchecked g Configuration Target Unchecked 3 Init Scripts 5 Options Intel Hex Format Verty 3 H Flasher Help r Sre File BLINK hex x L1 Pragramming Dst Addr Address H Flasher Mew Load Save Saveds Options Est About 1 Flash Selection Flash LPC2138 x DD2FF25 Check C
12. 7 rhydolabz com www rhydolabz com 2129 ARM Development Board User Manual Rhydo Technologies P Ltd An ISO 9001 2008 Certified R amp D Company Golden Plaza Chitoor Road Cochin 682018 Kerala State India Phone 0091 484 2370444 2371666 Cell 0091 99466 70444 0091 484 2370579 E mail info rhydolabz com sales rhydolabz com WebSite http www rhydolabz com rhydo We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com CONTENTS CHAPTER 1 OVERVI EW CHAPTER 2 HARDWARE INTRODUCTION eCee NXP LPC 2129 Function Module 4 Interface Overview 4 Jumper List Power s Clock source Reset e Led interfacing 4 PortPins Berge Strip and Round Machine Cut Female Connector Buzzer Interface and LED PWM Liquid crystal display se Universal Asynchronous Receiver Transmitter UART Creating HyperTerminal in PC Matrix Keyboard 4 Temperature Sensor Interfacing External Interrupt 4 External EEPROM Interfacing ADC Potentiometer Audio Amplifier CHAPTER 3 SOFTWARE DEVELOPMENT Of Keil Professional Development S uite e Creating a Project e Creating Project File e Select Microcontroller from Device Database We bring the world to you rhydolabz com www rhydolabz com 2 SOS Copy Add the CPU Startup Code e Create New
13. Click Read Device ID and wait till Device Id is shown Device Use DTR RT 5 Click Upload to Flash button in the flash utility software eS fet eset and and wait till the progr amming 1S over b pon BotlodderD Selection 6 Remove jumper on ISP and RST 7 Now Reset the development board T Execute Lode Sending Data to RAM MODE 1 Configure LPC Flash Utility software at the PC side Browse your hex file here b Select your COM port and Set baud rate 9600 here C Disable DTR RTS for Reset and boot loader selection Flash Programming Blank 2 Connect system serial port to COM port of eCee LPC 2129 Feng BoE D SLcdRhydo hex ank ntire Device co a Put jumper on ISP J17 15 720 Selected Sectors 4 Click Read Device ID DU Stat Sector 5 The software prompts you to reset the development board Compare Fenn Press Reset button S18 and press Device Use DTR RTS Device 1358 ps 7 Wait till Device Id is shown TAL Frea TES ee X 5 Click Upload to Flash button in the flash utility software and wait till the programming is over Remove jumper on ISP J17 ISP J20 7 Now Reset the development board We
14. D Y We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000 7 rhydolabz com www rhydolabz com Xj LED_BLINK pVision3 E ARM JTAG Led_Blink c Lihi U Download uk M 79 lt 2 px gs AN Project Workspace Target 1 Ti Source Group 1 Startup s Led Blink c ARM JTAG Led Blink c Description This 18 sample program of EE gt Configure Flash Tools fZ includezlpcezi3x h Select RDI Interface Driver and click on Settings in the Debug option Check whether Load Application at Startup and Run to main are enabled Options for Target Target 1 Debug Use RDI Interface Driver Settings Device Target Output Listing User Linke Use Simulator Settings Limit Speed to Real Time Load Application at Startup Run to maini Load Application at Startup Run to main Initialization File Initialization File gi Edi Edi m Restore Debug Session Settings Restore Debug Session Settings Breakpoints Toolbox Breakpoints Toolbox Watchpoints amp Watchpoints Memory Display Memory Display CPU DLL Parameter Driver DLL Parameter SARM DLL oLPC21 00 SARM DLL Dialog D
15. Flash Menu Command Use Target Driver for Flash Programming lets Hed SH TA rl J XT qe Use External Tool for Flash Programming Command Program FilessH J TAG Flasher exe Arguments Aun Independent Debugging Programming OF Cancel Defaults Update Target betore Debugging Connect your evaluation board to the JTAG debugger Make sure that the JTAG is connected to the parallel port of your PC using the cable provided Launch H JTAG software from Start menu 2 MPLAB IDE bf uvision3 Microsoft Office wor H ITAG xj Programs P windows Media Player gt Windows Messenger E Windows Movie Maker 99 winPicBDn Network Enabler Administrator rm McAfee Ff Atmel AVR Tools Microchip Y uvision3 HI TECH Software Microsoft Office fag H JTAG H Converter H Flasher 4 1 Location C Program FilesYH JTAG ie Uninstall MO DY DA INTERNATIONAL CERTIFICATION ISO 9001 2000 We bring the world to you rhydolabz com www rhydolabz com It detects device id of the controller connected to the evaluation board If the device is not detected RESET the evaluation board and Click Detect Target In Operations Menu again In the example we use LPC 2138 microcontroller from NXP with ARM7TDMI S processor
16. LL Parameter Dialog DLL Parameter D amp RMP DLL pLPC21 38 TARMP DLL pLPC21 38 Cancel Defaults Help Click Browse in the Browse for RDI Driver DLL option and select the H JTAG dll file from the installed HFlasher location Usually found in C Program Files H JTAG H JTAG dll Click Options for Target Target 1 x Device Target Output Listing User Asm Linker Debug Utilities Use Simulator Settings Use Interface Driver Settings RDI Interface Driver Setup Browse for RDI Driver DLL C Program Files HJTAGSHJTAG dll zt m Browse for ToolConf File X Debug Cache Options 4 Cache Code Configure RDI Driver Cancel Help urczz OK Defaults We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com Click Utilities enable Use External Tool for Flash Programming Click Browse in the Command Option and select the H Flasher exe Usually found in C Program Files H JTAG H Flasher exe Enable Run Independent option Click OK This will exit you from the Configuration Menu Options for Target Target 1 Device Target Dutput Listing User C Ce Asm Linker Debug Configure
17. REATING HYPERTERMINAL IN The serial data transmitted through UART can be viewed on a PC using a Windows tool for Serial Port Communication called HyperTerminal Steps T o Create H yper T erminal Set Program Access and Defaults PS Mozilla Firefox Windows Catalog Bi Lingual Dictionary 2 Windows Update PonyPrag Textaloud CodeVisionAVR Accessories iy Accessibility ir Games Entertainment a System Tools Microsoft Office kr Address Book j Calculator RealTerm Command Prompt Startup k B Notepad Total Uninstall 3 Paint Internet Explorer Program Compatibility Wizard Internet Mozilla Firefox E mail e Outlook Express 6 Synchronize MSN 3 Tour Windows XP Outlook Express windows Explorer Remote Assistance Bi WordPad m Communications a HyperTerminal HyperTerminal Foxit Reader P Notepad Windows Media Player Windows Messenger Geeoresed 60788 Windows Movie Maker Met connects to other computers Internet telnet sites bulletin 3 AVR Studio 4 Hawt Baader Met board systems anline services and host computers using either a modem null madem cable G amp GI GJ c Topview Device Programmer B ssl New Connection Wizar PonyProg2000 Free Serial Port Monitor k 13 Remote Desktop Connection ucFlash 1 2 3 Wireless Network Setup Wiza
18. Source Files e Add Source Files to Project e SetTool Options for Target e Configure Startup Code e Creating HEX File e Build Project 4 Connecting the eCee NXP LPC 2129 Development Board 4 Programming Steps e Automatic mode e Manual mode JTAG Programming Debugging CHAPTER 4 I O DISTRIBUTION 4 The Pin Distribution Of LPC 2129 Development Board We bring the world to you rhydolabz com www rhydolabz com 22 SOS CHAPTER 1 OVERVIEW We bring the world to you rhydolabz com www rhydolabz com LPC 2129 Development and Evaluation Board from RhydoLabz can be used to evaluate and demonstrate the capabilities of NXP LPC 2129 microcontrollers The board with a base board and header board 15 designed for general purpose applications and includes a variety of hardware to exercise microcontroller peripherals The LPC 2129 Board contains all hardware components that are required in a single chip LPC 2129 system plus 2 COM ports for serial RS232 output one CAN port to test Controller Area Network CAN Interface and interfaces like Lcd Buzzer Keyboard Temperature Sensor Potentiometer Led s EEPROM etc FEATURES Includes LPC2129 Header Board with in built CAN peripheral No separate programmer required On Chip Boot loader No Separate power adapter required USB power source Two RS 232 Interfaces For direct connection to PC s Serial port On Board Two Line LCD Display 2x16
19. UARTs one with full modem interface Ed LPC2124 Two 2C serial interfaces Two SPI serial interfaces Three 32 bit timers Watchdog Timer Real Time Clock with optional battery backup Brown out detect circuit General purpose 1 0 pins CPU clock up to 60 MHz On chip crystal oscillator and On chip PLL E 1 2141 3 LPC2142 3 LPC2144 Cancel Copy and Add the CPU Startup Code An embedded program requires CPU initialization code that needs to match the configuration of your hardware design This Startup Code depends also on the tool chain that you are using Since you might need to modify that file to match your target hardware the file should be copied to your project folder We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com o For most devices uVision3 asks you to copy the CPU specific Startup Code to your project This is required on almost all projects exceptions are library projects and add on projects The Startup Code performs configuration of the microcontroller device and initialization of the compiler run time system Answer with Y ES to this question 22 Copy Philips 2100 Startup Ae Ea Project Folder and Add File to Project 7 Note The CPU Startup Code typically requires some configuration however the default configuration gives you a good starting point for single chip applications Create New Source Files You may create a new source file with the
20. UZ must be in position V5 0 10uf 1 Ov wel We bring the world to you 15 9001 2000 rhydolabz com www rhydolabz com LCD LIQUID CRYSTAL DISPLAY The display 15 a standard 2x16 LCD which displays 2 lines of 16 characters Each character 15 40 pixels making it 1280 pixels overall The display receives ASCII codes for each character at the data inputs 00 07 Connection Diagram The LCD module can be used in 4 bit or 8 bit mode The module uses HD44780U from Hitachi as the controller The eCee LPC 2129 development board uses 4 bit interface pins 17 1 23 are used for data command control pins An On Board potentiometer enables to adjust the LCD contrast to a better view in every angle Note For the LCD module to work the LCD jumper J13 must be in position LCD INTERFACING C8 10u 10v LCDI Tr O LCD2X16 5 LED 2E P021 2 18 LED R W 3 a E 6 RW P117 4 l6 RS E 12 1Y2 118 6 14 RW 1A3 1Y3 7 119 8 12 E DO 1A4 1Y4 8 9 D4 DI 271 9 P21 B 7 D5 D2 242 2 2 10 P122 15 5 D6 D3 P223 a 3 D7 D4 2 1 D5 D D4 D5 10 D6 13 GND D7 l4 2 02 7ALV244 We bring the world to you FICATION ISO 9001 2000 rhydolabz com www rhydolabz com 22 SE Lcd module has 16 pins for i
21. Vision3 lets you set options for your target hardware The dialog Options for Target opens via the toolbar icon or via the Project Options for Target menu item In the Target tab you specify all relevant parameters of your target hardware and the on chip components of the device you have selected The following dialog shows the settings for our example We bring the world to you INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 rhydolabz com www rhydolabz com Options for Target Target m Device Target output Listing user Linker Debug utilities MXF founded by Philips LPC2132 Code Generation mx Mode Use Cross Module Optimization Xtal MHz Operating system None Read Only Memory Areas Read Write Memory Areas off chip on chip IROM The following table describes the options of the Target dialog Dialog Item Description Xtal 5 pecifies the external clock frequency of your device Several microcontrollers use an on chip PLL to generate the CPU clock In this case the value is not identical with the XTAL frequency Check your hardware design carefully to determine the correct value Operating Allows you to select a Real Time Operating System for your project System Use On chip Defines the address spaces for the on chip memory components for the linker locater ROM RAM Note that on some devices you need to
22. bring the world to you RTIFICATION ISO 9001 2000 A rhydolabz com www rhydolabz com __ JTAG INTERFACE FOR PROGRAMMING DEBUGGING J TAG explained in this section is the ARM J TAG Debugger Programmer from 91740 Note Connect the J TAG debugger to the development board and make sure that the J TAG J umper in the development board Marked J TAG J 15 is inserted JTAG V3 3 d R34 C19 i 10 10uf 1 Ov TRST Z E 4 R37 R39 R39 109 10K 2 O m This section explains how to interface ARM JTAG wiggler compatible module with ARM evaluation board This is a stable and easy to use device which provides a low cost alternative for programming debugging a target board It supports Remote Debug Interfacing RDI This ARM JTAG module is compatible with H JTAG software which is free software available for H JT AG debugging process Install the H JTAG software in your PC The example screens showed here uses uVision 3V3 50 from Keil Software Before you start downloading and debugging process certain settings have to be configured in Kiel uV Project First create a new Kiel uV project or open an already existing one add the needed program in source group and build it Make sure that the hex file 1s created Now select Flash menu and click Configure Flash Tools in it M O O
23. dard Windows application for project development and can be installed like any standard application uVision3 includes a project manager which makes it easy to design applications for an ARM based microcontroller You need to perform the following steps to create a new project Open Kiel uVision3 Software from start menu or Desktop shortcut Select the Toolset only required for ARM Projects Create Project File and Select CPU Create New Source Files Add Source Files to the Project Set Tool Options for Target Hardware Configure the CPU Startup Code Create a HEX File Vv V Build Project and Generate Application Program Code M O O D Y We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000 rhydolabz com www rhydolabz com The section provides a step by step tutorial that shows you how to create a simple u Vision3 project Protel 99 SE Set Program Access and Defaults Windows Catalog Windows Update Programs Documents IBM Lotus Symphony Internet Explorer Keil uVision3 Keil uVision3 45 OutookExpress P Remote Assistance Topview Device Programmer B E e Windows Media Player i gt Windows Messenger Start BJ la Windows Movie Maker Creating Project File settings Search Help Support Windows XP Professional To create new project file select from the nu Vision3 m
24. e type pad arranged a 4X4 matrix Assume the columns are labeled 1 2 3 4 and the rows A B C D If we assume that all the rows and columns are initially high a keystroke can be detected by setting each row low in turn and checking each column for a zero In the KEYPAD circuit the 8 keypad pins are connected to PortO While coding Pins P0 14 P0 17 should be initialized as outputs and pins P0 10 P0 13 as inputs These input pins are pulled high to logic 1 The output rows are also initially set to 1 If a 1s now output on row A there is no effect on the inputs unless a button in row 15 pressed If these are checked in turn for a a button in this row which is pressed can be identified as a specific combination of output and input bits V3 3 R9 10 010 P011 P012 P013 2 SWPB 014 55 33 o o SW PB RA P015 59 33 2 2 SWPB 016 513 S14 S15 S16 PS 2 L SWPB SW PB SW PB PB R22 P017 330R INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 We bring the world to you rhydolabz com www rhydolabz com 2 SOE EXTERNAL INTERRUPT This development board uses External Interrupt 1 EINTI Button 517 It is connected to PO 14 Note Place jumper on EXT INT J16 pin for the proper functioning of external interrupt V3 3 014 RAO RAI 10K 2K 116 117 fo oH oH EXT INT IP EXT INT 3 5 R45 RTS y
25. enu File New pVision Project This opens a standard Windows dialog that asks you for the new project file name You should use a separate folder for each project You can simply use the icon Create New Folder in this dialog to get an empty new folder Select this folder and enter the file name for the new project eg Projectl uVision3 creates a new project file with the name PROJECTI UV2 which contains a default target and file group name You can see these names in the Project Workspace Files We bring the world to you FICATION ISO 9001 2000 2 rhydolabz com www rhydolabz com Select Microcontroller from Device Database When you create a new project uVision3 asks you to select a CPU for your project The Select Device dialog box shows the pVision3 device database Just select the microcontroller you use For the example in this chapter we are using the Philips LPC 2138 controller This selection sets necessary tool options for the LPC2138 device and simplifies in this way the tool configuration select Device for Target Target 1 CPU Vendor NXP founded by Philips Device 2138 Toolset ARM Data base Description Nordic Semiconductor ARM7TDMI S based high performance 32 bit RISC Microcontroller with Tr 2 se founded by Philips 212KB on chip Hash ROM with In System Programming ISP and In Applic LPC2119 32KB RAM Vectored Intemupt Controller Two
26. ng Method Peu 5 ih v Echo characters locally 4 i H pace n CO shitJls Line delay a miliseconds Standard JIS Emulsion Character delay milliseconds Terminal Setup Telnet terminal 107 0 ASCII Recerang C Append line feeds to incoming line ends Backscroll buffer ines 0 Force incoming data to 7 bit ASCII 0 Play sound when connecting or disconnecting v Wrap lines that exceed terminal width Ga mmm Disconnected Auto detect Auto detect SCROLL AFS Capture Print echo wel We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com Select File 2 Save A s gt Desktop 3 Iryp9 500 HyperTerminal Ww Call Transter La oes De E A 8 Documents My Computer j Nebuork Places canon LASER SHOT LEP 1210 teach urselF etd 2 19200 15200 NEC Soy Shortcut bo go Ehrul ii Computer e doen File MyMetwok _ Session iles Hw wel BM Y We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com 2 SOS MATRIX KEYBOARD A keypad 1s simply an array of push buttons connected in rows and columns so that each can be tested for closure with the minimum number of connections There are 16 keys on a phon
27. nterfacing of which 8 are data pins DBO DB7 and 3 RS RW EN are control pins NENNEN AN VEE contrast DB2 BI 0 NC N N N N N DBS ra 5V C C C C 5V ND MOODY We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000 rhydolabz com www rhydolabz com 22 SOS UNIVERSAL ASYNCHRONOUS RECEIVER TRANSMITTER UART The LPC 2129 microcontrollers comes with two UART modules and UARTI It has only asynchronous no clock connection mode of operation The operates through 0 0 TXD and P0 1 RXD pins while the UARTI uses P0 8 TXD P0 9 pins The LPC 2129 UART output itself operates at CMOS voltages and needs an external serial line driver to convert its output into a higher symmetrical line voltage The MAX 3232 serial driver serves this purpose Note For the UART module to work the ISP J17 and RST J21 Jumpers must be removed TTL lt gt RS232 1 6 8 2 5 v i zen 8 nd L v OF fig le L C23 Ole ole 5 TIIN T1 OUT H P ___0__ T20UT Pi o o E 8 R2 QUT R2 N 2 c RIS 7 MAX3232 v3 8 4 9 5 E D11 R42 4148 RST C3l D13 4148 M O O D Y INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 We bring the world to you rhydolabz com www rhydolabz com 2 SOS C
28. onfiguratior einer ridi 3 Init Scripts ian Frogram rum Programmed and 1 successfully G Programming 1 Verify H Flasher He 00 00 20 1002 7 KB s Size 1 2 KB Erase To 0005 0500005000 4 Blank Address Size Read We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com 22 771 Fy LED BLINK pVision3 E ARM JTAG Led_Blink c Now select Start Stop Debug Session from gle Edt Debug menu in the Keil Software m c Project Workspace zx Target 1 H E Source Group 1 Startup s H Led Blink c LED BLIMK pVision3 E ARM JTAG Led_Blink c 2 File Edit View Project Debug Flash Peripherals Tools 5 5 Window Help ce d E RB S x ER 5 S amp jousoco ss amp gprsmEmm EGENTES 6 File Name ARM JTAG Led_Blink c Register 06 Description This is a sample program of LED blink in which LED is connecte Current 07 ALAA AAA AAA Ro 000010000 08 R1 0028000 09 fincludeclpc213x h R2 040000060 10 R3 0 000004 5 11 define LED 1 lt lt 16 LED is connected to PORT1 16 R4 40000010 12 define LED IO1SET IO1SET LED R5 0540000000 13 define
29. onnection for power and either a serial connection for In system programming or the JTAG connector Use LPC2000 Flash Utility Software at the side for programming through Serial port Connect eCee LPC 2129 Development board to your PC using USB cable for powering it serial cable for In serial programming as shown the figure ie je Note Serial cable should be connected to COMO Port of the development board for downloading Corresponding jumpers has to be inserted see circuit diagram for the functioning of each peripheral CONNECTIONS RS232 USB POWER JTAG We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com 2 SOE PROGRAMMING STEPS eCee NXP LPC 2129 development board supports two modes of programming I AUTOMATIC MODE 1 Configure LPC Flash Utility software at the PC side a Browse your hex file here File Buffer Help b Select Crystal frequency here LPC2000 Flash Utility V2 2 3 C Enable DTR RTS for Reset and boot loader selection p Fish Piooammina Erase Blank Communication d Select your COM port and Set baud rate 9600 here Entire Device COM1 N P Selected Sectors 2 Connect system serial port to COM port of eCee LPC 2129 lse Baul d 3 Put jumper RST J21 ISP J17 and Reset the board TEENS Erase ms 4
30. rd MPLAB IDE Microchip k Canon LASER SHOT LBP 1210 b w Microsoft Office Wor PL 2303 USB Serial Driver k Network Associates 9 K Lite Codec Pack TextAloud Atmel AVR Tools em WinAVR PM We bring the world to you ISO 9001 2000 f rhydolabz com www rhydolabz com New Connection Hyper Terminal File Transfer Helo Connection Description Disconnected Auto detect Auto detect SCROLL CAPS NLIM Canbure Print echa Connect To X rw Enter deads for the phone number thal you want bo dit Countyviegarn eo ciate Case J Eme Oe ow Disconnect the H yper T erminal T hen open the Property from File We bring the world to you 5 9001 2000 rhydolabz com www rhydolabz com File Edit View Call Transfer Help Disconnect Connect HyperTeminal lt Connected 0 00 12 Auto detect Auto detect SCROLL CAPS ppture Print echo 24 9 000 Hyper terminal og 600 Properties Ed Mame t ASCII Setup ASCII Sending Send line ends with line feeds File Dar 5 Funchon strove and chil keys act as Tart System Encoding Method Teminalkeys Windows keys k key sends Select Host System Encodi
31. ritten consent of the copyright owner The information presented in this document does not form part of any quotation or contract is believed to be accurate and reliable and may be changed without notice Rhydo Technologies P Ltd An ISO 9001 2008 Certified R amp D Company Golden Plaza Chitoor Road Cochin 682018 Kerala State India Phone 0091 484 2370444 2371666 Wh Cell 0091 99466 70444 0091 484 2370579 E mail info rhydolabz com sales rhydolabz com h d WebSite http www rhydolabz com r y O M O O D Y We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000
32. ydolabz com FUNCTION MODULE EDZ10 000 3 Regulator RTC LPC 2129 227 1073 3 Crystal i Connector LED LCD Interfacing Eey Board BOARD DC Power female 3932 RESET VARTI 2232 DBS female Connector EXT INT male Connector DAC MOODY We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000 2 rhydolabz com www rhydolabz com INTERFACE OVERVIEW LCD CONTRAST 7 J SERIAL PORT INTERFACE COMO SERIAL PORT _ INTERFACE COMI LCD DISPLAY LED ARRAY USB POWER INTERFACE DC ADAPTER n gt lt gt x PLUG IN _ eS gt a gt 5V REGULATOR IC HEADER BOARD WITH _ LPC2129 amp CIRCUITRY EXTERNAL INTERRUPT wel PM We bring the world to you ISO 9001 2000 rhydolabz com www rhydolabz com PERIPHERALS DESCRIPTION CONI USB J ack CON2 Power JTAG J P1 TAG Connector COMO UARTO Interface via Female DB9 Connector COMI UARTI Interface via Female DB9 Connector LCD CONT LCD Contrast Adjust through Pot CAN PORT CAN Interfacing through Male DB9 LCD1 LCD Display Module HD44780U D1 D8 Light Emitting Diodes 51 516 Matrix Keypad Switches EXT INT S17 External Interrupt Key RESET S18 Reset Key A2DIN R18
Download Pdf Manuals
Related Search
Related Contents
TPP Pipettor Turbo-Fix Bedienungsanleitung FxPro WebTrader - User GE J7912-30" User's Manual Calrad Electronics 40-998-HS video switch Arc - krenotech KRENO sro User Manual PZ244E - Physik Instrumente 工事説明書 MCHV-P1180~P1800A1/AE1形 MCV-P1180 DeLOCK 61898 DataPAF - Driver of DataPAF Energy Counter Protocol User`s Manual Copyright © All rights reserved.
Failed to retrieve file