Home

NGX mX LPC2148-S User Manual

image

Contents

1. mX LPC2148 S Na HER MANUAL TECHNOLOGIES v1 0 30 11 2010 mX LPC2148 S USER MANUAL http shop ngxtechnologies com mX LPC2148 S HSER MANUAL TECHNOLOGIES v1 0 30 11 2010 Table of Contents O Pm ne Pe ere a ee neem 3 Fea ee ee 3 Eegenen 3 O cea 3 Ee oe acts ca caer e A cs ve nl een ee 4 SE A E EE 4 Saa a 4 COS EE 4 EE 5 Walid ating MX LPC2148 S Bol rs A E A Ee i E a EEEn i iNe 5 P gr mming MX LPC2148 S di 9 o Caen ne o E E A 10 mxX LPC214828 Board Ut a ia 10 USB Virtual COM Port Installation For Windows XP 10 Re EEN 12 A A A O A EAEE 15 an 15 iert EE 16 REVISION ii E E E E E S 16 EE 16 PASC TAMMIE TS A AAA dan 16 Trademarks EN 16 http shop ngxtechnologies com 2 mX LPC2148 S Na HSER MANUAL TECHNOLOGIES v1 0 30 11 2010 Introduction The mX LPC2148 S is an add on board to the mX BaseBoard The mX S signifies it as a stamp module for mX BaseBoard The stamp board features LPC2148 from NXP based on ARM 7TDMI Features The mX LPC2148 S is mounted on a board with connecting pins Hardware e 32 Khz crystal for RTC 12 Mhz for Controller e 2x16 with contrast control amp back light s SD Card connector e Power Jack e Power Switch e Reset Button ISP Button External interrupt Button e Buzzer e Audio Jack e 20 pin JTAG header s PS 2 keyboard e VGA connector e Serial Connector 0 e Serial Connector 1 e Preset for ADC On board EEPROM
2. USBBL and SW4 RESET then release SW6 first and finally SW4 Now the pre loaded USB boot loader allows you to enumerate the board as a Mass Storage Device Drag the compiled binary file and http shop ngxtechnologies com 12 mX LPC2148 S USER MANUAL v1 0 TS 30 11 2010 drop onto the device and reset the board using SW4 and the firmware executes Note USB boot loader firmware is provided as NGX_LPC2148 BT LDR hex only Steps involved in making your KEIL project compatible with the pre loaded USB boot loader in mX LPC2148 S 1 As shown in the figure below Open the p Vision IDE and go to Flash gt Configure Flash Tools gt Target D I LPC2148H_USBBL pVision4 Elle Edit View Project Flash Debug Peripherals Tools SVCS Window Help BF kA Ga PE Download E ASA As Qi e 0 0 DA 2152 KS Project Configure Flash Tools Fay LPC2100 S 7 LPCZ14x definitions Startup Code ze E p s h amp sy de pr c2000_spi h So 06 include Es 07 include d D I ps2kbd c 08 include 09 include usbapi h 10 include lpc _config h n 12 13 L 14 void hardware_init void VS 16 303 3 sets port i and O to fast mode not compatable with previous LPCs 17 test_led 18 vVCOM_ init 19 SPI_Init 20 init_uarto oo 21 delay 30000 E Abstract txe ECH 23 L 24 ant main void 201 26 US ch 0 27 28 har
3. e GPIO brought to male header pins Note Features are dependent on the stamp Software Precompiled firmware to test the peripherals on the mX BaseBoard with stamp is preloaded and available here http shop ngxtechnologies com 3 mX LPC2148 S USER MANUAL J T gt e v1 0 TECHNOLOGIES 30 11 2010 Getting Started Before starting you would need the following things handy and ready Requirement The requirement is put in two sections Hardware e Power adapter rating 7 5 V 1 AMP s SD card USB mini cable e Serial cable e PS 2 Keyboard e Headphones Speaker Software e PC with Linux OS Windows XP OS e Use minicom as terminal software HyperTerminal Setup Hardware The mX LPC2148 S board should be mounted on the board with a particular alignment Note Improper mounting of the stamp board on mX BaseBoard may damage the stamp board and the mX BaseBoard The GND pin on stamp board should be aligned with the pin 1 of P9 female header on BaseBoard Refer to the marking as shown in the image below base board reva 2 http shop ngxtechnologies com 4 mX LPC2148 S USER MANUAL v1 0 30 11 2010 Pi um aoe anes are ane ae a o ao ae a a a a a e K Software s PC with WINDOWS XP e Hyperterminal The mX LPC2148 S comes with a USB bootloader and the binaries from NGX Technologies to validate the mX BaseBoard Validating mX LPC21
4. To program in Manual mode you need a half serial cable which just has TX RX and GND wire connected connect the serial cable to UARTO J4 and power the board To make the board enter programming mode e Hold down SWS ISP and SW4 RESET then release SWS first and finally SW4 http shop ngxtechnologies com 9 mX LPC2148 S Na A MANUAL TECHNOLOGIES v1 0 30 11 2010 e The controller enters the bootloader mode if during reset the SW5 pin is low Programming and Debugging with JTAG The mX LPC2148 S can be programmed and debugged either using parallel port or USB JTAG e NGX Parallel Port JTAG using H JTAG refer here e NGX USB JTAG Appendix mX LPC2148 S Board Utilities For working with mX LPC2148 S board there are certain tools that need to be installed The tools required are Flash Magic Tool The flash magic tool can be downloaded from the following link http www flashmagictool com H JTAG http www hjtag com For LINUX machines you may use http www pjrc com arm lpc2k_pgm Tool chain To be able to generate the hex or the binary file the user needs to install the tool chain for ARM based microcontrollers Any toolchain can be used as long as it is able to generate the necessary files for downloading onto the mX LPC2148 S Here are few toolchain suggestions GNUARM Toolchain http winarm scienceprog com winarm tools prepare gnuarm compiler toolchain for windows html Crossworks IDE http www rowl
5. folder obj in the project folder so the user commands goes like obj firmware axf Schematics Refer to the documentation here Sample Code Download the zipped file here http shop ngxtechnologies com 15 mX LPC2148 S Na USER MANUAL v1 0 TECHNOLOGIES 30 11 2010 Information Revision History version v1 0 author Milind Kakati Legal NGX Technologies Pvt Ltd provides the enclosed product s under the following conditions This evaluation board kit is intended for use for ENGINEERING DEVELOPMENT DEMONSTRATION EDUCATION OR EVALUATION PURPOSES ONLY and is not considered by NGX Technologies Pvt Ltd to be a finished end product fit for general consumer use Persons handling the product s must have electronics training and observe good engineering practice standards As such the goods being provided are not intended to be complete in terms of required design marketing and or manufacturing related protective considerations including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards This evaluation board kit does not fall within the scope of the European Union directives regarding electromagnetic compatibility restricted substances RoHS recycling WEEE FCC CE or UL and therefore may not meet the technical requirements of these directives or other related directives The user assumes all responsibility and liabili
6. 48 S Board Once you have all these accessories connected to the mX BaseBoard you can run a simple test to verify the proper working of all the peripherals It is highly recommended that you test all the peripherals as soon you receive the BaseBoard The mX LPC2148 S is shipped with the preloaded bootloader firmware and binaries to test all the peripherals When you receive the mX LPC2148 S board it will be loaded will firmware for all peripherals On connecting the power supply a default message will appear on LCD The interfaces are activated in the following manner LED D1 on stamp Ext Int LCD keyboard UARTO UART 1 DAC ADC EEPrROM Virtual COM port on USB LED The LED D1 on the stamp board blinks for a few times User Interface Switch Ext Int The Switch SW6 is connected to one of the external interrupt line of controller To test this interface simply press the switch and you should hear the beep sound on the buzzer This confirms that both the interrupt line and the buzzer module are working fine LCD display A default message NGX TECHNOLOGIES will be displayed and later status of SD MMC and DC is displayed The back light of LCD can be controlled by connecting jumper to appropriate http shop ngxtechnologies com 5 mX LPC2148 S Na USER MANUAL v1 0 TECHNOLOGIES 30 11 2010 pins of JP5 The contrast of LCD can be varied using the POT R19 PS 2 keyboard To enable PS 2 connect jumper to J2 Connect
7. Data bits 8 Parity Stop bits Elow control Restore Defaults Click OK Next an empty BlueBoard Hyper Terminal window opens as shown Now make sure that the BlueBoard is powered and the serial port is connected to the respective port to be tested UARTO or UART1 By pressing any key from keyboard the same will be echoed back on the terminal BlueBoard Hyper Terminal Eile Edit View Call Transfer Help ile Connected 0 00 06 Auto detect Auto detect For UARTO J4 For UARTI J5 http shop ngxtechnologies com 7 mX LPC2148 S Na eee TECHNOLOGIES v1 0 30 11 2010 BlueBoard HyperTerminal Eile Edit View Call Transfer Help Da es 3 soe Testing UARTO NGK s BlueBoard BlueBoard Revision Firmware Version 1 For more information on BlueBoard visit www ngxtechnologies com Testing UARTO NGK s BlueBoard BlueBoard Revision 1 Firmware Version 1 For more information on BlueBoard visit www ngxtechnologies com_ Connected 0 00 46 Auto detect 38400 8 N 1 UARTO can also be used for serial programming If the selected bootloader mode is Manual then Half modem cable should be used else if it is in Auto mode use full modem cable Note that after programming in auto mode the serial cable should be disconnected Audio jack DAC Connect a headset to the audio jack U4 connector You should hear some random sound The sound is heard only for few secon
8. a PS 2 keyboard to this connector Now press any key on the keyboard The user can see which key he she has pressed on the LCD UARTO UARTI1 Open the hyper terminal as shown in the below image To test the UART you can use either a full modem or half modem cable E Accessibility gt E Entertainment gt ei System Tools gt Address Book Calculator Command Prompt Notepad Paint gt HyperTerminal Program Compatibility Wizard a Network Connections Synchronize 2 Network Setup Wizard Tour Windows XP la New Connection Wizard All Programs Windows Explorer Y Remote Desktop Connection Ww ic a y ei a Ei WordPad 2 Wireless Network Setup Wizard Da Communications Ue E HyperTerminal 32 Scanner and Camera Wizard Click on hyper terminal a Connection Description window opens Enter a name under the name tab e g BlueBoard and click OK Connect To B BlueBoard Enter details for the phone number that you want to dial Country region Area code 31 Phone number Connect using com E http shop ngxtechnologies com 6 mX LPC2148 S Na USER MANUAL TECHNOLOGIES v1 0 30 11 2010 A Connect To window opens where you have to select the COM port In this example it is COM1 Click OK A COM 1Properties window appears Set the values as shown below Click OK COM1 Properties Port Settings Bits per second 38400
9. any convenient folder Plug in the device A Hardware Update Wizard opens up Select the second option as shown and Click Next Note If the wizard does not open up automatically then the user needs to go the Device Manager window and right click on the device and select update driver E Computer Management A Eile Action View window Help e 2 LS Computer Management Local E r ABHI System Tools Y Computer Es Event Viewer Disk drives Shared Folders a Display adapters E Local Users and Groups 4 DYD CD ROM drives Performance Logs and Alerts 133 Floppy disk controllers gt Device Manager J Floppy disk drives Sy Storage 3 IDE ATAJATAPI controllers Removable Storage ca IEEE 1284 4 compatible printers Disk Defragmenter Disk Management c a IEEE 1284 4 devices Se Services and Applications Keyboards eee Be Be Hotbot el s Imaging devices Mice and other pointing devices Monitors S Network adapters Ports COM amp LPT SB Processors 8 Sound video and game controllers E System devices E Universal Serial Bus controllers http shop ngxtechnologies com 11 mX LPC2148 S Na USER MANUAL TECHNOLOGIES v1 0 30 11 2010 Set the new hardware Wizard to search a specific location for the driver and specify the folder containing usbser inf The Wizard will prompt for the location of usbser sys Specify its location i e C WINDOWS syste
10. ds after power ON or RESET ADC The ADC is connected to a potentiometer R14 To test the ADC turn the potentiometer as the position varies the output number on the LCD varies USB Before moving ahead with this section refer to USB Virtual COM Port Installation for Windows XP section Connect the USB cable to USB connector The USB enumeration can be checked in device manager The mX LPC2148 S enumerates as a Virtual COM port To test the Virtual COM port we can test it as we tested the UARTO 1 of mX LPC2148 S JTAG connector To enable debugging on the board connect jumper to P8 and connect the JTAG to debug port We have successfully tested the mX LPC2148 S with JTAG interface using a Wiggler Clone JTAG To test this feature you need to have the necessary software support on your PC http shop ngxtechnologies com 8 mX LPC2148 S Na PES MANUAL TECHNOLOGIES v1 0 30 11 2010 Buzzer Connect jumper to JP1 when the board is turned on or RESET you will hear a beep after few seconds This is how the user can confirm the status of the Buzzer SD MMC connector Insert a SD card in the SD card holder U1 the status of the SD card will be displayed on LCD upon power cycle or reset of the mX LPC2148 S If the SD card is inserted properly SD card OK is displayed on LCD else it displays SD card Not OK The board was tested with a Kingston s 1GB SD card Note The SD MMC card being tested should be format
11. dware_init 29 while 1 30 a if get_USB_enumeration_status 32 t 33 if VCOM_read sizeof ch sch 34 t 35 test_usb 36 D 37 gt Der Gu Or Osten 38 if uartOReceive sch sizeof ch 1 Build Output Build get LPc2100 1 Prog Code 9696 RO data 504 RU data 72 ZI data 3472 FromELF creating hex file 2 Change the start address of on chip IROM1 memory from 0 to 0x2000 as shown in figure below This is the area where user program is placed and has to run when the controller is reset http shop ngxtechnologies com 13 mX LPC2148 S HSER MANUAL TECHNOLOGIES v1 0 30 11 2010 Y LPC2148H_USBBL pVision4 File Edit view Project Flash Debug Peripherals Tools SYCS Window Help ep SCH LPC2100 include lt LPC214x LPC214x definitions y Startup Code include type h E Startup s include uart h BS System Calls finclude vcorm h w LEI Retarget c include lpc2000 LG EN Source Code w L main c E s2kbd c E xtISR c art_isr c i Code Generation DPI ircular_buF c Xtal MHz 12 0 APH Mode COM c ee isbcontrol c Operating system None T Use Cross Module Optimization iV Use MicroLIB F Big Endian isbstdreq c I Use Link Time Code Generation ae c x Read Only Memory Areas Read white Memory Areas S default off chip Start Size Startup default off chip S
12. ey co uk arm IAR Systems http www iar com Build your own GCC compier http www forum ngxtechnologies com viewtopic php f 3 amp t 5 Debug with OpenOCD http www forum ngxtechnologies com viewtopic php f 3 amp t 12 USB Virtual COM Port Installation For Windows XP The USB in mX LPC2148 S might not get enumerated if it does not find the appropriate driver for it To check USB enumeration status Right Click on My Computer icon and select Manage A Computer Management window opens In this select Device Manager as shown below The device uses the usbser sys driver This driver file is not unpacked in Windows by default and needs to be extracted from a Windows cab file which should be in the C WINDOWS Driver Cache i386 directory for Windows XP SP2 Change directory to C WINDOWS Driver http shop ngxtechnologies com 10 mX LPC2148 S Na HSER MANUAL TECHNOLOGIES v1 0 30 11 2010 Cache i386 expand the CAB file by running the below command in Command Prompt expand sp2 cab f usbser sys C WINDOWS system32 drivers Note On some systems like the XP home edition extraction of driver files from cab files might not be supported In such situation the user can download the usbser sys file from http blueboard lpc214x googlecode com files usbser sys and copy it to C WINDOWS system32 drivers folder Next download the usbser inf file from http blueboard lpc214x googlecode com files usbser inf Place it in
13. formation and shall have no liability for the consequences of use of such information NGX Technologies reserves the right to make changes to information published in this document at any time and without notice including without limitation specifications and product descriptions This document replaces and supercedes all information supplied prior to the publication hereof Trademarks All referenced trademarks product names brands and service names are the property of their respective owners http shop ngxtechnologies com 16
14. m32 drivers and Click Next The installation should now complete and indicate the device has been installed The device should now get enumerated under Ports COM LPT option in Device Manager window To test the USB interface open Hyper Terminal by selecting the COM port specified by the system The COM port number assigned to the USB serial device is not fixed and can change To know the current COM port number the user needs to look into the Device Manager page under Ports COM amp LPT After selecting the appropriate COM PORT press any key on keyboard a message will be displayed in the hyper terminal window as shown below This confirms that the USB interface on the mX LPC2148 S is fine BlueBoard HyperTerminal Eil Edit View Call Transfer Help ile Testing USB NGK s BlueBoard BlueBoard Revision Firmware Version For more information on BlueBoard visit www ngxtechnologies com_ Connected 0 00 09 Auto detect 38400 8 N 1 USB Boot loader The mX LPC2148 S comes pre loaded with the USB boot loader firmware With the USB boot loader you can simply drag and drop your compiled binary file onto the device as you would with any USB flash drive and it will update itself accordingly Serial port is not required for flashing To make the board enter boot loader mode follow the steps below How To Enter USB Boot Loader Mode After loading USB boot loader firmware to the mX LPC2148 S hold down SW6
15. tart Size Nolnit Documentation LA Abstract txt ROM1 RAMI TC Rame r P RAM3 on chip on chip Imom1 02000 imama 040000000 0x8000 3 mama coma _ oome test_usb gt if uart Receive sch sizeof ch 1 3 Here in fig as below Go to Flash gt Configure Flash Tools gt User Options for Target Target 1 Device Target Output Listing User cze Asm Linker Debus Utilities Run User Programs Before Compilation of a C C File Run 1 Run User Programs After Build R ebuild V Run 1 fromelf bin objSfirmware af o obj firmware bin TT Run 2 V Beep When Complete Start Debugging http shop ngxtechnologies com 14 USER MANUAL TECHNOLOGIES v1 0 30 11 2010 Insert the user command in Run 1 ticking the check box After compile and build the entire project from elf it creates a hex file along with the hex file there will be another file with the extension axf This user command is used to convert axf file to bin Here in fig above firmware axf is converted to firmware bin which is used for drag drop programming with the USB boot loader that allows you to enumerate the board as a Mass Storage Device Note The location of axf file in the user command must be same where its located in the project folder In the fig above the default location of axf file is
16. ted with FAT file system Not FAT32 or NTFS format PC EEPROM On the board at U8 a EEPROM with I C interface is present The firmware tests it and diplays PC FLASH PASS Before moving ahead with this section refer to USB Virtual COM Port Installation for Windows XP section Connect the USB cable to USB connector The USB enumeration can be checked in device manager The mX LPC2148 S enumerates as a Virtual COM port To test the Virtual COM port we can test it as we tested the UARTO 1 of mX LPC2148 S Programming mX LPC2148 S mX LPC2148 S can be programmed through NGX prallel port JTAG NGX USB JTAG or through serial port using Flash Magic Flash Magic is a freeware windows utility used download the hex file format onto the board Flash Magic can be downloaded from here http www flashmagictool com If your PC does not have a serial port use a USB to serial converter to download the hex file using the Flash Magic utility For programming with JTAG your system should have a parallel port or you can use the USB to JTAG from NGX Technologies and the supporting IDE which can communicate to the processor core over JTAG interface We have successfully tested mX LPC2148 S with wiggler clone JTAG and USB JTAG with CrossWorks IDE A LINUX utility to download the hex file can be found here http www pjrc com arm Ipc2k_pgm Programming mX LPC2148 S Through ISP The mX LPC2148 S can be programmed through ISP in Manual Mode
17. ty for proper and safe handling of the goods Further the user indemnifies NGX Technologies from all claims arising from the handling or use of the goods Due to the open construction of the product it is the user s responsibility to take any and all appropriate precautions with regard to electrostatic discharge EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES NGX Technologies currently deals with a variety of customers for products and therefore our arrangement with the user is not exclusive NGX Technologies assumes no liability for applications assistance customer product design software performance or infringement of patents or services described herein Please read the User s Guide and specifically the Warnings and Restrictions notice in the User s Guide prior to handling the product This notice contains important safety information about temperatures and voltages No license is granted under any patent right or other intellectual property right of NGX Technologies covering or relating to any machine process or combination in which such NGX Technologies products or services might be or are used Disclaimers Information in this document is believed to be reliable and accurate However NGX Technologies does not give any representations or warranties expressed or implied as to the completeness or accuracy of such in

Download Pdf Manuals

image

Related Search

Related Contents

Agio Captured Glass Occasional Table Assembly Instruction  [Unlocked] ステンレスユニットシェルフ ステンレス棚セット組立・取扱説明書    USER'S MANUAL  Zetasizer Manual    Denver TAC-70051 4GB Black tablet  取扱説明書/3.2MB  AG Neovo RX-55    

Copyright © All rights reserved.
Failed to retrieve file