Home
"user manual"
Contents
1. Restore Debug Session Settings v Breakpoints w Toolbox v Watch Windows amp Perfomance Analyzer v Memory Display CPU DLL Parameter SARMCM3 DLL MPU Dialag DLL Parameter pc DLL pCM4 7 Load Application at Startup V Run to main Initialization File intemal SRAMini H Edit Restore Debug Session Settings v Breakpoints v Toolbox V Watch Windows I Memory Display Driver DLL Parameter SARMCM3 DLL MPU Dialog DLL Parameter Fig 30 Step 2 Next Click on the settings option the Cortex M Target Driver Setup window opens then select SW port After selection of the SW port the ULINK2 detected is as shown in the image below 26 www nextechnologies com User Manual LPC4330 Xplorer Device Target Output Listing User C C Asm _ Linker eal Use Simulator Debug ji Flash Download 1 ULINK USB JTAG SW Adapter E m ULINK Version ULINK2 Ue Device Family Cort Cortex M ovn rene v1 42 f Automatic Detection ID CODE Manual Configuration Device Name Add Delete Update IF len Note The Cortex M4 can be programed using SW or JTAG while the Cortex MO is visible through JTAG port 4 3 1 Configuring External Quad Flash Step 1 Open the Keil Workspace then by clicking on the target option the widow opens as shown below Click on Utilities and select ULINK2 ME Cortex Debugger Gh Options for Target SPI SANET Device
2. Target Output Listing User C C Asm Linker Debug Utilities Configure Flash Menu Command Use Target Driver for Hash Brograrming Fig 32 27 www ngxtechnologies com User Manual LPC4330 Xplorer Nia Step 2 Now Click on Settings then in Cortex M Target Driver setup click add and select SPIFI on LPC18xx 43xx 14000000 Flash programing algorithm and click add K Options for Target SPIF 32MB Debug Configure Flash Menu Command f Use Target Driver for Flash Programming ULINK2 ME Cortex Debugger gt Settings Update Target before Debugging sk Cortex M Target Driver Setup Use Edu Debug Trace Fash Download Descriptio M052 8 amp 6 Hash AP M054 16kB Hash AP M058 32kB Hash AP M Hash User Contig MiS 46 Flash Data MiS 4B Flash LD RCZEF640J3x Dual Flash RM4 Lx 2MB Flash RM Lxxx 3MB Flash S25JL032H_BOT Hash S295L032H_TOP Flash SSFMO2AG 16k6 Data Hash SSFMO2AG 3846 Prog Hash S3FMO2G Smart Option SPIFI on LPC Tio 4da 1 Ext Hash SPI SPIFI on LPC Tieu Ado 28 Eat Flash SPI es EE L erag 41111 Co Fig 33 Click OK to complete the ULINK2 Debugger configuration 28 www nextechnologies com User Manual LPC4330 Xplorer 5 0 LPC4330 Xplorer firmware Development 5 1 Executing the sample projects Please note that the sample programs are available once the product is registered Steps to execute the sample project in Internal SRA
3. Display adapters b 8 DVD CD ROM drives b ie Human Interface Devices gt Eg IDE ATAYATAPI controllers gt Keyboards JA Mice and other pointing devices L Monitors gt Network adapters n NXP LPCl amp xx VCOM gt t a F Ports COM amp LPT Communications Port COM1 B Processors 4 Sound video and game controllers JE System devices b Universal Serial Bus controllers Fig 4 P 15 a Nagaraj PC gt qE Computer Disk drives Display adapters b qi DVD CD ROM drives b a Human Interface Devices gt Eg IDE ATA ATAPI controllers b Keyboards P E Mice and other pointing devices Monitors gt KP Network adapters lp Other devices date Driver Software Uninstall gt BD Processors gt Sound video an b qH System devices p Universal Serial be Scan for hardware changes Properties Launches the Update Driver Software Wizard for the selected device 10 Fig 5 www nextechnologies com User Manual LPC4330 Xplorer Step 3 Click on Browse my computer for driver software Computer Management E Zla ip 2 F _ Update Driver Software Da LPC18xx VCOM How do you want to search for driver software gt Search automatically for updated driver software Windows will search your computer and the Internet for the latest driver software for your device unless you ve disabled this feature in your device
4. Pleaze read the following license agreement carefully Tools by ARM To continue with SETUP vou must accept the terns of the License Agreement To accept the agreement click the check bos below END USER LICENCE AGREEMENT FOR MDK ARM THIS END USER LICENCE AGREEMENT LICENCE IS A LEGAL AGREEMENT BETWEEN YOU EITHER A SINGLE INDIVIDUAL OR SINGLE LEGAL ENTITY AND ARM LIMITED CARM FOR THE USE OF THE SOFTWARE ACCOMPANYING THIS LICENCE ARM 15 ONLY WILLING TO LICENSE THE SOFTWARE TO YOU ON CONDITION THAT YOU ACCEPT ALL OF THE TERMS IN THIS LICENCE BY CLICKING AGREE OR BY INSTALLING OR OTHERWISE USING OR COPYING Kel pVisiond Setup Back NewS Cancel Fig 25 23 www nextechnologies com User Manual LPC4330 Xplorer Step 4 Provide the destination path and Click on Next Folder Selection gt KE j L Select the folder where SETUP wall install files Tools by ARM SETUP will install vision in the following folder To install to this folder press Next To install to a different folder press Browse and select another folder Browse Kell pvisiond Setup lt lt Back Cancel Fig 26 Step 5 Fill your Personal information and Click on Next Setup MDK ARM V4 23 Customer Information gt KE L Please enter your information Tools by ARM Please enter your name the name of the company for whom you work and your E mail address First Mame abc BIZ Cofapan
5. a NGK Technologies LPC4330 Xplorer Peripheral test MCU LPC43xx Core ARM CORTEK M4 Communicate via USB YCOM H FE FE FE FE FTE FE HE WE FTE HE FE FE FE FE FE FE FE FE FE FE FE FE FE WE W W W WE HE H HE HE WE WE WE WE WE WE WE PE FE WE FE FE FE DE FE FE FE FE FE FE HE JE JE JE HE JE WE HE HE WE WE WE WE WE WE HE WE HE JE JE EE HE HE HE HE H User input detected ie nee ae LPC4338 Xplorer peripherals Please wait b I ernet PHY detected and initialized u address of LPC4330 Xplorer is 192 j g 1 iting data to Kaer 1 of SD card and verifying Verified Writing data in Multitransfer mode and verifying Verified measure continuous read speed read speed 516 kB s measure continuous write speed lwrite speed 181 kB s Audio codec detected and initialized Jest iteration 300 Connected 00 00 45 Auto detect 9600 8 N 1 Fig 18 19 www nextechnologies com User Manual LPC4330 Xplorer N RA TECHNOLOGIES The Ethernet interface can be verified by either using a PING command in the windows command prompt s C Windows system32 cmd exe Microsoft Windows Version 6 1 7681 Copyright tc 20609 Microsoft Corporation All rights reserved Co Users NGalseping 192 168 1 1235 Pinging 192 168 1 123 with 32 bytes of data 192 168 1 123 bytes 32 time 165ms TITL 64 192 168 1 123 bytes 32 time 3ims TIL 64 Reply from 192 168 1 123 bhytes 32 time 28ms TITL 64 Reply from 192 168 1 123 b
6. applications having higher current requirements we recommend to use an external power supply Please note that the external power supply is not a part of standard delivery 3 3 Verifying all the peripherals on LPC4330 Xplorer The following section focuses on the verification of all the peripherals supported on the LPC4330 Xplorer The order of the tests is mentioned in the same manner as the flow of the test firmware We highly recommend that you follow the order of the test The test firmware is designed in a manner that the user needs to spend as minimum time as possible to verify all the on board peripherals The test firmware executable resides on the Quad Flash The BOOT select switch is configured to execute from the Quad Flash interface Note The test firmware Debug Messages or flow might be changed in due course Generally these are only cosmetic changes so that the usage is easier If you observe a different message than the one mentioned in the Manual do not worry and please proceed with the test Important Note The user needs to press the RESET switch twice to be able to reset the controller This is due to the issue with the silicon Please note that if you power up the board then it would have been reset once power on reset and in this case you need to press the RESET switch only once for the controller to reset In situations where the Xplorer is powered up and running a firmware and you wish to reset the controller one need
7. installation settings gt Browse my computer for driver software Locate and install driver software manually Fig 6 Step 4 Left click on Browse Select lpcl8xx vcom inf driver folder and then click on OK A t Update Driver Software NXP LPC18xx VCOM Browse for driver software on your computer Search for driver software in this location F Xplorer_usb_16_3 Example_VirtualSerial 7 Include subfold nclude subfolders Browse For Folder Select the folder that contains drivers for your hardware gt J SDIO gt J UART gt Let me pick from a list of d i This list will show installed driver so i software in the same category as the 4 di USBDEV Fig 7 11 www ngxtechnologies com User Manual LPC4330 Xplorer Step 5 Click on Next to continue driver installation Browse for driver software on your computer Search for driver software tn this location FX plorer_release LPC1830 Xplorer PDL Examples com Include subfolders gt Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device Fig 8 Step 6 Click on Install this driver software anyway gt Don t install this driver software You should check your manufacturer s website for updated driver software for your device gt Install this driver software anyway Only install driver so
8. 330 Xplorer GND 3V3 VIN 5V USB_5V VBAT NC RESET NC MOSI1 NC MISO1 NC SSEL Bkk NG ug TD pd USB1_DM USB1_DP sen em U1_TXD I2C1_SDA SGPI012 U1 RXD 2C1 SCL SGPIO13 SGPIO15 GPIO5 7 GPIO0 2 SGPIO2 SGPIO9 GPIOD 9 GPIOS 0 SGPIO4 l 11 GPIOD 3 SGPI03 ADCO 1 GPIO1 19 ADCO 2 GPIO1 12 ADCO 3 we GPIO1 1 SGPIOO GPIOO O 3 GPIO3 7 NC 15 GPIO3 5 GPIO1 9 peg GPIO1 10 GPIOO 7 GPIOO 1 SGPIO1 GPIOO 14 GPIOS 1 SGPIO5 SGPIO7 GPIO 4 GND 5 www nextechnologies com User Manual LPC4330 Xplorer 2 5 LPC4330 description The LPC4330 is an ARM Cortex M4 based digital signal controller with an ARM Cortex M0 coprocessor designed for embedded applications requiring signal processing The ARM Cortex M4 core offers single cycle Multiply Accumulate and SIMD instructions and a hardware floating point unit to Support signal processing while the MO coprocessor handles I O and digital control processing The LPC4330 includes 264 KB of data memory two High Speed USB 2 0 Host OTG Devices advanced configurable peripherals such as the State Configurable Timer SCT Serial General Purpose I O SGPIO and SPI Flash Interface SPIFI as well as Ethernet an external memory controller and multiple digital and analog peripherals Features e ARM Cortex M4 processor running at frequencies of up to 204 MHz e ARM Cortex M4 built in Memory Protection Unit MPU supporting eight regions e
9. ARM Cortex M4 built in Nested Vectored Interrupt Controller NVIC e Hardware floating point unit e Non maskable Interrupt NMI input e JTAG and Serial Wire Debug SWD e System tick timer e ARM Cortex M0O co processor running at frequencies of up to 204 MHz e 264kB SRAM for code and data use e Two 32 kB SRAM blocks with separate bus access e 32 kB ROM containing boot code and on chip software drivers e 32 bit One Time Programmable OTP memory for customer use e Serial GPIO SGPIO interface e State Configurable Timer SCT subsystem on AHB e Quad SPI Flash Interface SPIFI with four lanes and up to 40 MB per second e 10 100T Ethernet MAC with RMII and MII interfaces and DMA support e One High speed USB 2 0 Host Device OTG interface with DMA support e One High speed USB 2 0 Host Device interface with DMA support e One 550 UART with DMA support and full modem interface e Three 550 USARTs with DMA and synchronous mode support e One C_CAN 2 0B controller with one channel e Two SSP controllers with FIFO and multi protocol support e One SPI controller e One Fast mode Plus 2C bus interface with rates of up to 1 Mbit s e One Fast mode I2C bus interface e Two 2S interfaces e External Memory Controller EMC supporting external SRAM ROM flash SDRAM e Secure Digital Input Output SDIO card interface e Eight channel General Purpose DMA GPDMA controller e Up to 49 General Purpose Input Output GPIO pins e Four general pu
10. H Ipc43 0 gpio c 075 CGU_Init H Ipc43 _scu c 076 lt 3 Main 077 H Gpio_LedBlinky c 078 2 4 Readme 079 scu pinmux 0x2 11 MD PUP FUNCO P2 11 GPIO1_ 11 Xplorer BOARD LED3 G abstracto 080 GPIO SetDir LED1_PORT 1 lt lt LED1_BIT 1 081 GPIO ClearValue LED1 PORT 1 lt lt LED1 BIT 082 scu_pinmux 0x2 12 MD PUP FUNCO P2 12 GPIO1 12 Xplorer BOARD LED4 083 GPIO_SetDir LED2_ PORT 1 lt lt LED2_ BIT 1 084 GPIO ClearValue LED2 PORT 1 lt lt LED2_ BIT 086 M3Frequency is automatically set when SetClock BASE_M3_ CLK was called 087 SysTick_Config CGU_GetPCLKFrequency CGU_PERIPHERAL M4CORE 1000 Generate interrupt 1000 Hz 089 while 1 090 Loop forever 091 msec 100 092 while msec 093 GPIO ClearValue LED1_ PORT 1 lt lt LED1_BIT 094 msec 100 095 while msec 096 GPIO ClearValue LED2_PORT 1 lt lt LED2_BIT 097 GPIO SetValue LED1 PORT 1 lt lt LED1 BIT 098 msec 100 099 while msec 100 GPIO SetValue LED2_ PORT 1 lt lt LED2_BIT 3 APF Oy Te ULINK2 ME Cortex Debugger L 91 C125 CAP NUM SCRL OVR R W Fig 35 29 www nextechnologies com User Manual LPC4330 Xplorer Nia 4 If you are using ulink debugger click Debug on menu bar then click on start stop debug session click Run F5 to execute from the Internal SRAM two LED s D2 and D3 on Xplorer should blink Steps to execute the sample pro
11. M 1 Open the project folder 2 Then open the file project_name uvproj Example Gpio_LedBlinky uvpro ll EM K u Examples GPIO Gpio_LedBlinky Keil gt Search Keil P Organize Open Burn New folder Fil r Favorites Internal SRAM File folder H Desktop Libraries amp Documents a Music Gpio_LedBlinky uvopt li B Pictures UVOPT File 16 1 KB SPIFI 32MB Debug File folder Bl Videos B Nagaraj Gpio_LedBlinky uvproy HViston4 Project H Co TOUTE j Computer 31 7 KE amp os c BERES i _ Gpio_LedBlinky_Internal SKAM dep hiex DVD RW Drive D LPC1800 V4 DEP File coy New Volume F 5 81 KB a Local Disk G bo Gpic_LedBlinky_SPIFI 32MB 4 Gpio_LedBlinky uvproj Date modified 27 03 2012 PM 03 35 a uViston4 Project Size 31 7 KB Fig 34 3 This launches the IDE FA Xplorer_release LPC4330_Xplo pP Stet th File Edit View Project Flash Debug Peripherals pio_LedBlinky Ke SVCS Window Help Tools Oa a aal e M M M SSE 75 menu Fat Ql e fo eal S E Internal sram Ga S Project q Sg 5 29 Internal SRAM 067 param in None a 5 5 Startup 068 return int i A startup_LPC43x s 069 FR s ri ae CMSIS CM3 070 uint32_t tempx tempy EA system_LPC43xx on i Drivers 072 int c_entry void Main Program e 073 a pen cgur 074 SystemInit
12. User Manual LPC4330 Xplorer le 6 6 4 8 eri Designed by NGX ond nNxp R23 9 e TFATP54E C23 FR agii l a t t www ngxtechnologies com User Manual LPC4330 Xplorer About NGX Technologies NGX Technologies is a premier supplier of development tools for the ARM7 ARM Cortex MO M3 and M4 series of microcontrollers NGX provides innovative and cost effective design solutions for embedded systems We specialize in ARM MCU portfolio which includes ARM7 Cortex M0O M3 amp M4 microcontrollers Our experience with developing evaluation platforms for NXP controller enables us to provide solutions with shortened development time thereby ensuring reduced time to market and lower development costs for our customers Our cost effective and feature rich development tool offering serves as a testimony for our expertise cost effectiveness and quality Contact Information NGX Technologies Pvt Ltd No 216 5th main Road R P C Layout Vijayanagar 2nd Stage Bangalore 560 104 Phone 91 80 40925507 email sales ngxtechnologies com 2 www ngxtechnologies com User Manual LPC4330 Xplorer Table of Contents OTN OT TIO N a a R aeeseaaw mn name 4 20 LPC4330 Xplorer OVBIVIGW 24asabessasskassk stbasakavssekab kskabanahkasak kakatskaa banna aaie niniin 4 AANA 1016 O n EE EE E E E E E ote noeuy eee ae eee sso oceans 4 PPA aE E E E E E T 4 2 F BLOCK DIAGRAM aticeacucsditeas ena stuetteaetundteu
13. ation amp Configuration of KEIL software The Installation of KEIL software is explained below Step 1 Open the keil setup Gi K Computer New Volume F x gt oo Organize Open Burn New folder UY Favorites L HI Desktop al m Downloads ae R zE Gran NonTechni Technical MDE c eo age Recent Places J Is un as administrator Troubleshoot compatibility Libraries 7 Zip b Ex Documents i Select Left File for Compare a Music A TortoiseSVN gt Pictures Videos Add to archive Add to MDK423 rar jH Computer Compress and email amp 05 C Compress to MDK423 rar and email DVD RW Drive D h Pin to Taskbar cow New Volume F Pin to Start Menu Restore previous versions Gia Network eee Send to Cut Fig 23 22 www ngxtechnologies com User Manual LPC4330 Xplorer Step 2 Click on Next Setup MDK ARM V4 23 ox Welcome to Keil p ision KE L Release 12 2071 Tools by ARM This SETUP program installs MDK ARM 14 23 This SETUP program may be uted to update a previous product installation However you should make a backup copy betore proceeding Ik is recommended that vou exit all Windows programs before continuing with SETUP Follow the instructions to complete the product installation Kell p ision4 Setup Fig 24 Step 3 Select Terms amp conditions check box and click on Next Setup MDK ARM V4 23 License Agreement gt KE L
14. d proceed with the debug messages being displayed while the user is still configuring the Hyper Terminal or other serial emulation tool a LPC4330 Xplorer HyperT File Edit View Call Transfer Help FE FE FE FE FE FE FE FE FE HE FE FE FE FTE FE HE FE HE HE HE FE HE FE HE FE HE HE WE FE HE FE HE WE WE FE HE FE HE HE FE FE HE PE HE HE FE IE HE VE VE HE FE HE HE WE HE HE VE HE WE VE EE EE HHH HH HH HH HH HE NGK Technologies LPC43360 Kplorer Peripheral test MCU LPC4 amp 3xx Core ARM CORTEK M4 Communicate via USB YCOM FE FE H FE HE FE FE FE FE HE FE HE FE HE FE HE FE HE FE FE FE HE FE HE FE HE HE HE HE HE WE HE HE WE FE HE HE HE FE WE FE HE HE HE HE HE FE HE HE FE H HE FE HE FE HE HE HE HE HE HE HE HE HE HE HE WE HE HE HE HE HE HE HE HE HE HE HE HE HE User input detected n z j Xplorer peripherals Please wait USB HID detected and initialized Ethernet PHY detected and initialized IP address of LPC433 Xplorer is 192 168 1 123 SD card detected and initialized Writing data to sector 1 of SD card and verifying Verified Writing data in Multitransfer mode and verifying Verified measure continuous read speed read speed 516 kB s measure continuous write speed write speed 181 kB s Audio codec detected and initialized Jest iteration 300 Connected 00 00 45 Auto detect 9600 8 N 1 Fig 16 3 3 4 USBO HID device Test setup and verification Connect the USB cable to USBO con
15. dituntiteusituadteuulauattteauleuun tar ateattancteetealtoacteesatlseatienatssecebiaulsaloseteseslopetesesobbees 5 PALPE AS O ADIO E O 1 l E E 5 2 VEP C 1 O desc Hp ON secre reaa aani A RL 6 3 0 LPC4550 Xplor t verificato sicie aai buana akrar a ka adada adaaaba 8 3 1 Board Image with pointers to the peripherals aaaaaaaaaiiaaaa sssssasssaaannsnnasdaaaannnnnnnadaaaaannnnaaddaaaaanaaad 8 SLO Dl a a E E EE EEE 9 3 3 Verifying all the peripherals on LPC4330 Xplorer sessen 9 EED e A E E E T E ae ee 15 5 52 USB VITA COM PON rina E EEE EE EE 15 i OI gt PE 3 6 110 5 A E E E E r 18 ISA UBO TID OVIE er E E E N EE 18 BD TNC E IE T E A E EAA EEEN 19 MI Ol EE 21 Io CIO TEC i AC a a aaa a 21 40 LPC4330 Xplorer Development Tool Setup axagssissanssccasswewsonetocsiceansoiunnter a aiaiaaeo 22 AND EEEE Se A E E E E E E ee een A en ee eee 22 4 2 Installation amp Configuration of KEIL software aaaaaaaaaaaiiiaaasnasssnnninanannnnnnnidanannnnnnnalddaaaaasaaaaaai 22 4 353 Configuration of ULINK DebDuUosor ssunsindassnnabb us E a E ka 26 4 3 1 Configuring External Quad Flash cccccssssccccceeceesssessseeeeeeeeesscesnsaeeeeeeeeeesseessaeeeesesesessenaaaaes 2 5 0 LPC 50 Xplorer firmware I Cy el py mei 55515 pes esate parsers daanasienccivaaatrnatasanencelneaasasanancacneeoneacsaaasnacncoutee 29 5 Executne Ne sample pro clla sndisi nlks n kkk 29 6 0 Schematic amp Board Layout aaiiaaaaaasaaiiaaaasassssnasaaannnnn
16. e Edit View Call Transfer Help H H FE HE H HE FE H HE H H H H HE HE HE HE HE HE H HE H HE HE HE HE HE HE HE HE HE H HE HE H HE HHH HHH HHH HHH HHH HHH HE HE HE HE JE HE HE HE HE HE HE JE HE JE HE HE HE HE HE HE HE HE HE HE HE HE NGK Technologies LPC4330 Kplorer Peripheral test MCU LPC43xx Core ARM CORTEX M4 Communicate via USB YCOM Initializing LPC4330 Xplorer peripherals Please wait USB HID detected and initialized Ethernet PHY detected and initialized IP address of LPC4330 Xplorer is 192 igs 1 123 SD card detected and initialized Writing data to sector 1 of SD a and verifying Verified Writing data in Multitransfer mode and verifying Verified measure continuous read speed read speed 516 kB s measure continuous write speed TAudio codec detected and initialized User input detected lest iteration 300 Connected 00 00 45 Auto detect 9600 8 N 1 Fig 22 21 www ngxtechnologies com User Manual LPC4330 Xplorer 4 0 LPC4330 Xplorer Development Tool Setup 4 1 IDE and debugger As mentioned in the earlier section NGX s MCU evaluation platforms are not coupled tightly with any one particular combination of IDE and debugger The following sections will explain the setup for KEIL and ULINK as the IDE and debugger respectively Other tool options that could be considered are A LPC link and LPCXpresso A Red_Probe and Code Red IDE A J link and IAR 4 2 Install
17. er the Device Manager is automatically updated with the COM port number for the Virtual COM On our test machine we see two COM ports listed COMI and COM12 COM1 is the actual COM port and COM12 is the virtual COM port The COM12 will appear only if the Xplorer board is connected USBI to the PC Every time the Xplorer ts reset the user needs to close the Hyper Terminal application and restart it again 13 www nextechnologies com User Manual LPC4330 Xplorer TECHNOLOGIES The order in which the on board peripherals are verified by the firmware are as follows Test Firmware Flowchart START Is VCOM Enumeration Completed Ethernet PHY Verification Audio codec Verification YES Xplorer peripheral initialization Wait for user input USBO HID Enumeration SD card Verification LED Blink D2 and D3 14 www nextechnologies com User Manual LPC4330 Xplorer 3 3 1 LEDs Test setup and verification As soon as the Xplorer is turned ON or reset the test LEDs go ON amp OFF for a couple of times this simple test validates the LEDs The Xplorer has one Green LED and one Blue LED These LEDs are also connected to the outputs of the SCT lines Please refer to the schematics for more details 3 3 2 USB1 Virtual COM port Test setup and verification For the very first time the Windows machine will ask for the appropriate Virtual COM drivers to be installed Steps to select USB1 VCOM po
18. evelopment 2 2 Board Features Following are the salient features of the board A Dimensions 86mm X 40mm A Controller LPC4330 100 pin BGA A PCB 4 layer ROHS complaint A Two LEDs A One user switch and one reset switch A Boot select switch A 32Mb Quad flash A On board crystals for controller RTC and audio codec A On board Ethernet PHY 50 MHz Oscillator and RJ45 connector with magnetics A On board audio codec and audio jacks A On board USB host power switch A Two USB ports one HS High speed port and one FS Full Speed port A 10 pin cortex debug header A The board is shipped with two USB cables one USB device cable and one USB host adapter cable A Unused I Os brought to a header pin compatible with Xpresso pinning The I Os brought out to the header are not 100 pin compatible with Xpresso Pinning unlike the Xpresso boards this evaluation platform has lot of connectors on board and also the controller has some other special features like the SGPIO which have been brought out to the header We have put in our best efforts to have maximum number of pins to be Xpresso pin compatible 4 www ngxtechnologies com User Manual LPC4330 Xplorer 2 3 BLOCK DIAGRAM a ETHERNEI gt 10 100 MAC USB Host Port mae LAN8720 A e amp 10 PIN CORTEX HEADER UDA Codec e sowme if semi s PE mbak i ce Be wa GPDMA TIMER 0 3 Fig 1 2 4 LPC4330 Xplorer pin out LPC4
19. ftware obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or stez wformation v See details Fig 9 12 www ngxtechnologies com User Manual LPC4330 Xplorer Nia Step 7 The LPC18xx USB VCom driver is successfully installed Click on close Windows has successfully updated your driver software Windows has finished installing the driver software for this device LPC18xx USB VCom Port Fig 10 Step 8 Now LPC18xx USB VCom Port COM12 is ready to use File Action View Help e s A E BO E eas Computer Management Local a Nagaraj PC a System Tools gt gl Computer gt Task Scheduler gt Disk drives b Event Viewer gt Display adapters gt Shared Folders gt DVD CD ROM drives gt amp Local Users and Groups gt DA Human Interface Devices gt Performance gt 44g IDE ATA ATAPI controllers Device Manager gt Keyboards a E Storage N a Mice and other pointing devices f Disk Management gt Monitors b E Services and Applications gt EP Network adapters gt l Portable Devices a Y Ports COM amp LPT E _ lt alvi 7 LPCI8x USB VCom Port COM12 sA E PPO z gt Sound video and game controllers gt gM System devices gt F Universal Serial Bus controllers Fig 11 Note The Virtual COM is listed under the device manager Please note that the COM port list und
20. gies com User Manual LPC4330 Xplorer 6 0 Schematic amp Board Layout 6 1 Schematic This manual will be periodically updated but for the latest documentations please check our website for the latest documents The Board schematic and sample code are available after the product has been registered on our website 6 2 Board layout a RESET B xiii i M a0o000opogpoooo odp d Hva u R sa yt p ma y4 Uo sajas k mmmn a mp remo A m R53R52 TTT ibe eee ean y 8000 088000 08086 een Designed by NGX and NXP SILKSCREEN TOP SIDE ics mL R re C33 7 m U TE Fig 39 31 www ngxtechnologies com User Manual LPC4330 Xplorer 7 0 CHANGE HISTORY 7 1 Change History Rev Changes Date dd mm yy By 1 0 Initial release of the manual 29 03 2012 Ashwin Athani 32 www nextechnologies com User Manual LPC4330 Xplorer About this document Revision History Version V1 0 author Ashwin Athani Company Terms amp Conditions 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 and 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 s
21. ith a factory programmed test firmware that verifies all the on board peripherals It 1s highly recommended that you verify the board before you start programming Also this exercise helps you get acclimatized with the board quickly To run the tests you will need the following A LPC4330 Xplorer Power USB cable you can power it through either port we recommend to use USB1 for the verification or external power supply Alternatively the Xplorer has a 5V in pin available for powering through external power source PC With Windows7 or XP 32 bit One USB AM to Micro B cable in addition to the one provided with the KIT Micro SD card 2 GB USB pen drive Audio in Auxiliary cable 3 5mm diameter connector gt gt gt gt 3 1 Board Image with pointers to the peripherals USB 1 RJ45 Connector Ethernet PHY USB host switch Quad flash Boot loader switch LPC4330 Controller 10 pin debug port User switch Audio Codec Reset switch USB O a Audio ou Audio in SD card slot behind Fig3 8 www nextechnologies com User Manual LPC4330 Xplorer 3 2 Powering the Board The LPC4330 Xplorer can be powered through USB we can either power it from USBO port or USBI port It is highly recommended that the user tests all the peripherals as soon as the board is received A regulated supply can be supplied to the 5V pin on the Xplorer LPC4330 header Note The USB power can source only up to 500 mA of current For
22. ject in External Quad Flash SPIFI 32MB Debug Step 1 Select SPIFI 32MB Debug option as shown in the below image File Edit View Project Flash Debug Peripherals Tools SVCS Window Help aes P RAR SEL 7 menu Fiae Q e o eE Sa S El amp a serm Debus A 5 Internal SRAM SPIFI 32MB Debug B SPIFI 32MB Debug 072 int c_entry void Main Program a Startup 073 i E startup_LPC43xx s 074 SystemInit S CMSIS CM3 075 CGU_Init system_LPC43xx c te Drivers 078 Ipc43x_cgu c 079 scu pinmux 0x2 11 MD PUP FUNCO P2 11 GPIO1 11 Xplorer BOARD LED3 Ipc43xx_gpio c 080 GPIO SetDir LED1 PORT 1 lt lt LED1 BIT 1 Ipc43xx_scu c 081 GPIO ClearValue LED1 PORT 1 lt lt LED1_ BIT Main 082 scu_pinmux 0x2 12 MD PUP FUNCO P2 12 GPIO1 12 Xplorer BOARD LED4 Gpio_LedBlinky c 083 GPIO SetDir LED2_ PORT 1 lt lt LED2 BIT 1 084 GPIO ClearValue LED2 PORT i1 lt lt LED2 BIT 085 086 M3Frequency is automatically set when SetClock BASE M3 CLK was called 087 SysTick Config CGU_GetPCLKFrequency CGU_PERIPHERAL M4CORE 1000 fL 088 089 while 1 090 Loop forever 091 msec 100 092 while msec 093 GPIO ClearValue LED1 PORT 1 lt lt LED1 BIT 094 msec 100 095 while msec 096 GPIO ClearValue LED2 PORT 1 lt lt LED2_ BIT q a Readme i aa abbstract tet Fig 36 Step 2 Click on LOAD the executable is
23. loaded into SPIFI 32MB flash The program can be run by pressing RESET switch twice or the program can be debugged from the flash by clicking start stop debug session Click Run F5 to execute from the Flash two LED s D2 and D3 on Xplorer should blink KA F Xplorer_release LPC4330_ y Keil Gpio File Edit View Project Flash Debug Peripherals Tools SVCS Window Help J a a s aal B E jE menur BETA E C 3 DAPF32MB Debu e A A S Project n 1 SPIFI 32MB Debug 072 int c _ entry void Main Program ra Startup i startup_LPC43xx s 074 SystemInit g S CMSIS CM3 075 CGU_Init o aA system_LPC43xx c ue 4 Drivers a E h Ipc43_cgu c 079 scu pinmux 0x2 11 MD PUP FUNCO P2 11 GPIOL 1 EH lpc43x_gpio c 080 GPIO SetDir LED1 PORT 1 lt lt LED1 BIT 1 fl lped3xoc_scu c 081 GPIO ClearValue LED1 PORT 1 lt lt LED1_BIT Bj Main 082 scu_pinmux 0x2 12 MD PUP FUNCO P2 12 GPIO1_1 H Gpio_LedBlinky c 083 GPIO SetDir LED2 PORT 1 lt lt LED2_ BIT 1 Readme 084 GPIO_ ClearValue LED2_PORT 1 lt lt LED2_BIT a eee Fg abstract txt 085 1 086 M3Frequency is automatically set when SetClock BASE M3 087 SysTick_Config CGU_GetPCLKFrequency CGU_PERIPHERAL M4CORE 088 089 while 1 090 Loop fo 091 msec 100 092 while msec 093 GPIO ClearValue LEDi PORT 1 lt lt LEDi BIT 094 msec 100 Fig 37 30 www nextechnolo
24. logies LPC4330 Kplorer Peripheral test MCU LPC43xx Core ARM CORTEX M4 Communicate via USB YCOM H H HE HE HE YE HE HE HE HE HE HE HE HE HE HE HE WE HE HHH HHH HHH HH HHH HHH HE HE HE HE HE HE HE HE HE HE HE HE HE HE HE HE HE IE HE HE KE HE HE JE IE HE HE HE JE HE HE HE IE HE HE HE IE HE HE HE HE HE HE HE User input detected Initializing LPC4330 Xplorer peripherals Please wait USB HID detected and initialized Fer ne PHY detected and o IP 4 3 TR s 1 123 F 4 detected and initialized Writing data to sector 1 of SD pena and veri Verified Writing data in Multitransfer mode and verifying Verified measure continuous read speed ead speed 916 kB s measure gt Q write speed 181 kB s Audio codec detected and initialized Jest iteration 300 Connected 00 00 45 Auto detect 9600 8 N 1 3 3 7 Audio Interface Test setup and verification For the audio interface the LPC4330 Xplorer incorporates external audio codec from NXP The codec is interfaced to the MCU over I2S0 for data and over I2CO0 for command interface The test firmware verifies both the audio in and audio out path To verify the audio interface the user needs to feed some audio data through the audio in LINE IN interface and then connect a headphone at the audio out jack If one is able to hear the same audio data that is being fed over audio in interface we have verified the audio interface Ti LPC4330 Xplorer Hypert Fil
25. nector The USB enumeration can be checked in device manager The Xplorer enumerates as a Human Interface Device HID On a Windows machine this can be confirmed by looking in to the Device Manager under Human Interface Devices 18 www nextechnologies com User Manual LPC4330 Xplorer File Action View Help Computer Manageme F System Tools gt J Computer 2 Task Scheduler i g Disk drives t Event Viewer gt Display adapters a gt Q DVD CD ROM drives b amp Local Users and Huy al b R Performance Device Manage es Storage Disk Managem b FA Services and Applic Eg IDE ATA ATAPI controllers gt Keyboards A Mice and other pointing devices M Monitors ay Network adapters gt Portable Devices TH Ports COM amp LPT gt Processors Fig 17 Note The Xplorer is shipped with only one USB AM to micro B to test the USB1 interface you would require another similar cable In the subsequent firmware releases the firmware would configure the USBO port as USB host 3 3 5 Ethernet Test setup and verification The test firmware configures the Xplorer board as a Webserver LPC4330 Xplorer Hy File Edit View Call Transfer Help H H FE HE FE FE FE HE FE HE FE FE FE FE HE FE FE FE FE FE FE FE FE FE HE HE HE HE HE FE HE HE HE WE HE HE HE HE HE HE WE HE HE HE HE HE FE FE HE HE FE HE HE HE HE HE HE HE HE WE HE HE HE HE HE KE IE HE VE HE HE HE HE HE VE HE HE HE HE HE
26. nnnnannnnnnnnnnninanannnnnnninaannnnnnnninaannnnnnnnnniianannnnaaaani 31 6 ve 0 E E eee res 31 288 Board ED OU RNESVN A ie caceeaseeetnsauneveemanuennadceseaees 31 TO CHANGE HISTOR aaa H S O R R K VR R BAR cca 32 AOC AIS E 5 0 SPSS aut en te E E E T E E O 32 3 www ngxtechnologies com User Manual LPC4330 Xplorer 1 0 INTRODUCTION This document is the System Reference Manual for LPC4330 Xplorer a cost effective evaluation platform for NXP s LPC43xx dual core Cortex M4 and M0 MCUs This document reflects its contents which include system setup debugging and software components This document provides detailed information on the overall design and usage of the board from a systems perspective 2 0 LPC4330 Xplorer Overview 2 1 Introduction The NGX LPC4330 Xplorer is a compact and versatile evaluation platform for the NXP s Cortex M4 based MCUS NGX s evaluation platforms are generally not tied up to any particular debugger or compiler IDE However it is not practical to test and ensure that the solution would work out of box with all the available debuggers and compilers IDE As long as the compiler supports the particular MCU and the debugger supports the standard debug interfaces like the SWD JTAG you can use this platform with any tool For our development we use ULINK and KEIL as the debugger and compiler IDE respectively The board is supported by extensive sample examples allowing you to focus on the application d
27. rpose timer counters with capture and match capabilities e One motor control Pulse Width Modulator PWM for three phase motor control e One Quadrature Encoder Interface QED e Repetitive Interrupt timer RI timer e Windowed watchdog timer WWDT e Ultra low power Real Time Clock RTC on separate power domain e Alarm timer can be battery powered 6 www ngxtechnologies com User Manual LPC4330 Xplorer e One 10 bit DAC with DMA support and a data conversion rate of 400 kSamples s e Two 10 bit ADCs with DMA support and a data conversion rate of 400 kSamples s e Two 128 bit secure OTP memories for AES key storage and customer use e Crystal oscillator with an operating range of 1 MHz to 25 MHz e 12 MHz Internal RC IRC oscillator trimmed to 1 accuracy e Ultra low power Real Time Clock RTC crystal oscillator e Three PLLs allow CPU operation up to the maximum CPU rate e Clock output e Single 3 3 V 2 2 V to 3 6 V power supply with on chip DC to DC converter e RTC power domain can be powered separately by a 3 V battery supply e Four reduced power modes e Processor wake up from Sleep mode via wake up interrupts e Brownout detect with four separate thresholds for interrupt and forced reset e Power On Reset POR For the most updated information on the MCU please refer to NXP s website 7 www ngxtechnologies com User Manual LPC4330 Xplorer NIR A 3 0 LPC4330 Xplorer verification NGX s evaluation platforms ship w
28. rt on HyperTerminal in Windows 7 machine Step 1 Open a HyperTerminal Enter the name and then click on OK New Connection H File Edit View Call Transfer Help New Connection Enter a name and choose an icon for the connection 4 Disconnected 15 www ngxtechnologies com User Manual LPC4330 Xplorer Step 2 Select USB1 Vcom Port COM 12 and then click on OK Enter details for the phone number that you want to dial Area code 16 www nextechnologies com User Manual LPC4330 Xplorer Step 4 Now the USB1 VCom is ready to use fa LPC4330 Xplorer HyperTermin File Edit View Call Transfer Help la pg AB Connected 00 00 03 Auto detect Auto detect SCROLL CAPS Fig 15 Note You would not be able to proceed with the verification unless the Virtual COM drivers are installed The firmware waits for the USBI to enumerate as VCOM port 17 www nextechnologies com User Manual LPC4330 Xplorer 3 3 3 User Input Switch Test setup and verification Once the VCOM drivers are installed the Xplorer waits for the User Input Switch to be pressed Only after detecting a user button SW2 press the test firmware proceeds with validating other peripherals This synchronization is necessary to ensure that the debug messages on the VCOM port can be viewed from the start of the test Without this synchronization the test firmware woul
29. s to press the RESET switch twice Power up the board over USB1 port and we are all set to verify the LPC4330 Xplorer peripherals Before we get to the verification we need to install the Virtual COM port drivers needed for the LPC4330 Xplorer USB1 port to appear as a Virtual COM port Used for viewing the debug messages on serial emulation tool Fortunately this is a one time setup and fairly simple On a Windows machine the user needs to point to the location of the INF file 9 www nextechnologies com User Manual LPC4330 Xplorer Steps to install the VCOM drivers on Windows 7 machine Step 1 Connect USB1 to the computer Open Device Manager You can find NXP LPC18xx VCOM new device listed under Other devices File Action View Help e ARE EHE Ee NE EM Computer Management Local it System Tools gt 2 Task Scheduler t E Event Viewer b Shared Folders b Local Users and Groups b Performance Device Manager ga Storage 5 Disk Management b E Services and Applications Step 2 Next Right click on the NXP LPC18xx VCOM and then left click on Update Driver Software File Action View Help eS 20B EM Computer Management Local itd System Tools b 2 Task Scheduler Z Event Viewer 33 Shared Folders gt Local Users and Groups b E Performance z Device Manager is Storage H Disk Management b E Services and Applications a Nagaraj PC JE Computer b pew Disk drives M
30. ser 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 33 www nextechnologies com User Manual LPC4330 Xplorer 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 information 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 supersedes 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 34 www nextechnologies com
31. tandards 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 hability 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 U
32. y Hame NGS Technologies Pvt Ltd E mail abc ngstechnologies com fel pising Setup I z lt Back 7 Next gt gt Cancel Fig 27 24 www nextechnologies com User Manual LPC4330 Xplorer Step 6 Click on Next Setup MDK ARM V4 23 File installation completed gt KE L Tools by ARM uvision Setup has installed all files successfully wy Retain current pvision configuration y Add example projects to the recently used project list Freselect Example Projects for Simulated Hardware TF el pvisond Setup Cancel Fig 28 Step 6 Keil uVision4 23 setup is completed Click on Finish Setup MDK ARM V4 23 x Keil p ision4 Setup completed gt Ke l L MOKARM 4 23 Tools by ARM vision Setup has performed all requested operations successfully ff Launch Driver Installation ULINK Pro Driver 1 0 v Show Release Notes Kell pVisiond Setup a Fig 29 25 www nextechnologies com User Manual LPC4330 Xplorer 4 3 Configuration of ULINK Debugger The configuration flow of ULINK Debugger is explained below Step 1 Open the Keil Workspace then by clicking on the target option the window opens as shown below Next click on Debug and then select the ULINK2 ME Cortex Debugger as shown in the image ka Options for Target Internal SRA Use Simulator Limit Speed to Real Time M Load Application at Startup F Run to maint Initialization File PO H Edit
33. ytes 32 time 4ims TTL 64 Ping statistics for 192 168 1 123 Packets Sent 4 Received 4 Lost B CH loss gt Approximate round trip times in milli seconds Minimum 28ms Maximum 165ms Average Sims GC Users NGals gt Fig 19 The IP address of the Xplorer board is configured as 192 168 1 123 Type the same IP address in the browser V http 192 168 1 123 P v gt 192 168 1 123 g 5 S Signin Hotmail Messenger Private E mail page IM page This is a dynamic website hosted by the embedded Webserver easy WEB Hardware o lpc43xx NXP Evaluation board ARM M3 Cortex running EasyWeb Embedded EMAC Ethernet Controller New IP AID Converter Input 2 POT1 0x358 ov 0 5V 1V 1 5V 2V 2 5V 3V Fig 20 20 User Manual LPC4330 Xplorer NIR A 3 3 6 Micro SD connector Test setup and verification The firmware validates the micro SD card interface by writing and reading a sector of the SD card connected Please note that we need to use a micro SD card with FAT file system The result of this test is displayed over the VCOM port LPC4330 Xplorer HyperT File Edit View Call Transfer Help D 3 2H H H H H HE HE HE H HE HE H HE HE HE H HE HE WE HE HE HE HE HE HE HE HE HE HE HE IE HE HE H HE HE HE HE KE HE HE HE HE HE HE HE IE HE HE HE HE HE HE HE HE HE HE HE HE HE HE IE HE HE HE HE HE HE IE KE HE HE HE HE HE HE HE HE HE HE HE NGK Techno
Download Pdf Manuals
Related Search
Related Contents
TiSecurityGSM user manual - Legrand E User manual: How do I install a LED panel? For All Wine Lovers Portal-Benutzerhandbuch PCAN-Wireless Gateway DR - User Manual ミニフェンス 施工説明書 compact - Bruno Balducci Srl Manual de instrucciones Copyright © All rights reserved.
Failed to retrieve file