Home

EDM1070xx User Manual V1.1

image

Contents

1. N Ro RS F BG RS DC value on channel Page 64 t A Premier Farnell Company is 0000000807 is 0000000806 is 0000000808 0000000808 is 0000000806 is 0000000806 is 0000000807 DC value on channel DC value on channel DC value on channel DC value on channel DC value on channel DC value on channel D p Pp P P P P N N N N N N N H n DC value on channel 6 1 9 Atimer_Wic Program 1 Connect the UARTO 6t 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx the HyperTerminal window displays information as shown below KEKKKKKKKKK KK AAA RAA KKK KK KK KK KK KK KK KR KK KKK KKK KKK KKK KKK KKK KKK KK KK KK KK KKK Hello NXP Semiconductors Timer delay demo MCUs locii locke Core ARM Cortex M3 M4 Communicate via UARTO 115200 bps Using Alarm Timer to generate Interrupt and wake up system KEKKKKKKK KK KK KK KKK KKK KK KK KK KK KKK KR KK KKK KK KKK KK KKK KKK KkA AA KKK KK KK KKK XX XX Waked Up by Alarm Timer Waked Up by Alarm Timer Waked Up by Alarm Timer Waked Up by Alarm Timer Waked up by Alarm Timer Waked Up by Alarm Timer Waked Up by Alarm Timer Waked Up by Alar
2. Data bits Parity Stop bits oe Flow control None Figure 6 HyperTerminal Configuration Settings Page 23 5 The window shown below t Premier Farnell Company indicates the HyperTerminal connection has been configured successfully Embest HyperTerminal File Edt View Cal Transfer Help De of DE amp Connected 0 00 14 Auto detect Auto detect Figure 7 Successful HyperTerminal Connection 4 2 Configuring the Network 1 Click Start Control Panel Network and Internet Network Connections on your PC s desktop and then double click Local Area Connection to open the window as shown right 2 Click Properties to open the Local Area Connection Properties window de Local Area Connection Status General Support Connection Status Connected Duration 00 41 27 Speed 100 0 Mbps Activity Received Packets Gesi Figure 8 Local Area Connection Properties Window Page 24 t A Premier Farnell Company 3 Double click Internet Protocol TCP IP in the window shown below de Local Area Connection Properties p General Advanced Connect using E Realtek RTL8139 810x Family Fast E This connection uses the following items El cient for Microsoft Networks Ja VirtualBox Bridged Networking Driver al File and Printer
3. e Instrumentation e Home automation e Medical diagnosis e Motor control Page 1 t A Premier Farnell Company 1 2 Kit Contents v v EDM1070xx Board CD containing User Manual Source code Development tools Four hexagonal screws Four hexagonal screw nuts Optional COM1000A SPI to serial module with 4 serial ports DM CAM130 camera module with OV9655 and a 1 3MP CMOS SXGA camera sensor Page 2 t A Premier Farnell Company 1 3 Board Interfaces Figure 1 EDM1070xx Board Interfaces Page 3 A Premier Farnell Company 1 4 System Block Diagram 128M NAND Flash op Figure 2 EDM1070xx System Block Diagram Block Diagram Legend Legend Description Interface modules of CPU Chips or spare solder pads on __ the board m Interfaces on the board Page 4 t A Premier Farnell Company 1 5 Physical Dimensions wter df Jako w01 3 08 SET 90000 390008 On a le og Mee ii 2008 Kb DEES ov Gecke ch a petit mA VE TUE VE a OMR TN NO OT Ten 10 Figure 3 EDM1070xx Physical Dimensions EDM1070A 01 EDM1070B 01 EDM1070AR 01 EDM1070BR 01 Top Layer Component Height max 3 mm Top Layer Component Height max 12 mm Bottom Layer Component Height max 14 mm Bottom Layer Component Height max 14 mm Board Thickness 1 6mm 4 layer PCB Board Thickness 1 6mm 4 layer PCB Page 5 t A Premier Farnell Company
4. 4 Other devices 9 Ports COM amp LPT EI Communications Port COM1 gf ECP Printer Port LPT1 va LPC43xx USB Corm Port COM3 SBR Processors E Sound video and game controllers s r Storage volumes System devices Universal Serial Bus controllers Figure 59 EDM1070 xx as a Serial Device Note UI If the PC prompts you to install a driver you can find the driver under X Codes Peripheral_Examples 17 USB DEV Usb Cdc where X is the label of your CD ROM drive Page 60 t A Premier Farnell Company 6 Open a HyperTerminal window for the virtual serial device Any characters entered in a window will be received and displayed in the other as shown below lt VCOM HyperTerminal Sec lt True HyperTerminal Bt x DG 23 DA D 98 DB Message from TrueCOM Message from VCOM k Kaim gt Connected 0 02 30 Auto detect 115200 8 N 1 Connected 0 03 32 Auto detect 115200 8 N 1 Figure 60 Serial Interface Communication 6 1 6 USB HOST Usb MassStorage Program 1 Connect the UARTO eh 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1 Configuring HyperTerminal on page 22 Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx Page 61 t A Premier Farnell
5. Embest Technology will not take any responsibility for products returned without the prior permission of the company 2 3 Basic guidelines for protection and maintenance of LCDs 1 Do not use finger nails or other hard sharp objects to touch the surface of the LCD 2 Embest recommends purchasing specialist wipes to clean the LCD after long time use avoid cleaning the surface with fingers or hands as this may leave fingerprints or smudges 3 Do not clean the surface of the screen with unsuitable chemicals Note Embest do not supply a maintenance service for LCDs We suggest the customer immediately checks the LCD once in receipt of the goods In the event that the LCD does not run or shows no display the customer should inform Embest within 7 business days of delivery Page 3 t A Premier Farnell Company 2 4 Value Added Services We will provide following value added services e Driver development based on Embest embedded platforms for devices such as serial ports USB interface devices and LCD screens e Control system transplantation BSP driver development API software development e Other value added services including supply of power adapters and LCD parts e Other OEM ODM services e Technical training Please contact Embest with any technical support queries http www embest tech com contact us html Page 4
6. 21 t Premier Farnell Company 4 Preparations Before you get started with software development you need to make a series of preparations including configuring HyperTerminal setting up a network and installing the Keil MDK or IAR EWARM integrated development environment The following contents will show you how to complete the installation and configuration process on a PC running Windows XP 4 1 Configuring HyperTerminal 1 Select Start All Programs Accessories B Communications 8 HyperTerminal on your PC s desktop to open a HyperTerminal window as shown below Connection Description KA New Connection Enter a name and choose an icon for the connection Name E mbest Figure 4 Setting up a new HyperTerminal Page 22 t A Premier Farnell Company 2 Enter a name for the new HyperTerminal in the Name textbox and then click OK 3 Select the serial interface Era used to connect to the EDM1070xx from the D enten Connect using drop down menu in the window Enter details for the phone number that you want to dial shown right then click Country region United States 1 OK Area code 0755 Phone number Connect using COM3 v Figure 5 Connection Selection Window 4 Configure the serial MR interface according to the Port Settings configurations in the window shown right gs Er and then click OK Bis po second s
7. 5 1 1 Creating and Compiling a New Project annen eenen eneen 38 5 1 2 Programming and Debugging nnen ener eenen ene enen eeen 43 5 2 Development Based on IAR EWARM neen 47 5 2 1 Creating New Project Compiling nnen eneen eenen eenen 47 5 2 2 Programming and Debugging nnen eenen eneen enen nen venen 53 6 Example Programs smessaert nende DS 6 1 Basic Example Programs for Peripherals nnen 55 6 1 2 LCD Touch Program 58 6 1 3 Lcd Demo Program ENNEN 59 6 1 4 USB DEV Usb MassStorage Program 59 6 1 5 USB DEV Usb Cdc Program sisi 60 6 1 6 USB HOST Usb MassStorage Program 61 6 1 7 Emac EasyWeb Program ss 63 6 1 8 Adc Polling Program suspense aten dada 64 6 1 9 Atimer WIC Program assor versen erdee nen dend denderende enne 65 6 1 10 Ccan SimpleTxRx Program sisi 66 6 1 11 Emc NandFlash Program s aranvannanvannanvennennennennennnnnennnnnnnnnnnnnnnen 68 6 1 12 Emc_Sdram Program ENNEN 69 t A Premier Farnell Company 6 1 13 Gpdma_Flash2Ram Program vasranvanvanvannennennennennnnnennnnnnnnnnnnnnnen 70 6 1 14 Gpio_LedBlinky Program ss 71 6 1 15 12C EEPROM Program 9 rene nine iene 71 6 1 16 Rtc Calendar Program 72 6 1 17 Sdio_FatFs Program naan saneren enen enr eneen veneenvenvnn venen ennen enn 73 6 1 18 Wdt Interrput Program 74 6 1 19 Uart Autoband Program ss 75 6 1 20 Uart Rs485Master amp Uart_Rs485Slave Program 76 6 1 21 Pwr DeepSleep Program sisi 78 6 1 22 Mbx Demo Program 79 6
8. Angel GDB Server IAR ROM monitor I jet Endian mode J Link J Trace I TI Stellaris Macraigor PE micro RDI JTAGjet ST LINK Third Party Driver Er Figure 50 Project Options Window 8 Under the Target tab check the radio button Device and click the button on the right and then select NXP gt LPC1700 gt NXP LPC1788 in the pop up menu Page 50 t A Premier Farnell Company 9 Click C C Compiler on the left side of the window and select the Preprocessor tab in the right part of the window and then add the paths of the head files to the Additional include directories textbox Options for node Category Factory Settings General Options C Multi file Compilation C C Compiler Discard Unuse ed Publics Assembler Output List Preprocessor Diagnostics MISRA C 2004 nh gt Output Converter Custom Build 2 gt Clianore standard include direc Build Actions Linker Additional include directories one per line Debugger Simulator Angel GDB Server IAR ROM monitor PROJ_DIRS PROJ_DIRS PROJ_DIRS PROJ_DIRS PROJ_DIRS Preinclude A AAA ACore CMSIS Include A S e Core Device NXP LPC177x_8x Incluc LAS Core Devike NKP LPCITTx Bx Source _ Drivers include v I jet J Link J Trace TI Stellaris Macraigor PE micro RDI JTAGjet ST LINK Third Party Driver TI XDS100 JO Defined symbols one per Cl Preproce
9. 2 Application Programs nanne nenen nennen venen venen venen ennen tea 81 6 2 1 Camera Example Program ss 81 6 2 2 emWin518 Example Program ss 82 6 2 3 Ethernet Example Program ss 83 6 2 4 uCOS II amp emWin518 Example Program 84 6 2 5 UCOS II Example Program sisi 84 7 Function TES umer nennen nnen aren ennen enn e eegen CD 7 1 Function Test Table sssssssuse nrnseseseseesmenestene 85 Appendix 1 ESD Precautions amp Proper Handling Procedures86 Appendix 2 Technical support amp Warranty asrunnnvunnnvnnnvvnnnrr 2 1 Technical support SEIGE ss eege Eege Ae ge n es 1 2 2 Maintenance service clause 2 2 3 Basic guidelines for protection and maintenance of LCDs 3 2 4 Value Added SerVIOES deg EN SNE ENER ENEE EEN ER EN ERNSTER EN EN 4 t A Premier Farnell Company 1 Product Overview 1 1 Introduction The EDM1070xx is an embedded display module designed by Embest Technology and built on the LPC4357FET256 a NXP 32 bit ARM Cortex M4 MO dual core MCU LPC1857FET256 NXP 32 bit ARM Cortex M3 MCU The EDM1070xx is provided with example applications for all the on board devices and support for real time operating systems It has a variety of expansion interfaces such as UART CAN SPI SGPIO I2C GPIO and ADC DAC to satisfy the many different application requirements of users The EDM1070xx is suited for a wide scope of applications and can meet the requirements of many different fields including
10. Copy your license key into the License Key textbox or click Browse to specify the path where the license key is saved and then click Next IAR Embedded Workbench for ARE 6 40 2 Evaluation The license key can be either your QuickStart key or your permanent key If you enter the QuickStart key found on the CD cover you have 30 days to try the product out If you have received the permanent key via email you paste it into the License Key textbox License License Key Read license Key Fi Tom Fie Figure 26 Enter License Key 7 Click Change in the following window to specify installation path and then click Next Page 35 t A Premier Farnell Company Install IAR Embedded Workbench for ARM Evaluation to C NEmbedded Workbench 6 4 Evaluation Cancel Figure 27 Select Installation Path 8 The following window allows you select a folder in which the software icon is contained You may keep the default settings unchanged and click Next IAR Embedded Workbench for ARE 6 40 2 Evaluation Setup will add program icons to the Program Folder listed below You may type a new folder name or select one from the existing folders list Click Nest to continue Program Folder JAR Embedded Workbench for ARM 6 40 E valuatior Existing Folders Microsoft Office Microsoft Silverlight Figure 28 Select Software Icon Location 9 Click Install in the following window to start the installati
11. IC IO III II IC II IC I ee XX XX KKKKKKKKKKKKKKKKKKKKK Hello NXP Semiconductors Camera demo NECU lpelds Ici Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps This example configures SGPIO to interface a video camera KKK AA AA AA AAA AAA AA AAR KKK KK KKK KRKK KK KK KK KK KK KK KKK KKK KKK KK kkk AA KKK KK KK KKK KKK Initialization Camera OV9655 Please enter 1 2 3 select Camera Siz 1 Set Camera size is 640 480 23 See Camera size Is A20 amp 240 33 Sel Camera size is Do0 120 resolution of the camera to 320x240 6 2 2 emWin518 Example Program 1 2 Power on the EDM1070xx Open the Gpio LedBlinky program and compile it and then download it to flash Reboot the EDM1070xx the LCD will display the demonstration images of emWin Use a stylus to press the Next and Halt buttons on the screen to fast forward and stop the demonstration Page 82 t A Premier Farnell Company 6 2 3 Ethernet_Example Program 1 Connect the EDM1070xx to a PC with a cross over network cable and power on the EDM1070xx LED1 will be lit up to indicate proper connection of the network 2 Recompile the project and then download it to flash 3 Reboot the EDM1070xx Select Start gt Run on your PC s desktop and type cmd in the pop up window and then press Enter on your keyboard Type ping 192 168 0 100 t in following command line window and press Enter again to receive
12. IP address Subnet mask 192192192116 255 255 255 0 d au NM est Remove Default gateways Gateway 192192192101 Add Edit Remove Automatic metric 6 Enter an IP address that is in the same network segment as the EDM1070xx default IP I TCPIP Address address is 192 168 0 232 P adress e g 192 168 0 40 in the oe window and then enter a aad D cane subnet mask and click Add pmm S IP Settings DNS WINS Options IP addresses Gateway 192192192101 Automatic Add Edit Remove Automatic metric OK Cancel Figure 12 Enter Desired IP Address Page 26 t Premier Farnell Company Note Q You can use any IP address from 192 168 0 1 to 192 168 0 254 except 192 168 0 100 because this address will cause an IP collision when the Ethernet example program is running 7 The window shown below indicates that a new IP address has been added to the PC Now click OK to finish the configuration Advanced TCPAP Settings IP addresses 492 192 192 116 Default gateways Gateway 192 192 192 101 SE E IP Settings DNS NS Options Bret Tre 255 255 255 0 255 255 255 0 Metric Automatic V Automatic metric Figure 13 Click OK Page 27 t A Premier Farnell Company 4 3 Installing the Keil MDK Development on the LPC4357 requires version 4 60 or higher of the Keil MDK All t
13. Sharing for Microsoft Networks v v v v 7 4 Internet Protocol TCPAP Description Transmission Control Protocolinternet Protocol The default wide area network protocol that provides communication across diverse interconnected networks M Show icon in notification area when connected Notify me when this connection has limited or no connectivity Figure 9 Double Click Internet Protocol TCP IP 4 Click Advanced in the window shown below Internet Protocol TCP IP Properties You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IP settings Obtain an IP address automatically Use the following IP address IP address 192 192 192 116 Subnet mask 255 255 255 0 Default gateway 192 192 192 101 Obtain DNS server address automatically Use the following DNS server addresses Preferred DNS server 202 96 134 133 Alternate DNS server 202 96 128 166 as ae H Figure 10 Click Advanced Page 25 t Premier Farnell Company Note Please ensure the option Use the following IP address is checked and then click Advanced to specify additional IP addresses for the PC 5 Click Add in the IP address Mm Settings DNS wins Options block in the window shown IP addresses ri g h t 7
14. USB2 0 Device High speed 480Mbps USB2 0 Host Full speed 12Mbps 10 100Mbps Ethernet interface TF card slot 20 pin standard JTAG debug interface Four input and four output I O interfaces implemented with phoenix connectors and isolated by optocouplers 8 channel ADC interface DAC interface SPIFI interface IIC interface I2S interface High precision RTC no battery by default Spare interface for external hardware watchdog Page 7 t A Premier Farnell Company 2 4 Other e 7 800x480 TFT LCD 16bit RGB565 mode supporting 4 wire resistive touch screen e ISP button e Buzzer e 5V power output interface 2 5 Electrical Features e Operating Temperature 0 C 70 C e Storage Temperature 40 C 85 C e Operating Humidity 0 90 Non condensing e Power Supply DC 9 24V 150 400mA 12V e Electrical Standards CE FCC and CCC e PCB Layers 6 Page 8 t A Premier Farnell Company 3 Hardware Details This chapter will give you an overview of the product hardware system by introducing the CPU and interfaces used on the EDM1070xx 3 1 CPU Introduction The EDM1070xx uses NXP s LPC4357FET256 LPC1857FET256 a low power high performance price ratio MCU based on ARM 32bit Cortex M4 MO ARM 32bit Cortex M3 The LPC4357FET256 is the latest processor from NXP built with asymmetric dual core digital signal controller architecture based on the ARM Cortex M4 and Cortex MO processors which pr
15. pels loc AS Core ARM Cortex M3 M4 COMMUN Cas vlas WARE 115200 es This example will fill then check the SDRAM content on Page 69 t A Premier Farnell Company EDM1070xx board KkkAAAAAAAAAAA KK KK KK KKK KKK KKK KKK ARA AAA AA ARA AAA AR AAA AAA AA Kk AA KKK AAA AA AAR XX kk Core M4 Clk 0120000000 Hz Wal IAM oe Check RAM RAM Check Finish Clear RAM content 6 1 13 Gpdma_Flash2Ram Program 1 Connect the UARTO eh 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx the HyperTerminal window displays information as shown below kKkkkkkkkKKKKKKKKKKK KKK KKK KKK KKK KK KK KKK KKK KK KR KKK KKK KkKKKKK KKK KK KK KK KKK Hello NXP Semiconductors GPDMA demo MCUs lpoldse lpetsser Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps This example used to test GPDMA function by transfer data from Flash to RAM memory KKK KKK KKK KKK KKK KK KKK KKK KKK KKK AAA AAA ARA A ARA KAA AAA AAA HAKA AAA KK KKEKKKKKKKKKKKKKKKKKKK Seat Eranmsrer ce Buffer Check success Page 70 t A Premier Farnell Company 6 1 14 Gpio_LedBlinky Program 1 Power on the EDM1070x
16. software to open the IAR Embedded Workbench IDE window as shown below Z TAR Embedded Workbench IDE File Edit View Project Tools Window Help D LU d Workspace He I find all th an e guides GETTING STARTED USER GUIDES EXAMPLE PROJECTS Guidelines for setting up Complete product Example applications your project adding documentation in PDF that demonstrate files eamnilina linkinn format nines wan all the hardinare nerinherals fr he Figure 45 IAR Embedded Workbench Window 2 Select Project gt Create new project on the menu bar of the above window to create a new project Page 47 t A Premier Farnell Company 3 Select Empty project in the following pop up window and then click OK Create New Project Tool chain Project templates Empty project asm C C Externally built executable Description Creates an empty project Figure 46 Select an Empty Project 4 Select a path to save the new project in the following pop up window and then click Save Save in Q My Documents My Recent DPicture1 Documents Desktop My Documents My Computer File name Ke Save as type Project Files ewp My Network Figure 47 Set New Project Save Path Page 48 t A Premier Farnell Company 5 Right click the project name on the left side of the IAR Embedded Workbench IDE window and select Add gt
17. the paths where the head files are saved in the Include Paths textbox and then click OK Page 41 t A Premier Farnell Company 9 Click the Rebuild button following window to start compiling all the files on the tool bar as shown in the W D SBC1788 CD ROMcodeVLPC177x 8x StdPeriph Demo Ezaaples 16 GPIO GPIO LedBlinky Keil Gpio LedBlinky uv BR File Edit View Project Flash Debug Peripherals I DEE Deg Copyright C 2012 2014 Embest Tech Co Ltd 30 Drivers FileName Gpio LedBlinky c SCH Main Author lichy a 2 Gpio Led Version t 4 0 0 3 Readme Date 2012 04 26 Description This example describes how to use GPIO interrupt to drive LEDs Function List History lt author gt lichy lt time gt 2012 04 26 lt version gt 1 0 0 lt desc gt build this moudle TTT G i Includes Build Output compiling Gpio LedBlinky c linking Program Size Code 3744 RO data 260 RW data 24 ZI data 512 FromELF creating hex file Flash Gpio_LedBlinky axf 0 Error s D Warning s Rebuild all target files ULINK Cortex Debugger Figure 38 Click Rebuild The information box at the bottom of the window shows that compilation has completed successfully Now the process of creating and compiling a project is finished Page 42 t A Premier Farnell Company 5 1 2 Programming and Debugging You can now proceed with flash programming and debuggi
18. 0K potentiometer to a 3 3V input another to ground and the center leg to the ADC2 pin of the EDM1070xx the 4 pin of ADC amp WAKEUP connector in Figure 1 on page 3 2 Connect the EDM1070xx to your PC with a cross over network cable and a cross over serial cable and then power on the board LED1 will be lit up to indicate the proper connection of network 3 Recompile the project and download it to flash and then reboot the EDM1070xx 4 Click Start gt Run on your PC s desktop type cmd in the pop up window and then press Enter on your keyboard to open a command line window Type ping 192 168 0 100 t in the window and press Enter again to receive the information as shown below en C windows system32 ping exe Pinging 192 168 1 with 32 bytes of data Reply from 192 168 1 8 bytes 32 time lt ims TTL 64 Reply from 192 168 6 166 bytes 32 time lt ims TTL 64 Reply from 192 168 606 166 bytes 32 time lt ims TTL 64 Reply from 192 168 686 106 bytes 32 time lt ims TTL 64 Figure 61 Network Testing 5 Type http 192 168 0 100 in the address bar of your Internet browser and press e gt D 192 16es 0 100 Enter on your BIJ EE keybo ard to open Ga is a dynamic website hosted by the embedded Webserver easyMEB the page as shown right Figure 62 easyWEB Interface Page 63 t A Premier Farnell Company When the potentiometer is being turned the voltage value converted by the ADC changes accord
19. 2 Hardware Features 2 1 Processor e NXP LPC4357FET256 LPC1857FET256 e Floating point hardware unit e 1024KB Flash e 136 KB SRAM e 16KB EEPROM e LCD controller with support for 24bpp true colour mode and a resolution of up to 1024x768 e USB 2 0 high speed Host Device OTG interface with on chip PHY and support for DMA transmission e USB 2 0 high speed Host Device interface with on chip PHY and ULPI which supports external high speed PHY e 10 100 Mb Ethernet MAC MII RMII interface e Four wire SPI flash interface SPIFI with data transfer rate of up to 40Mbps per channel e Two CAN 2 0B four UART two I2S two I2C two SSP busses and one SPI bus e Four 32 bit general purpose timer two standard PWM one motor control PWM with Quadrature encoder interface e Two 10 bit ADCs operating at up to 400KHz e 10 bit DAC operating at up to 400KHz e Serial GPIO interface SGPIO e 164 general purpose I O interfaces e Two watchdog timers Page 6 t A Premier Farnell Company 2 2 On Board Memories 128MB NAND Flash 32MB SDRAM 2Kb EEPROM 4Mb SPI Flash spare solder pads 3 Communication Interfaces Three serial interfaces implemented with phoenix connectors UARTO 3 wire serial interface RS232 level UART2 3 wire serial interface RS232 level UART3 3 wire serial interface RS232 level RS485 interface implemented with phoenix connectors Two CAN2 0B interfaces implemented with phoenix connectors Two USB interfaces
20. 3 2 4 USB Host Interface J5 USB HOST Interface Pins Definitions Descriptions 1 VBUS 5V 2 D USB Data 3 D USB Data 4 GND GND 3 2 5 TF Card Slot CON1 TF Card Interface Pins Definitions Descriptions 1 DAT2 Card data 2 2 DAT3 Card data 3 3 CMD Command Signal 4 VDD VDD 5 CLK Clock 6 VSS VSS 7 DATO Card data 0 Page 11 t A Premier Farnell Company TF Card Interface Pins Definitions Descriptions 8 DAT1 Card data 1 9 CD Card detect 3 2 6 LCD Interface CON2 LCD Interface Pins Definitions Descriptions 1 VLED Power for LED backlight Anode 2 VLED Power for LED backlight Anode 3 VLED Power for LED backlight Cathode 4 VLED Power for LED backlight Cathode 5 GND GND 6 VCOM Common voltage 7 DVDD Power for Digital Circuit 8 MODE DE SYNC mode select 9 DE Data Input Enable 10 VS Vertical Sync Input 11 HS Horizontal Sync Input 12 B7 Blue data MSB 13 B6 Blue data 14 B5 Blue data 15 B4 Blue data 16 B3 Blue data 17 B2 Blue data 18 B1 Blue data Page 12 t A Premier Farnell Company LCD Interface Pins Definitions Descriptions 19 BO Blue data LSB 20 G7 Green data MSB 21 G6 Green data 22 G5 Green data 23 G4 Green data 24 G3 Green data 25 G2 Gree
21. A u Visiond File Edit View Project Flash Debug Peripherals I Start SVCS Window b Gad All Programs Keil uVision4 on the PC s desktop to open a uVision4 window as shown right tl OF 0 7 Figure 31 uVision 4 Window Page 38 t A Premier Farnell Company 2 Click Project gt New uVision Project on the menu bar of the uVision4 window to open the following window Create New Project Save in B Measure el de et Er lust Oj My Recent Ci Measure Documents My Network File name v Places Save as type Project Files uvproi v Cancel Figure 32 Create a New Project 3 Specify the storage path and name for the new project e g Target1 and then click Save 4 Select NXP founded by Philips gt LPC4357 in the tree view of the window shown below and then click OK Select Device for Target Target 1 CPU Vendor NP founded by Philips Device LPC1788 Toolset ARM Data base Description 4 LPC1769 ARM Cortex M3 processor CO LPC1774 running at frequencies of up to 100 MHz LPC1776 Memory Protection Unit MPU Nested Vectored Interrupt Controller NVIC 3 LPC1777 Non maskable Interrupt NMI input A LPC1778 Wakeup Interrupt Controller WIC 4 LPC1785 Up to 512 kB on chip Flash ISP and IAP capabilities Upto 96 kB on chip SRAM a EE 786 Upto 4 kB on chip EEPROM External Memory C
22. Add Group to create different groups to which the corresponding code will be added for example a group named Drivers to which driver source files will be added later IAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help Deus Workspace E Debug alee salle Options Mr yE er B Make Compile Rebuild All Clean Stop Build Remove Rename Version Control System Open Containing Folder File Properties Figure 48 Create New Groups 6 After all the necessary groups are added right click each group and select Add gt Add Files to add relevant source code IAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help a IVER PC SP EH RWS ES Files E Output E G Test Debug H Compile Rebuild All Version Control System L Add one or more files to the project Pl Add Files Add Group Figure 49 Add Source Code to Groups Page 49 t A Premier Farnell Company 7 After all the files are added right click the project name and select Options to open the window below Options for node Test Category General Options C C Compiler Assembler Output Converter Custom Build Build Actions Linker Debugger O Core Cortex M3 Dima NKP LPC1788 Processor variant Simulator
23. Company 5 Copy the folder Folder and the file FILENAME R txt from X Codes Peripheral_Examples 14 USB_HOST Usb_MassStorage where X is the label of CD ROM drive to a flash drive and then insert the drive into the USB interface of the EDM1070xx the HyperTerminal window displays information as shown below KKEKKKKKKKKKKKKKKKKK KK KK KK KK KK KKK KKK KK KKK KK KKK KK KKK KKK KEKKKKKKKKKKKKKKKKKKK Hello NXP Semiconductors USB Host MassStorage test or debug mode demo MCUs peil ies Lied Skor gt Corses Cortex MoMA Comuunicate vias VARIO 15200 loss kkxkxkxkxkxkxkxkxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkxkxk kkkkkkkkkkkkkkkkkkkkk Wait for the mass storage device to connectHost Initialized Device Attached Device Enumeration Complete The mass storage device is connected Mass Storage Capacity 3 729492 GB Open a test fil FILENAME R txt mie esr Eben Conicet 135 hello The is the LPC43xx USB Test DEMO Writing to Folderl FILENAME W txt Copy completed Note 1 Due to the uncertainty of compatibility some USB flash drives may not work properly with this program Please try another drive if you encounter this issue 6 Connect the USB flash drive to your PC and check the contents of the drive to see if FILENAME R txt is copied to the folder Folder Page 62 t Premier Farnell Company 6 1 7 Emac_EasyWeb Program 1 Connect one leg of a 1
24. EDM1070xx Embedded Display Module User Manual Version 1 1 13 Jan 2014 t A Premier Farnell Company t A Premier Farnell Company Copyright Statement Unless otherwise specified the EDM1070xx series mentioned in this document includes but is not limited to the following products EDM1070A 01 EDM1070AR 01 EDM1070B 01 and EDM1070BR 01 EDM1070xx and its related intellectual property are owned by Shenzhen Embest Technology Co Ltd Shenzhen Embest Technology has the copyright of this document and reserves all rights Any part of the document should not be modified distributed or duplicated in any approach and form without prior written permission issued by Embest Technology Co Ltd Revision History 1 0 1 1 Version Date Description 04 10 2013 Original Version 13 01 2014 Localisation t A Premier Farnell Company Table of Contents 1 Product Overview aaugsregehegeregehEREEEEEREEEE KEREN ENEE EENS NR 1 HINN EPP ST benen 1 ESA dree nal EE A 1 3 Board Ke nde 3 1 4 System Block Ee e E 4 1 5 Physical DimenSlOAS sirenenet nennen 5 2 Hardware Features nnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnvunnnnnnnnnnnuunnnnnnnnnnn 6 VPN 6 2 2 On Board Memories EE 7 2 3 Communication Interfaces annnunnnnnnnnnnnnnnnnnnnnnnnnnnnnenennnnn 7 2A ee EE 8 2 5 Electrical Features Jason 8 3 Hardware Details kennende unde kauw wedenn 9 Sel CPU ge ge WEE 9 3 2 Interface Introduction 442252 svsvmrmssocessc
25. Hello NXP Semiconductors SD MMC FAT file system module RO 08a demo MCUs lpeildrs lpetdss Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps This example is used to demonstrate how to implement a filesystem using MCI FatFs a generic FAT file system module for small embedded systems is used in ver RO 08a KKEKKKKKKKKKKKKK KK KK KK KK KK KKK KKK KKK KK KK KK KK KKK KK KK KKK kk Kk AA KKK KKK KKK KKK Create a new fil Mello ter Write a text data hello txt 14 bytes written Close the file read the file hello txt Type the file content hello txt Hello world Close the file hello txt Test complete Note This program passed the test on 1GB 2GB Kingston and 2GB SanDisk TF cards but it does not mean all the TF cards will work properly with the program 6 1 18 Wdt Interrput Program 1 Connect the UARTO 6 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on EDM1070xx to your PC with a cross over serial cable 2 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Page 74 t A Premier Farnell Company 3 Power on the EDM1070xx and recompile the project and then download it to flash 4 Reboot the EDM1070xx the HyperTerminal window displays information as shown below FOI IOI IC IC III IIA I III II 2e IC I IH FOR IR IO KA KKK Hello NXP Semiconductors Watch dog timer interrupt test or debug mode
26. K KK KKK KK KK KK KKK KK KK KKK KKK KK KKK KK kk KKK AAA AHA Sending ee Receive ACK Sending Receive SSIACHIAG 5 5 0 Receive ACK Sending Receive Sendingene Receive ACK Page 77 t A Premier Farnell Company 6 1 21 Pwr_DeepSleep Program 1 Connect the WEAKUPO pin 13 pin of ADC amp WEAKUP connector in Figure 1 on page 3 to ground 2 Connect the UARTO 6 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable 3 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 4 Power on the EDM1070xx and recompile the project and then download it to flash 5 Reboot the EDM1070xx the HyperTerminal window displays information as shown below FOI IOI IC IC III II IC IO III III ICI I ee XX XX KKK KO EH AH Hello NXP Semiconductors Power control demo MCU lpcl8xx lpc43xx Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps This example used to enter system in deep sleep mode and wake up it by using WAKEUPO pin KKEKKKKKKKKKKKKKKKKKKK KK KK KK KK KK KK KKKKKKKKKKKKKKKKKKKK KKK KKK KKK KKK KKK KKKAEKKKKKKKKK Riess WILY wn ieee CE Enter deep sleep connect WAKEUPO pin to 3 3V to exit Waked up from deep sleep 6 Type 1 in the HyperTerminal window to instruct the system to enter deep sleep mode and then connect the WEAKUPO pin to a 3 3V power supp
27. ND ARM LIMITED ARM FOR THE USE OF THE SOFTWARE ACCOMPANYING THIS LICENCE ARM IS 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 w IV agree to all the terms of the preceding License Agreement Keil p 4 Setup lt Back Care Figure 15 License Agreement 4 Click Browse in the window shown below to specify an installation path and then click Next Setup BDE ARE 4 22a Folder Selection KE i L Select the folder where SETUP will install files Tools by ARM SETUP will install ma Visiond in the following folder To install to this folder press Met To install to a different folder press Browse and select another folder r Destination Folder C Keil Browse Figure 16 Specify the installation path 5 Enter user information such as name company name and email and then click Next to start file installation process Page 29 t A Premier Farnell Company Setup BEDE ARE 4 22a Customer Information D KE E 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 Name Last Name Company Name E mail lt lt Back Next Cancel Figure 17 Enter User Information 6 After file installation is completed keep the default set
28. P IP implementation is to reduce the RAM usage while still having a full scale TCP This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM More information about lwIP can be found at the lwIP homepage at http www sics se adam lwip Lg internet Figure 70 1wIP Landing Page Page 83 t A Premier Farnell Company 6 2 4 uCOS II amp emWin518 Example Program 1 Power on the EDM1070xx open the Gpio_LedBlinky program and compile it and then download it to flash Reboot the EDM1070xx the LCD will display the demonstration images of emWin and LED2 on the EDM1070xx will be blinking constantly Use a stylus to press the Next and Halt buttons on the screen to fast forward and stop the demonstration 6 2 5 uCOS II Example Program 1 Power on the EDM1070xx open the Gpio_LedBlinky program and compile it and then download it to flash Reboot the EDM1070xx LED2 on the EDM1070xx will be blinking constantly Page 84 t A Premier Farnell Company 7 Function Test The testing entries listed in the following table can help users verify the function of the peripherals on the EDM1070xx 7 1 Function Test Table Entries Descriptions Please refer to 6 1 2LCD Touch Program and 6 1 3 Lcd Demo LCD amp Touch Screen Program USB Device Please refer to 6 1 4 USB DEV Usb MassStorage Program USB Ho
29. PIO 1250 TX SCK 5 D 2 GPIO I250 RX SDA 6 PC 12 GPIO 1250 TX SDA 7 P6 1 GPIO 1250 RX WS 8 PC 13 GPIO 1250 TX WS Page 19 t A Premier Farnell Company 12S 12C GPIO Interfaces Pins Definitions Descriptions 9 I2CO_SCL I2C clock input output 10 PC_2 GPIO 11 I2CO SDA I2C data input output 12 PC 3 GPIO 13 P8 0 GPIO 14 PC 9 GPIO 15 P8 1 GPIO 16 PC 11 GPIO 17 P8 2 GPIO 18 PC 14 GPIO 19 P8 8 GPIO 20 GND GND 3 2 16 Camera Interface CON16 Camera Interface Pins Definitions Descriptions 1 GND1 GND 2 DO NC 3 D1 NC 4 D2 Digital image data bit 0 5 D3 Digital image data bit 1 6 D4 Digital image data bit 2 7 D5 Digital image data bit 3 Page 20 t A Premier Farnell Company Camera Interface Pins Definitions Descriptions 8 D6 Digital image data bit 4 9 D7 Digital image data bit 5 10 D8 Digital image data bit 6 11 D9 Digital image data bit 7 12 D10 NC 13 D11 NC 14 GND2 GND 15 PCLK Pixel clock 16 GND3 GND 17 HS Horizontal synchronization 18 VDD50 NC 19 VS Vertical synchronization 20 VDD33 3 3V power 21 XCLKA Clock output a 22 XCLKB NC 23 GND4 GND 24 FLD NC 25 PWR Power Enable 26 RST Reset the camera 27 SDA I2C master serial clock 28 SCL I2C serial bidirectional data 29 GND5 GND 30 VDDIO 3 3V for 1 0 Page
30. RTO Auto Baud rate mode used KKEKKKKKKKKKKKKKKKKKKK KK KK KK KK KK KK KKK KKK KK KK KKK KK KKK KKK kk KKK KKK KK KKK KKK XX a e Type any character and the HyperTerminal window will respond with the same character e Typerto show the welcome string again e Press ESC on your keyboard to terminate the program 6 1 20 Uart Rs485Master amp Uart_Rs485Slave Program 1 Connect the RS485 interfaces 15 and 2 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 of two EDM1070xxs to each other as shown below EDM1070N 1TR RS485 Master Figure 68 Connection between two EDM1070xx Page 76 t A Premier Farnell Company Connect the UARTO eh 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on one EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Power on both EDM1070xxs and recompile the Uart Rs485Master and Wart Rs485Slave projects and then download them to the flash on the master the one that connected with a cross over serial cable and the slave respectively Reboot both EDM1070xxs the HyperTerminal window displays information as shown below KkAAAAAAAAAAA AAA AAA KKK AAA AAA KKK KK KR AAA AAA AAR AA AA AA AAA AAA kk KKKKKKKK Hello NXP Semiconductors RS485 demo MCUs pele Lee See Core ARM CORTEX M3 M4 RS485 demo in Master mode kkk AA KKK KKKK KKK KK
31. amming algorithms If LPC17xx IAP 512kB Flash is already in the list of Programming Algorithms there is no need to add it again and you can jump to step 4 4 Select LPC17xx IAP 512Kb Flash in the pop up window as shown below and click Add Add Flash Programming Algorithm LPC122IAP 64kB Flash LPC1 0130 IAP 8kB Flash LPC122x IAP 80kB Flash LPC122x IAP S6kB Flash LPC1Ac IAP 128kB Flash LPC1 Ac IAP 256kB Flash LPC1 Aa IAP 32kB Flash LPC1 Ax IAP 512kB Hash LPC1 Ac IAP 64kB Flash MBSBF500 256kB Flash MBSxFie1 64kB Flash MBSxFix2 128kB Flash MBSxFax4 256kB Flash MBSxFix5 384kB Flash MBSxha6 512KB Flash MDR32Fx 128kB Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash On chip Flash Figure 41 Add a Flash Programming Algorithm 5 Click OK twice to go back to the uVision4 window Page 44 t A Premier Farnell Company 6 Click the Download button Gi on the tool bar of the uVision4 window to start flash programming Wp 15Bc1788 CD ROM code LPC177x_8x_StdPeriph Demo Examples 16 GP10 GP10_LedBlinky Keil Gpio_LedBlinky uv THX zarae o oem SEA Target CI Startup a Otem heap area 40 Drivers Fa Main int main void B Gpio Led t Gy Readne return c_entry VE Bi V Build Ou
32. ay Driver DLL Parameter SARMCM3 DLL MPU Dialog DLL Parameter TARMP1 DLL pLPC1788 Figure 43 Debug Settings Page 45 t A Premier Farnell Company 8 Check the radio button Use at the top right of the Debug tab and select ULINK Cortex Debugger in the corresponding drop down menu and then click OK 9 Click the Debug button a on the tool bar of the uVision4 window as shown below to start online debugging Wp SBC1788 CD RON code LPC1T7x_8x_StdPeriph Demo Exaaples 16 GPIO GPIO _LedBlinky Keil Gpio_LedBlinky uv EIS Eile Edit View Project ash Debug Peripherals Jools SV Help BP hannelval 2 ppo gt p aGE A 10 9 m 2 E CEA EE 224 return c entry Ox00000F64 OFA4 LSRS 0x00000F86 0000 Mous 0x00000F88 0000 Mous Ox00000F82 1000 ASRS int main void return c entry r4 r4 30 r0 r0 r0 r0 r0 r0 0 LOAD FLASH Gpio LedBlinky axf INCREMENTAL SG e Downlot 0x00000F80 setup Setup for Runnin a gt ASSIGN BreakDisable BreakEnable BreakKill BreakList Type int 0 Enter or leave a debug sess Figure 44 Start Debugging Page 46 t A Premier Farnell Company 5 2 Development Based on IAR EWARM The following content is composed of two parts which introduce how to create and compile IAR projects as well as program and debug the compiled files 5 2 1 Creating New Project Compiling 1 Launch the
33. cle Bin New Folder Figure 58 EDM1070xx as a USB Mass Storage Device Page 59 t A Premier Farnell Company 6 1 5 USB DEV Usb Cdc Program 1 Connect the EDM1070xx to your PC with a USB A Male to Mini B Male cable Connect the UARTO 6 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx The board will be recognized as a virtual serial device and the LED6 indicator lights up You can find a serial device named LPC43xx USB VCOM Port COMx under the Ports COM amp LPT branch in the Device Manager window of your PC as shown below a Computer Management Dow a Fie Action View Window Help Om S 2m a Re D Computer Management Local System Tools Fa Event Viewer Shared Folders 2 Local Users and Groups E gil Performance Logs and Alert 2 Device Manager B En Storage Removable Storage Disk Defragmenter Disk Management E En Services and Applications le 2 ver era1 d Computer ze Disk drives S Display adapters ig Human Interface Devices IDE ATA ATAPI controllers gt Keyboards Mice and other pointing devices 2 Monitors B Network adapters
34. cts and components on the board e Take care when connecting or disconnecting cables A damaged cable can cause a short in the electrical circuit e Prevent damage to the connectors by aligning connector pins before you connect the cable Misaligned connector pins can cause damage to system components at power on e When disconnecting a cable always pull on the cable connector or strain relief loop not on the cable itself Warning This is a class A product In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures Page 86 t A Premier Farnell Company Appendix 2 Technical support amp Warranty Embest Technology Co Ltd established in March of 2000 is a global provider of embedded hardware and software Embest aims to help customers reduce time to market with improved quality by providing the most effective total solutions for the embedded industry In the rapidly growing market of high end embedded systems Embest provides comprehensive services to specify develop and produce products and help customers to implement innovative technology and product features Progressing from prototyping to the final product within a short time frame and thus shortening the time to market and to achieve the lowest production costs possible Embest insists on a simple business model to offer customers high performance low cost products with the best qualit
35. demo gt MCU lpcl8xx lpc43xx gt Core Comic MSA Communicate via UARTI 115200 bps kKkkkkkkkKKKKKKKKKKK KKK AAA AAA KKK KKK KK KKK ARA AAA AK AAA AAA AA kkk AA KKK AAA AA AAR XX XX Watchdog ts frequently fed by SysTick Handler Rress 1 to disable feeding Watchdog timer Press 2 to enable feeding Watchdog timer Disable feeding Warning watchdog timeout Warning watchdog timeout Warning watchdog timeout Enable feeding Type 1 to stop erasing the number counted by WDT and WDT interrupts will be generated Type 2 to erase WDT interrupts every 500ms and WDT interrupts will no longer be generated 6 1 19 Uart_Autoband Program 1 Connect the UARTO 6 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable 2 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Note The Uart_Autoband program requires a HyperTerminal configured at a baud rate lower than 115200 Page 75 t A Premier Farnell Company 3 Power on the EDM1070xx and recompile the project and then download it to flash 4 Reboot the EDM1070xx and type a to enter auto baud rate mode as shown below AutoBaudrate Status Synchronous KKEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKK Hello NXP Semiconductors UART Auto Baudrate demo MCUs eege d Moe kr Core ARM CORTEX M3 M4 UA
36. emseuesenssetenmessteus 9 3 2 1 Power Jack 12 aanvaarden wens van NES deed NK SNE ANN ne 9 3 2 2 Ethernet Interface 13 Lua ansvaret 10 3 2 3 USB Device Interface J4 NNN NNN NENNEN NNN NNN NENNEN NNN NENNEN NNN NN 11 3 2 4 USB Host Interface J5 eer envenvenvenvenvnn venen dennen 11 3 2 5 TF Card Slot CONI visast STG 11 3 2 6 LCD Interface CON2 nnen senen ennen venveneenvenenn venen ennen nn 12 3 2 7 Touchscreen Interface CON3 CONI5S N ennen neneeneeneen eenen 14 3 2 8 UART and RS485 Interfaces CON4 neee eneen eneen een 15 3 2 9 UART3 and CAN Interfaces CONS nnee ennen venen eenen 15 3 2 10 JTAG Interface CON6 ENNEN 16 3 2 11 Isolated GPIO Interface CON7 CON14 nnee eneen 17 t A Premier Farnell Company 3 2 12 SPIFI Interface CON10 NENNEN 17 3 2 13 SGPIO Interface CON11 sise 18 3 2 14 ADC DAC GPIO Interfaces CON12 annen eenen eneen enn 18 3 2 15 12S I2C GPIO Interfaces CON13 eeneeneenven eneen ennen 19 3 2 16 Camera Interface CON16 aanne nennen ss 20 4 Preparations anasannsenassnsennsnnnnsenstensdennsnnndenssnnsdennsnsnisnsennsin 22 4 1 Configuring HyperTerminal ENEE eneen erneer venne 22 4 2 Configuring the Network 24 4 3 Installing the Kell MDK ae Deg Been egene egene D eg ege ee A 28 4 4 Installing TAR EWARM zonscssrseresermernaarvrenenesweennnenendeandt einde 33 5 Software Development Process nee EEN EEN unn 38 5 1 Development Based on the Keil MDk ennen 38
37. erTerminal window displays MCUs KEKKKKKKKKKKKKKKKKKKK Hello NXP Semiconductors NANDFLASH K9F1G08U0B testing lise l zcx lie dze KKEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKAKKKKKKKKKKKKKKKKKKKKKKKKKK Page 68 t A Premier Farnell Company Core ARM Cortex M3 M4 UART Comunication 115200 bps Write and verify data with on board NAND FLASH KkAAAAAAAAAAA AAA RAA KKK KKK KKK KK AA ARA AAA AA KKK AA AR AAA AAA AA Kk AA KKK KK AAA AAR XX XX Init NAND Flash Read NAND Flash ID OxECF19500 Erase entire NAND Flash Erase NAND Flash fail at block 0000000491 Erase NAND Flash fail at block 0000000666 Select block 0000000006 Select Page 0000000009 Write a block of 2K data to NAND Flash Read back a block of 2K data from NAND Flash Verify datane Verifying okay Testing terminated 6 1 12 Emc_Sdram Program 1 Connect the UARTO eh 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx the HyperTerminal window displays information as shown below kKkkkkktkkKKKKKKKKKKK KKK KKK KK KKK KKK KKK KK KK KKK KKK KK KKK kkk AA KKK KK KK KKK XX XX Hello NXP Semiconductors Ex SDRAM Demo MCUs
38. g Page 58 t A Premier Farnell Company 6 1 3 Lcd_Demo Program de 2 Open the Lcd Demo project Power on the EDM1070xx recompile the project and download it to flash Reboot the EDM1070xx the LCD will display 3 colours green blue and red circularly 6 1 4 USB DEV Usb MassStorage Program 1 Connect the EDM1070xx to your PC with a USB A Male to Mini B Male cable Connect the UARTO 6th 7th and 8th pins of the RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx The board will be recognized as a USB mass storage device by the PC You can find a file named README TXT by opening the drive LPC4300 USB in the My Computer window s PC File Edit View Favorites Tools Help on our as y Back v gt Ki gt Search Er Folders Ez shown right Address Ses Hi Folders x eren README E Desktop Text Document E B My Documents 3 My Computer See Local Disk C Ip ep Local Disk D Ip Se Local Disk E Ip ze Local Disk F S t Removable Disk G Ge 1PC4300 USB Hi E G Control Panel amp Shared Documents amp C3 123 s Documents amp gk41 s Documents ei My Network Places Recy
39. he MDK projects contained on the CD ROM provided with the board are created using MDK 4 60 You can download the latest version from Keil s official website www keil com The following content will show you how to install the Keil MDK integrated development environment using MDK 4 22a as an example 1 Launch the installation package to open the window shown below Setup RDE AER 4 22a Welcome to Keil u Vision KE l L Release 9 2011 Tools by ARM This SETUP program installs MDK ARM V4 22a This SETUP program may be used to update a previous product installation However you should make a backup copy before proceeding It is recommended that you exit all Windows programs before continuing with SETUP Follow the instructions to complete the product installation Next gt gt Figure 14 Installation Program 2 Click Next to continue 3 Check I agree to all the terms of the preceding License Agreement and click Next in the window shown below Page 28 t A Premier Farnell Company Setup EDK ARE V4 22a License Agreement KE l L Please read the following license agreement carefully Tools by ARM To continue with SETUP you must accept the terms of the License Agreement To accept the agreement click the check box below END USER LICENCE AGREEMENT FOR MDK ARM THIS END USER LICENCE AGREEMENT C LICENCE IS A LEGAL AGREEMENT BETWEEN YOU EITHER A SINGLE INDIVIDUAL OR SINGLE LEGAL ENTITY A
40. ial clock for SPI SSPO SPIFI 8 PE_4 GPIO SPIFI_MISO Master In Slave Out for SPI SSPO SPIFI 10 GND GPIO Page 17 3 2 13 SGPIO Interface CON11 t A Premier Farnell Company SGPIO Interface Pins Definitions Descriptions 1 PI A SGPIO11 2 VDD3V3 3 3V power 3 P6_7 SGPIO6 4 VDD3V3 3 3V power 5 P9_4 SGPIO4 6 P9_3 SGPIO9 7 PD_7 SGPIO11 8 PD 8 SGPIO12 9 PD 9 SGPIO13 10 GND GND 3 2 14 ADC DAC GPIO Interfaces CON12 ADC DAC GPIO Interfaces Pins Definitions Descriptions 1 CLK1 Clock output pin 1 2 VDD3V3 3 3V power 3 GND GND 4 P4 A DAC output 5 ADCO ADC input channel 0 6 ADC1 ADC input channel 1 7 ADC2 ADC input channel 2 8 ADC3 ADC input channel 3 9 ADC4 ADC input channel 4 Page 18 t A Premier Farnell Company ADC DAC GPIO Interfaces Pins Definitions Descriptions 10 ADC5 ADC input channel 5 11 ADC6 ADC input channel 6 12 ADC7 ADC input channel 7 13 WAKEUPO External wake up input 14 WAKEUP1 External wake up input 15 WAKEUP3 External wake up input 16 WAKEUP4 External wake up input 17 P4 3 GPIO 18 PE 9 GPIO 19 P7 5 GPIO 20 GND GND 3 2 15 I2S I2C GPIO Interfaces CON13 12S 12C GPIO Interfaces Pins Definitions Descriptions 1 CLK2 Clock output pin 2 2 VDD3V3 3 3V power 3 P6_0 GPIO 12S0_RX_SCK 4 P3 0 G
41. ingly 6 1 8 Adc_ Polling Program 1 Connect the one leg of a 10K potentiometer to a 3 3V input another to ground and the center leg to the ADC2 pin of the EDM1070xx the 4 pin of ADC amp WAKEUP connector in Figure 1 on page 3 2 Connect the UARTO e 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable 3 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 4 Power on the EDM1070xx and recompile the project and then download it to flash 5 Reboot the EDM1070xx When the potentiometer is being turned the voltage value converted by the ADC changes accordingly in the HyperTerminal window as shown below KkkAAAAAAAAAAA AAA RAA KKK AAA AAA KK KKK KK AAA AAA ARA AAA AR AAA AAA AA KKKKKKKKKKKK Hello NXP Semiconductors ADC POLLING example MCU lpolse lpoddser Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps Use ADC with 12 bit resolution rate of 200KHz read in POLLING mode To get ADC value and display via UART interface urn the potentiometer to s ADC value changes KKEKKKKKKKKKKKKKKKKKKK KK KK KK KK KKK KKK KKK KK KK KKK KK KKK KK KK KKK KK KRAKK is 0000000807 is 0000000808 is 0000000808 is 0000000808 is 0000000806 is 0000000806 DC value on channel DC value on channel DC value on channel DC value on channel DC value on channel D D D Pp pP DP
42. ion Uart_Rs485Slave Slave application for RS485 communication Showing how to use the programming function OTP OTP_API of on chip OTP Page 57 t A Premier Farnell Company Name of Example Programs Descriptions System enters deep power down mode and is Pwr_DeepPowerDown waked up by RTC interrupt System enters deep sleep mode and is waked Pwr_DeepSleep up by an external interrupt PWR System enters power down mode and is Pwr_PowerDown waked up by NMI interrupt System enters sleep mode and is waked up by Pwr_Sleep W WD interrupt Int_Demo Interrupt configuration of LPC43xx M4 and MO Using mailbox to realize communication Mbx_Demo DUALCORE between LPC43xx M4 core and MO core Using queue to realize communication Queue Demo between LPC43xx M4 core and MO core Note The LPC1857FET256 based EDM1070xx does not support DUALCORE example programs 6 1 2 LCD Touch Program 1 Open the Lcd Touch project 2 Power on the EDM1070xx recompile the project and download it to flash 3 Reboot the EDM1070xx and use a stylus to touch the points which are marked with symbols on the screen to implement calibration When please touch the screen appears on the screen use a stylus to touch a random point on the screen The voltage value generated will be converted by the ADC and displayed on the screen coordinates along with the correspondin
43. kk AA KKK KK KKK KKK Hello NXP Semiconductors RTC demo MU Lee Biesen Zeg Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps A simple RTC Calendar example To generat interrupt in Second Counter Increment Interrupt 1s KkkKKKK KK KKK KKK KKK KK KKK KK KK KKK KK KK KKK KK KKK KK KKK KK KK KKK KKK KK KKKK KK XX AA Current time set to 08 00 00 28 02 2013 Current wine s 08 00 05 28 02 2013 Current time 08 00 06 28 02 201 Current time 08 00 07 28 02 201 Current time 08 00 08 28 02 201 Current time 08 00 09 28 02 201 Eeer time 3 0200 10 28 02 201 Current time 08 00 11 26 02 201 Current time 08 00 12 28 02 201 Current tame 3 O8 00518 28 08 2011 eg OG Ld LA 9 LA LD CS 6 1 17 Sdio_FatFs Program 1 Connect the UARTO 6th 7th and 8th pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable 2 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 3 Insert a TF card in the TF card slot marked as Micro SD in Figure 1 on page 3 on the EDM1070xx 4 Power on the EDM1070xx and recompile the project and then download it to flash 5 Reboot the EDM1070xx the HyperTerminal window displays information as shown on the next page Page 73 t A Premier Farnell Company kkk AA AAAA AAA A KK KK KKK KK KK KK KK AAA AAA AR KKK KKK KKK AKA KKK AA kk KKEKKKKKKKKKKKKKKKKKKK
44. l Example Project files of the LPC4357 s basic peripheral example programs The table on the next page lists all the basic example programs for peripherals and the relevant descriptions This section will choose a part of the example programs to introduce the detailed operations Page 55 Example Programs t A Premier Farnell Company Name of Example Programs Descriptions Adc_Burst Using AD conversion under burst mode Using AD conversion function and transferring Adc_Dma AD conversion results under DMA mode ADC Adc_Interrupt Using AD conversion under interrupt mode Adc_Polling Using AD conversion under polling mode ATIMER Atimer Wic Using Alarm Timer to wake up system CCAN Ccan SimpleTxRx Using CAN to receive and transfer data EMAC Emac EasyWeb A simple web application Emc NandFlash Writing and calibrating on board NAND Flash EMC Emc Sdram Writing and calibrating on board SDRAM Testing GPDMA General Purpose Direct Gpdma_Flash2Ram Memory Access by data transfer from Flash to RAM GPDMA Testing GPDMA General Purpose Direct Gpdma_Ram2Ram Memory Access by data transfer from RAM to RAM GPIO Gpio_LedBlinky Using GPIO to drive LED I2C I2C EEPROM Using I2C to drive EEPROM Using LCD controller of LPC4357 to drive LCD Lcd Demo LCD module Lcd Touch Configuring LCD and calibrate touch screen Nvic VectorTableRelocati i NVIC Relocating vector table on Generating interrupts in
45. le the project and then download it to the flash on one of the two EDM1070xx Project DH main c 35 EN Internal Flash Example group Startup 36E Bdefgroup CCan SimpleTxRx CCan Simple 19 CHSIS 37 t Bingroup C CAN Examples Drivers 38 Bi E Main 39 f A main c 40 Readme 41 fRKKKKAARAAR KARR KAR KARA eATe PRIVATE DEFINTI 42 define MASTER 1 43 define SLAVE 2 44 define CAN MODE MASTER 45 46 define CAN SET LPC C Cand Figure 65 CAN Configured as Master Mode 6 Configure Slave mode according to the figure shown below and recompile the project and then download it to the flash on the other EDM1070xx Project CIE ZC Internal Flash 0 Startup aot Exagple GROUP sso CTT ene 36 defgroup CCan_SimpleTxRx CCan Simple SE CMSIS 37 Bingroup C CAN Examples Drivers 38 Bi ae Main 39 S ES ES main c 40 en Readme 41 fRRHAEAAARARAAAAAAKARARATES PRIVATE DEFINTI 42 define MASTER 1 43 define SLAVE 2 44 45 46 define CAN SET LPC_C_Cand Figure 66 CAN Configured as Slave Mode 7 Reboot both EDM1070xxs the HyperTerminal window displays information as shown below KkA AA AAAR AAA AA AAR KK KKK AAA AAA AAA AAA AR KK KK KK KK KKK KK ARA AAA AA KKK KKK KKK KK KKK Hello NXP Semiconductors CCAN Simple RxTx demo MU Leeft Ire Mes Core ARM CORTEX M3 M4 Communicate via UARTO 115200 bps This example u
46. ly to wake up the system from deep sleep mode Page 78 6 1 22 Mbx Demo Program 1 t A Premier Farnell Company Connect the UARTO eh 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable HyperTerminal on page 22 information as shown below Open HyperTerminal on your PC please refer to 4 1Configuring Power on the EDM1070xx open the MO_ Project and compile it Open the M4 Project compile it and then download it to flash Reboot the EDM1070xx the HyperTerminal window displays LPC4300 gt MO Sending M4 gt MO Sending M4 gt MO Sending 4 gt MO Sending 4 gt MO Sending 4 gt MO Sending 4 gt M8 4 gt MO Sending 4 gt MO Sending 4 LONEN gt MO Sending M4 gt MO Sending Mas MD Startec KEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK Cortex M4 Cortex MO 1pc4300 has two cores LPG4300 HAS TWO CORES request for pow 0 3 OSE EO heureka akerueh 1pc4300 has two cores LPC4300 HAS TWO CORES request r pow 1 3 ES heureka akerueh 300 has vwo cores LPC4300 HAS TWO CORES request for pow 2 3 7 2 B 8 heureka akerueh processed 9 calls 1pc4300 has two cores LPC4300 HAS TWO CORES request for pow 3 3 SRA KAA AA AA AA AA AA AA KK AA AA AA AA AA KK AA AA KKK inside INSIDE i
47. m Timer Waked Up by Alarm Timer Waked Up by Alarm Timer Page 65 t Premier Farnell Company 6 1 10 Ccan_SimpleTxRx Program 1 Connect the CAN interfaces of two EDM1070xx to each other as shown below 5 and 6 pins of CANO or 7 and 8 pins of CANT on UART3 amp CANO 1 connector in Figure 1 on page 3 EDM1070N 1TR EDM1070N 1TR 1 2 CAN Master Figure 63 Connection of Two EDM1070xxs 2 Connect the UARTO e 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on one of the two EDM1070xxs to your PC with a cross over serial cable 3 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 4 Open the project and expand the Main entry in the tree view of the uVision4 window double click main c and configure the CAN channel that will be tested CANO by default as shown below e el 2 Project GEI Aie 43 Internal Flash 35 Example group Startup 36 defgroup CCan SimpleTxRx CCan SimpleTxF Gj CMSIS 37 Bingroup C CAN Examples 09 Drivers 38 Hi ge up CH Main 39 Le D 09 Readme 41 ZSrrsssrsssrsssessrsssrsssrz PRIVATE DEFINTIONS 42 define MASTER 1 43 define SLAVE 2 44 define CAN MODE MASTER 45 46 define CAN SET LPC C CAN Figure 64 CAN Configuration Page 66 t Premier Farnell Company 5 Configure Master mode according to the figure shown below and recompi
48. n data 26 Gi Green data 27 GO Green data LSB 28 R7 Red data MSB 29 R6 Red data 30 R5 Red data 31 R4 Red data 32 R3 Red data 33 R2 Red data 34 R1 Red data 35 RO Red data LSB 36 GND GND 37 DCLK Sample clock 38 GND GND 39 L R Left right selection 40 U D Up down selection 41 VGH Gate ON Voltage Page 13 t A Premier Farnell Company LCD Interface Pins Definitions Descriptions 42 VGL Gate OFF Voltage 43 AVDD Power for Analog Circuit 44 RESET Global reset pin 45 NC connection 46 VCOM Common Voltage 47 DITHB Dithering function 48 GND GND 49 NC connection 50 NC connection 51 Gi Connect to GND 52 G2 Connect to GND 3 2 7 Touchscreen Interface CON3 CON15 Touchscreen Interface Pins Definitions Descriptions 1 X Left electrode 2 Y Bottom electrode 3 X Right electrode 4 Y Top electrode 5 G1 Connect to shield 6 G2 Connect to shield Page 14 3 2 8 UART and RS485 Interfaces CON4 t A Premier Farnell Company UART amp RS485 Interfaces Pins Definitions Descriptions 1 RS485A RS485 signal A 2 RS485B RS485 signal A 3 GND GND 4 UART2 TX UART2 Receive data 5 UART2 RX UART2 Transit data 6 GND GND 7 UARTO TX UARTO Receive data 8 UARTO RX UARTO Transit data 3 2 9 UART3 and CAN Interfaces CON5 UART3 amp CAN In
49. ng by following the steps listed below 1 Right click Target1 in the tree view of uVision4 window and select Options for Target Target1 and then select the Utilities tab in the pop up window as shown below W Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Configure Flash Menu Command e Use Target Driver for Flash Programming ULINK Cortex Debugger v Settings Iw Update Target before Debugging er e Init File lass ED BES Signum Systems JTAGjet PU Ese Cortex M R J LINK J Trace ST Link Debugger ULINK Pro Cortex Debugger Command NULink Debugger Figure 39 Utilities Tab 2 Check the radio button Use Target Device for Flash Programming and the checkbox Update Target before Debugging select ULINK Cortex Debugger in the corresponding drop down menu and then click Settings 3 Select the Flash Cortex E Target Driver Setup Down load ta b Debug Trace Flash Download i Download Function RAM for Algorithm In the pop up Vi 6 ee G SE Start x10000000 Size x0800 window as C Donot Erase J Reset and Run Programming Algorithm shown right LPC1 Zo IAP 512kB Flash On chip Flash 512k 00000000H 0007FFFFH Start Size EET Add Figure 40 Flash Download Settings Page 43 Click Add at the bottom of the window t A Premier Farnell Company Note The purpose of this step is to add necessary flash progr
50. nitor J Link 3 en TI re Device description file Tra ce In th e Macraigor Joverri de default p PE micro Driver drop RDI JTAGjet down menu ST LINK Third Party Driver TI XDS100 Figure 55 Downloading amp Debugging Tool Page 53 4 Click the Download tab and checkbox and then click OK Options for node Test Category General Options C C Compiler t A Premier Farnell Company check the Verify download Factory Settings Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions Linker Simulator Angel GDB Server Cl attach to progr M eri fr download CO Suppress download Duse flash loader Override default board file IAR ROM monitor TOOLKIT_DIR config flashloader NXP Flash T jet J Link J Trace TI Stellaris Macraigor PE micro RDI JTAGjet ST LINK Third Party Driver TI XDS100 Edit Figure 56 Check the Verify Download Checkbox 5 Select Project gt Download and Debug on the menu bar of the IAR Embedded Workbench IDE window to start downloading and debugging g bedded orkbe D LJ File Edit View Tools Window Help De Aan Pis dr SU ee EY Add Group fi rx Import File List Debug g z Edit Configurations Files a a Remove Gcsis Create New Project Drivers add Existing Projec
51. nside INSIDE inside INSIDE inside INSIDE Page 79 t A Premier Farnell Company Page 80 t A Premier Farnell Company 6 2 Application Programs Application programs are developed based on the basic examples in order to provide system level demonstration programs with extended features These programs include uC OS II GUI and LWIP examples The table shown below lists all the application programs and their corresponding descriptions This section will introduce the detailed operations required to run the application programs Application Programs Names Description Ethernet Example Implementing a HTTP server on the EDM1070xx emWin518 Exanple emWin GUI demonstration program uC OS II and emWin518 demonstration program uCOS II amp emWin518 Example uCOS II Example uC OS II application program 6 2 1 Camera_ Example Program 1 Connect the UARTO on EDM1070xx to your PC with a cross over serial cable 2 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 3 Power on the EDM1070xx and recompile the project and then download it to flash 4 Reboot the EDM1070xx and the LCD will display 640x480 images the HyperTerminal window displays information as shown on the next page Page 81 Type 1 to set the resolution of the camera to 640x480 Type 2 to set the t A Premier Farnell Company FOI IOI IRI D ARAI II
52. o damage caused by operations inconsistent with their specification Products are subject to damage in either appearance or function due to natural disasters flood fire earthquake lightning strike or typhoon or natural aging of components or other force majeure Products are subject to damage in appearance or function due to power failure external forces water animals or foreign materials Products malfunction due to disassembly or alteration of components by customers or repair by persons or organizations unauthorized by Embest Technology or alteration from factory specifications or configured or expanded with components that are not provided or recognized by Embest Technology Product failures due to the software or systems installed by customers inappropriate software settings or computer viruses Products purchased from unauthorized merchants Page 2 t Premier Farnell Company e Embest Technology takes no responsibility for fulfilling any warranty verbal or written that is not made by Embest Technology and not included in the scope of our warranty 3 Within the period of warranty the cost for sending products to Embest should be paid by the customer The cost for returning the product to the customer will be paid by Embest Any returns in either direction occurring after the warranty period has expired should be paid for by the customer 4 Please contact technical support with any repair requests Note
53. on process Page 36 t A Premier Farnell Company Click Install to begin the installation If you want to review or change any of your installation settings click Back Click Cancel to exit the wizard Install Cancel Figure 29 Select Install 10 Click Finish in the following window to finish the installation process IAR Embedded Workbench for ARE 6 40 2 Evaluation InstallShield Wizard Complete The InstallShield Wizard has successfully installed IAR Embedded Workbench for ARM Evaluation Click Finish to exit the wizard View the release notes Launch IAR Embedded Workbench for ARM Cancel Figure 30 Installation is Complete Page 37 t A Premier Farnell Company 5 Software Development Process After all the preparations are completed the development process can be started This chapter will introduce how to conduct software development under two different environments Keil MDK and IAR EWARM by using the development of NXP s LPC1788 processor as an example Note Development on the LPC4357 requires version 4 60 or higher of Keil MDK or version 6 40 or higher of IAR EWARM this document uses Keil MDK 4 60 and IAR EWARM 6 40 2 5 1 Development Based on the Keil MDK The following content is composed of two parts which introduce how to create and compile MDK projects as well as program and debug the compiled files 5 1 1 Creating and Compiling a New Project 1 Click K
54. ontroller EMC DMA controller GFDMA ET LPCTETU JTAG interface Serial Wire Debug and Serial Wire Trace Port options CO LPC1820 Four reduced power modes Sleep Deep sleep Power down Deep pou 3 LPC1830 Clocks O LPC1850 On chip crystal oscillator operating range of 1 MHz to 25 MHz O LPC2101 Figure 33 CPU Selection Page 39 t Premier Farnell Company 5 The following pop up window prompts you to determine if NXP LPC177x 8x Start Code should be copied to the project folder Yes is recommended ud Copy NXP LPC177x 8x Startup Code to Project Folder and Add File to Project No Figure 34 Adding Start Code 6 Right click the project Target1 in the tree view on the left part of the following window and select Add Group to create different groups to which the corresponding code will be added for example a group named Drivers to which the EDM1070xx s driver source files will be added later W D 15BC1788 CD ROM code LPC177x_8x_StdPeriph_Demo Examples Iest Iest_example MDE Jest uvp E II Bytes lt OxO OxFFFFFFFF 6 gt 0x00000200 STACK NOINIT READURITE ALIGN 3 Stack Size Figure 35 Add New Groups Page 40 t A Premier Farnell Company 7 After all the groups are created right click each group and select Add Files to Group to add relevant source code MD 15BC1788 CD RON code LPC177x 8x StdPeriph Demo Examples Test Test_example MDE Te
55. ove Rename Version Control System gt Open Containing Folder File Properties t as Active D My Documents Test ewp LSSUE se 4 fj rx Figure 53 Recompile the Project 13 Now the creation and compilation of a new project has been completed successfully Page 52 t A Premier Farnell Company 5 2 2 Programming and Debugging 1 You can now proceed with flash programming and debugging by following the steps listed below 2 Right click the Options for node Test project name i E on the left side of th e IA R C C Compiler Assembler Embedded Output Converter Target Output Library Configuration Library Options M Custom Build Workbench reise Processor variant inker IDE win d OW Debugger O Core M Simulator Device NAP LPC1788 Angel an d sel ect GDB Server O pt i ons to ee EE J Link J Trace I 0 pe n t h e TI Stellaris following bes window Third Party Driver TI XDS100 Figure 54 Project Options Window 3 Click Options for node Test Debugger on the left side of General Options i C C Compiler th e win d ow Assembler Les Output Converter etup Download Images Extra Options Plugins and select the Eeer e Build Actions Driver Eun to Setup ta b in Linker J Link J Trace v main CEE setup macros the right part leng Cluse macro file s and then select GDB Server IAR ROM mo
56. ovides DSP and MCU application developers with a signal architecture and development environment The family of the processors works at 204MHz and integrates on chip high speed memory and abundant peripheral interfaces 3 2 Interface Introduction The EDM1070xx provides many different on board interfaces such as RS232 Ethernet USB Host Device TF card and LCD interfaces This section will give you a brief introduction for each of these interfaces 3 2 1 Power Jack J2 Input Power Jack Pins Definitions Descriptions 1 12V Input power jack 2 GND Grounded 3 GND Grounded Page 9 t A Premier Farnell Company Output Power Jack Pins Definitions Descriptions 1 12V Output power jack 2 GND Grounded 3 GND Grounded 3 2 2 Ethernet Interface J3 Ethernet Interface Pins Definitions Descriptions 1 TX TX output 2 TX TX output 3 RX RX input 4 CT CT 5 CT CT 6 RX RX input 7 NC NC 8 SHIELD Shield 9 LED1 LINK LED 10 VDD3V3 3 3V Power for LED 11 LED2 SPEED LED 12 VDD3V3 3 3V Power for LED 13 4 amp 5 Connect to shield 14 7 amp 8 Connect to shield 15 NC NC 16 NC NC Page 10 3 2 3 USB Device Interface J4 t Premier Farnell Company USB OTG Interface Pins Definitions Descriptions 1 VBUS 5V 2 D USB Data 3 D USB Data 4 ID USB ID 5 GND GND
57. replies from the board FINDOES systen32 ping exe Pinging 192 168 1 with 32 bytes of data Reply from 192 168 Reply from 192 168 Reply from 192 168 rom 192 168 m 192 168 192 168 192 168 192 168 192 168 192 168 Reply from 192 168 Reply from 192 168 Reply from 192 168 188 b 2 time lt ims TTL 255 1 i 1 BEID 1 168 by i TTL 255 1 time lt ims TTL 255 BEID 2 time lt ims TTL 255 1 i TTL 255 1 108 188 S 188 time lt ims TTL 255 sssssssssssss Figure 69 Network Test 4 Open an Internet browser and type http 192 168 0 100 in the address bar to open the following page twiP A Lightweight TCP IP Stack Windows Internet Explorer http 192 168 0 232 File Edt View Favorites Tools Help We Be wip A Lightweight TCP IP stack SIES lwIP A Lightweight TCP IP Stack The web page you are watching was served by a simple web server running on top of the lightweight TCP IP stack lwIP lwIP is an open source implementation of the TCP IP protocol suite that was originally written by Adam Dunkels of the Swedish Institute of Computer Science but now is being actively developed by a team of developers distributed world wide Since it s release lwIP has spurred a lot of interest and has been ported to several platforms and operating systems lwIP can be used either with or without an underlying os The focus of the lwIP TC
58. s an EEPROM IC AT24C02 by default This program can support two models of EEPROM currently AT24C02 and AT24C512 Page 71 t A Premier Farnell Company 4 Power on the EDM1070xx and recompile the project and then download it to flash 5 Reboot the EDM1070xx the HyperTerminal window displays information as shown below KkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA KEK AA AA AA AAA AAA AA AAA AAA AHA KkkkkKkkKKKKKKKKKKKKKK Hello NXP Semiconductors AT24xx eeprom read and write demo MGU MECS TA CASE Cores Cortex MMA Communicate via UARTO 115200 bps KEKKKKKKKKKKKKKKKKKKKKKKKKKKEK KK KK KKKKKKKKKKKKKKKKKKKKKK KK KK KKEKKKKKKKKKKKKKKKKKK Write EEPROM OK Read EEPROM OK I2C EEPROM Test Success 6 1 16 Rtc_Calendar Program 1 Install a CR1220 battery in the RTC battery holder marked as RTC in Figure 1 on page 3 on the EDM1070xx 2 Connect the UARTO e 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable 3 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 4 Power on the EDM1070xx and recompile the project and then download it to flash 5 Reboot the EDM1070xx the HyperTerminal window displays information as shown on the next page Page 72 t A Premier Farnell Company kkk AA AAAA AAA A KK KK KKK KK KK KK KK AAA AAA AR KKK KKK KKK AKA KKK AA kk k
59. sed to test C CAN feature of LPC18xx LPC43xx processor kKkkkk KKK KKK AAA AAA KKK KKK KKK KK KKK KK KKK KKK KK KK KKK KKK kkk AA KKK KK KK KK KK XX XX CAN init Page 67 t A Premier Farnell Company Message essage Message essage Message essage Message essage Message essage Message essage Message essage Message essage Message essage Message essage Message obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj obj E JE 17 ES A7 CAL 117 E AY 17 117 E A57 17 ES A7 E 17 17 ES Ly a a A DN configured DN complete dE ODE SUD DN configured DN complete RSD TX configured DN complete S JL I SUD DN configured TX complete LS SD DN configured DN complete dE ORDE SUD DN configured DN complete LS Sp TX configured DN complete S JL IX SUD STD GER STD STD STD STD 6 1 11 Emc_NandFlash Program 1 Connect the UARTO eh 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on the EDM1070xx to your PC with a cross over serial cable HyperTerminal on page 22 information as shown below Open HyperTerminal on your PC please refer to 4 1Configuring Power on the EDM1070xx and recompile the project and then download it to flash Reboot the EDM1070xx the Hyp
60. ssor output to Figure 51 Head File Paths 10 Click Linker on the left side of the window and select the Config tab in the right part of the window and then check the Override default checkbox and click the button as shown below to specify the paths of the linker configuration files 11 Click OK to save settings Options for node Test Category Factory Settings General Options C C Compiler Assembler Output Converter Custom Build Build Actions Config Library Input Optimizations Advanced Output gt Debugger Simulator Angel GDB Server TAR ROM monitor T jet J Link J Trace TI Stellaris Macraigor PE micro RDI JTAGjet ST LINK Third Party Driver TI XDS100 Linker configuration file Moverri de default PROJ_DIR NNM makesection makerule link gd Configuration file symbol definitions one per line OK Cancel Figure 52 Linker Configuration File Locations Page 51 t A Premier Farnell Company 12 Right click the project name on the left side of the IAR Embedded Workbench IDE window and select Rebuild All to recompile the IAR Embed project ded Workbench IDE File Edit View Project Simulator Tools Window Help Deng sees Debug i Files E E CMSI Drive C3 Main E Outp I Staru 2 amp Options Compile Rebuild All Clean Stop Build Add Rem
61. st Please refer to 6 1 6 USB HOST Usb MassStorage Program Ethernet Please refer to 6 1 7 Emac EasyWeb Program UART Please refer to 6 1 9 Atimer_Wic Program Please refer to 6 1 206 1 20 Uart_Rs485Master amp PS Uart_Rs485Slave Program NAND Flash Please refer to 6 1 11 Emc NandFlash Program SDRAM Please refer to 6 1 12 Emc Sdram Program RTC Please refer to 6 1 16 Rtc Calendar Program CAN Please refer to 6 1 106 1 10 Ccan SimpleTxRx Program Please refer to 0 LED amp Buzzer Gpio_LedBlinky Program MicroSD Please refer to 6 1 176 1 17 Sdio_FatFs Program ADC Please refer to 6 1 86 1 8 Adc Polling Program Page 85 t A Premier Farnell Company Appendix 1 ESD Precautions amp Proper Handling Procedures Please note that the board comes without any case box and all components are exposed Therefore extra attention must be paid to ESD electrostatic discharge precautions To effectively prevent electrostatic damage please follow the steps below e Avoid carpets in cool dry areas Leave development kits in their anti static packaging 4 until ready to be installed e Dissipate static electricity before handling any system components development kits by touching a grounded metal object such as the system unit unpainted metal chassis e If possible use antistatic devices such as wrist straps and floor mats e Always hold an evaluation board by its edges Avoid touching the conta
62. st uvp Eile Edit GW oa za G W I farget 1 Viem Project Flash Debug Peripherals e E 5 FA Target 1 127 Reset Handler PROC 7 Source Grow 128 EXPORT Reset Handler CMSIS CM3 123 IMPORT SystemInit Drivers 130 ag ZE Options for Group Main WEAK IMPORT _ main RO SystemInit RO RO main RO mdlers infinite loops which can be modified RT NMI Handler WEAK Figure 36 Adding Source Code to Groups 8 Right click Target1 in the tree view of the uVision4 window and select Options for Target Target1 and then select C C tab in the pop up window as shown below W Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities r Preprocessor Symbols Define Undefine r Language Code Generation I Strict ANSI C Warnings Optimization Level0 00 I Enum Container always int cunspecified gt I Optimize for Time I Plain Char is Signed S EE Mode I Split Load and Store Multiple I Read Only Position Independent I One ELF Section per Function I Bead Write Position Independent ete AAA ACoreYCMSISYnelude A A A ACoreiDeviceiNXPYLPC177x Bxnclude A A A Drivers in aths Misc Controls Compiler c cpu Cortex M3 g 00 apes interwork JA A A ACore CMSIS Include control LAAA ACoreDeviceyNXPALPC177x Galnchude 1 A A A Drivers include string Figure 37 C C Tab Specify
63. t Main E Output Options ALt FT E Startup Version Control System Make FT Compile Ctrl FT Rebuild All Clean Batch build Fe Stop Build CtrliBreak Download and Debug Ctrl D Debug without Downloading Make amp Restart Debugger Ctrl R Restart Debugger Ctrl Shi ft R Download L L SFR Setup Test Open Device File Download the application and start the debugger Figure 57 Select Download and Debug Page 54 t A Premier Farnell Company 6 Example Programs The CD ROM provided along with the EDM1070xx contains abundant example programs All the programs are created based on the standard peripheral libraries from NXP This chapter will introduce how to learn about the features of LPC4357 through a variety of example programs which consist of basic and additional examples 6 1 Basic Example Programs for Peripherals The basic example programs are saved under X Codes Peripheral_ Examples of the CD ROM where X is the label of CD ROM drive as shown below E PA Codes Ca Application Examples H Library Ca Peripheral Examples The folders that are under the same directory as Peripheral Examples include Application Examples and Library the following numbered entries give a brief introduction of the files contained in these folders 1 Application Examples Project files of EDM1070xx example applications 2 Library Peripheral device drivers and USB libraries for EDM1070xx 3 Periphera
64. terfaces Pins Definitions Descriptions 1 GND GND 2 UART3 TX UART3 Receive data 3 UART3 RX UART3 Transit data 4 GND GND 5 CANO L Low level CANO bus line 6 CANO H High level CANO bus line 7 CAN1 L Low level CAN1 bus line 8 CANT H High level CANT bus line Page 15 3 2 10 JTAG Interface CON6 t A Premier Farnell Company JTAG Interface Pins Definitions Descriptions 1 VTREF 3 3V power supply 2 VSUPPLY 3 3V power supply 3 NTRST Test system reset 4 GND GND 5 TDI Test data input 6 GND GND 7 TMS Test mode select 8 GND GND 9 TCK Test clock 10 GND GND 11 RTCK GND 12 GND GND 13 TDO Test data output 14 GND GND 15 NSRST Test system reset 16 GND GND 17 DBGRQ Connect to GND 18 GND GND 19 DBGACK Connect to GND 20 GND GND Page 16 t A Premier Farnell Company 3 2 11 Isolated GPIO Interface CON7 CON14 Isolated GPIO Interface Pins Definitions Descriptions 1 GND GND 2 ISODATA IN Isolate Input 3 GND GND 4 ISODATA IN Isolate Input 5 GND GND 6 ISODATA OUT Isolate output 7 GND GND 8 ISODATA OUT Isolate output 3 2 12 SPIFI Interface CON10 SPIFI Interface Pins Definitions Descriptions 1 SPIFI MOSI Serial clock for SPI SSPO SPIFI 2 VDD3V3 3 3V power 3 NC NC 4 PE_2 GPIO 5 SPIFI_CS Slave Select for SPI SSPO SPIFI 6 PE_3 GPIO 7 SPIFI_SCK Ser
65. the second counter Rtc Alarm increment interrupts and an alert interrupt RTC every 10 seconds as well Rtc Calendar Configuring RTC calendar Page 56 t A Premier Farnell Company Name of Example Programs Descriptions Rtc_ Calibration Calibrating RTC clock Sdio_FatFs Using MicroSD card in filesystem SDIO Sdio Readwrite Testing Read Write speed of MicroSD card Using SPI bus to configure LCD touch screen SSP Ssp LcdTouch chip USB_HOST Usb_MassStorage Configuring LPC4357 as a USB Host Timer_Capture Using the input capture function of timer Using timer to measure the frequency of an Timer_FreMeasure input signal TER Using timer matching to generate certain time Timer MatchInterrupt interval e g 1 second under interrupt mode Using timer matching to generate certain time Timer_MatchPolling i interval e g 1 second under polling mode Configure USB interface as a virtual serial Usb_Cdc i f USB_DEV interface Usb_MassStorage A simple USB mass storage application Ext_Wdt External watch dog application WDT Generating an interrupt by using WDT after a Wdt_Interrput Le certain time Uart_Autoband UART communication under auto baud mode Uart_Dma Using UART under DMA mode Uart_Interrupt Using UART under interrupt mode UART Uart_Polling Using UART under polling mode Uart_Rs485Master Host application for RS485 communicat
66. tings unchanged in the window shown below and click Next Setup EDK ARE 4 22a File installation completed D KE i L Tools by ARM HVision Setup has installed all files successfully Iw Retain current mVision configuration Iw Add example projects to the recently used project list Preselect Example Projects for Simulated Hardware Back Cancel Figure 18 Installing Example Projects 7 Keep the default settings unchanged in the window shown below and click Finish Page 30 t A Premier Farnell Company Setup MDE ARE V4 22a MDK ARM V4 22a Keil u Vision4 Setup completed D KE l L Tools by ARM H Vision Setup has performed all requested operations successfully Iw Launch Driver Installation ULINK Pro Driver 1 0 Iw Show Release Notes Cancel Figure 19 Installing ULINK Pro Driver 8 Click Continue Anyway in the pop up window as shown below Software Installation A The software you are installing has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the software vendor for software that has passed Windows Logo testing Continue Anyway STOP Installation Figure 20 Click Continue Anywa
67. tput Tinker to generate wrapper code to setup stacks and initialize and copy code and data segments For GNU toolsets the entry point is through start in the crtO gnu asm file and that startup code will setup stacks and data allocate Build target linking FLASH Program Size Code 3744 RO data 260 RU data 24 ZI data 512 FromELF creating hex file Flash Gpio LedBlinky axf 0 Error s 0 Warning s Downicad code to flash memory ULINK Cortex Debugger Figure 42 Start Flash Programming 7 After programming is done right click Target1 in the tree view of the uVision4 window and select Options for Target Target1 and then select the Debug tab in the pop up window as shown below W Options for Target Target 1 Device Target Output Listing User Use Simulator I Limit Speed to Real Time Settings C C Asm Linker Debug Utilities RDI Interface Driver IV Load Application at Startup Initialization File Restore Debug Session Settings IV Breakpoints IV Toolbox I Watch Windows amp Performance Analyzer IV Run to main IV Memory Display CPU DLL Parameter SARMCM3 DLL MPU Dialog DLL Parameter DARMP1 DLL pLPC1788 Altera Blaster Cortex Debugger 2 Load Stelaris CDI Signum Systems JTAGjet I Cortex M R J LINK J Trace ST Link Debugger JULINK Pro Cortex Debugger NULink Debugger IV Watch Windows IV Memory Displ
68. valuation ad Welcome to the InstallShield Wizard for IAR Embedded Workbench for ARM E valuation The InstallShield Wizard will install AR Embedded Workbench for ARM Evaluation on your computer To continue click Next j Cancel Figure 23 Click Next 4 Select the radio button I accept the terms of the license agreement and the click Next in the following window IAR Embedded Workbench for ARE 6 40 2 Evaluation This is an evaluation release of the software solely intended for TESTING and EVALUATION purposes Other use than for evaluation and testing is prohibited IAR Systems has no obligation to provide Support or related services and gives no warranties IN NO EVENT SHALL IAR SYSTEMS BE LIABLE TO THE OTHER FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL CONSEQUENTIAL PUNITIVE OR TORT DAMAGES OF ANY NATURE v accept the terms of the license agreement I do not accept the terms of the license agreement Figure 24 License Agreement 5 Enter your name and your company s name as well as the license number in the following window and then click Next Page 34 t A Premier Farnell Company IAR Embedded Workbench for ARE 6 40 2 Evaluation Enter your name the name of your company and your IAR Embedded Workbench for ARM Evaluation license number Name Company Il Can be found on the CD cover or via e mail registration Licensett Figure 25 Enter User Information 6
69. x 2 Open the Gpio LedBlinky example program and recompile it and then download it to flash 3 Reboot the EDM1070xx the LED2 on the EDM1070xx will be blinking constantly 6 1 15 I2C EEPROM Program 1 Connect the UARTO 6 7 and 8 pins of RS485 amp UARTO 2 connector in Figure 1 on page 3 on EDM1070xx to your PC with a cross over serial cable 2 Open HyperTerminal on your PC please refer to 4 1Configuring HyperTerminal on page 22 3 Expand the Main entry in the tree view of the uVision4 window and double click eeprom_at24xx h and then select initialization macro definition as shown below according to EEPROM model 43 Internal Flash a HCJ Startup 21 Peripheral group CMSIS 22 Bdefgroup eeprom 7 Drivers zak Sy Main 24 2 eeprom_at24xx c 254 i Iet h 26Fl ifndef EEPROM AT24XX H_ li core ent h 27 define _ EEPROM AT24XX H a stdint h 28 Ce Ne e core eminstr h 29 include lpc43xx_i2c h i core_cmfune h 30 la core_emd_simd h 31 define AT24C02 la system lpe43xx h 32 define AT24C512 2 i 1ped3xx_seu h 33 fi 1ped3xx_i2e h 34 faerine EEPROM CFG AT24C02 i lpe types h 35 i string h 36 define EEPROM I2C LPC I2C1 lid eeprom_st24xx 37 define EEPROM FREQ 400000 E main c 38 define EEPROM ADDRESS OxAO EE Readme 39 Figure 67 EEPROM Model Selection Note EDM1070xx provide
70. y 9 The installation window as shown below will be closed automatically after ULINK Pro driver is installed Page 31 t Premier Farnell Company ex D keil ARMULIRE InstallULIRE exe DOE Installing ULINK ET EE a Figure 21 Installing ULINK Pro Driver 10 Now the installation of the Keil MDK integrated development environment has been completed successfully Page 32 t A Premier Farnell Company 4 4 Installing IAR EWARM Development on the LPC4357 requires version 6 40 or higher of IAR EWARM All the EWARM projects contained in the CD ROM provided with the board are created by using IAR EWARM 6 40 2 You can download the latest version from IAR s official website www iar com The following content will show you how to install an IAR EWARM integrated development environment using IAR EWARM 6 40 2 as an example 1 Double click the installation file of IAR EWARM to open the installation interface as shown below IAR Embedded Workbench Evaluation for ARM Installation and licensing information Install IAR Embedded Wo bench Release notes Install drivers Explore the i nstallation medi OIAR SYSTEMS www iar com Figure 22 IAR EWARM Installation Interface 2 Click Install IAR Embedded Workbench 3 Click Next in the following window to continue installation Page 33 t A Premier Farnell Company IAR Embedded Vorkbench for ARE 6 40 2 E
71. y and service 2 1 Technical support service Embest provides one year of free technical support for all products The technical support service covers Embest embedded platform products software hardware materials e Assistance to customers with regards to compiling and running the source code we offer e Troubleshooting problems occurring on embedded software hardware platforms if users have followed the instructions provided e Judge whether a product failure exists The situations listed below are not covered by our free technical support service and Embest will handle the situation at our discretion e Customers encounter issues related to software or hardware during their development process Page 1 2 2 t A Premier Farnell Company Issues occur when users compile run the embedded OS which has been modified by themselves Customers encounter issues related to their own applications Customers experience problems caused by unauthorised alteration of our software source code Maintenance service clause Product warranty will commence on the day of sale and last 12 months provided the product is used under normal conditions The following situations are not covered by the warranty Embest will charge service fees as appropriate Customers fail to provide valid proof of purchase or the product identification tag is damaged unreadable altered or inconsistent with the product Products are subject t

Download Pdf Manuals

image

Related Search

Related Contents

HP SL160Z User's Manual  Samsung GE81A/XEF Manuel de l'utilisateur  Absolventenbuch 2010 - Berner Fachhochschule Technik und  MANUAL DE INSTALACIÓN Y FUNCIONAMIENTO DEL KIT  brochure TBX 2°quartino+anta_ES.indd  LEO B CBB 3 230 L02 LEO B CBB 3 230 L04 LEO B CBB 3 120 F02  IC2820E-Miglioramento_modulazione  NETWORK ANAL YZERS - Helmut Singer Elektronik  Guide gourmand - Office de Tourisme de Sélestat  T'nB DCC40BRM  

Copyright © All rights reserved.
Failed to retrieve file