Home
MYD-LPC1788 User Manual
Contents
1. MR het TEKOO14 JPG CH1 2 00 2 505 CHI Z 173V Figure 3 28 3 4 17 Pwm Matchlnerrupt Functional description This example describes PWM Match function in interrupt mode Procedures After download program press SW5 to reset board there will be information in oscilloscope Phenomenon Indicates Observe Waveform of PWMO 1 PWMO 3 by oscilloscope Refer to Figure 3 29 and figure 3 30 at MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual Tek Stop Pos 0000 SAVE_REC FES fax TA XT FER MS ta TEKOO14 JPG CHT 200 2 5045 CHI 143 Figure 3 29 Stop M Pos 00005 SAVE REC 5 a DCN het 0013 CHT 2 00 M 25015 CHI 143V Figure 3 30 3 4 18 PWR_Sleep gt Functional description This example describes enter system in sleep mode and wake up by WWDT Windowed Watchdog Timer Interrupt gt Procedures After download program press SW5 to reset board Receive 1 from serial system enter sleep mode Wait 2s to generate a WWDT interrupt and wake up system Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Power Sleep example MCU LPC177x_8x Core ARM CORTEX M3 52 MYIR TECH LIMITED www myirtech com MYR
2. 3 4 SSPO_MISO 3 TS INT 13 IOVDD VREF VBAT AUX MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Figure 2 8 2 2 10User Key and Reset Circuit User Key and Reset circuit is shown in figure 2 9 and 2 10 gt KEY 3 gt 2 3 gt 3 Figure 2 9 3V3 3V3 NRST 2 Figure 2 10 2 2 11 Buzzer Buzzer circuit is shown in figure 2 11 1 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual 3 PWMO 1 Figure 2 11 2 2 12 LED LED circuit is shown in figure 2 12 2 LED1 2 LED2 2 LED3 3 LED4 2 LEDS 2 LED6 Figure 2 12 2 3 Peripheral Interface introduction 2 3 1 UART Interface UART circuit is shown in figure 2 13 19 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual 3 3 3 3 Figure 2 13 2 3 2 CAN Interface CAN interface chooses TJA1040 Its characteristics are as follows Fully compatible with the ISO 11898 standard High speed up to 1 Very low ElectroMagnetic Emission Differential receiver with high common mode range for ElectroMagnetic Immunity EMI Input levels compatible with 3 3 V and 5 V devices At least 110 nodes can be connected V WV Thermally protected CAN circuit is shown in figure2 14 3
3. Rom 9 080000 270000000 010000 2 020000000 oxe000 1 Defaults Help Figure 3 1 2 Choose LPC1 788 in Device Refer to figure 3 2 Device Target Output Listing User C C sm Linker Debug Utilities Database Generic CPU Data Base Vendor NXP founded by Philips Device LPC1788 Toolset ARM 23 LPC1776 Cortex M3 processor 3 1 running at frequencies of up to 100 MHz 3 LPC1778 Memory Protection Unit MPU 9 LPCI785 Nested Vectored Interrupt Controller 3 LPC1786 Non maskable Interrupt NMI input a Wakeup Interrupt Controller WIC 78 Up to 512 on chip Flash ISP and IAP capabilities Up to 96 kB on chip SRAM d LPCI810 Upto 4kB on chip EEPROM 3 LPC1820 External Memory Controller EMC LPC1830 DMA controller GPDMA 3 LPC1850 JTAG interface Serial Wire Debug and Serial Wire Trace Port options 3 LPC2101 Four reduced power modes Sleep Deep sleep Power down Deep power do 68 LPC2102 LPC2103 LPC2104 LPC2104 01 Cancel Defaults Help Figure 3 2 Clocks On chip crystal oscillator operating range of 1 MHz to 25 MHz 3 Output options include intermediate file Refer to figure 3 3 24 MYIR TECH LIMITED www myirtech com iR Make Your Idea Real
4. PM 03 Hello NXP Semiconductors n r la 054 INTERRUPT example n r ES Pro GF Bo Fun 4 Figure 3 12 30 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 3 2 4 ISP Download When using ISP software to download program firstly install FLASH magic download latest version from http www flashmagictool com then connect JP6 JP4 PIN1 JP5 PIN2 to enable UARTO lastly set dial switch to LOW position and restart board Steps 1 Open FLASH magic and click Options then choose Advanced Options Refer to figure 3 13 Flash Magic NON PRODUCTION USE ONLY File ISP Tools Help LPC1788 Erase block 0 0x000000 0x000FFF Erase block 1 0x001000 0x001 FFF Flash Bank v Erase block 2 0x002000 0x002FFF Erase block 3 Dx003000 0x003FFF COM Port COM 1 Erase block 4 Dx004000 0x004FFF Baud Rete Erase block 5 0x005000 0x005FFF Mail Erase all Flash Code Prot Interface None ISP Erase blocks used by Hex File Oscillator MHz 12 000000 I Step 3 Hex File Modified September 30 2012 8 52 Step 4 Options Verify after programming Fill unused Flash Did you read the article Using Flash Memory in Embedded Applications www esacademy com faq docs flash Figurec3 13 2 Choose Use DTR and RTS to control R
5. 42 3 4 5 Dac 43 3 4 6 Dac 5 44 34 7 DMA_Flash2Ram sia cnc oti A 44 32 8 EODIOID fac es 45 3 4 9 46 3 430 Eme 47 3 4 11 Emc 47 Interrupt 48 3 4 13 49 MYIR TECH LIMITED www myirtech com Make Your Idea Real 3 4 14 Nvic VectorTableRelocation 3 4 15 Pwm SingleEdge 3 4 16 Pwm_DualEdge 3 4 17 Pwm Matchilnerrupt 3 4 18 PWH 5166 3 4 19 PWR DoeepsSleep 3 4 20 _ 3 4 21 3 4 22 55 3 4 23 SSP Flash ce 3 4 24 Systick 100 3 4 25Timer Matchlnterrupt 3 4 26 Wdt Interrupt esses 3 4 27 3 4 28 Lcd 1 043 3 4 29Lcd 3 4 30 Mci_CidCard 3 4 31 Usb MasssStorage 3
6. Figure 3 21 Then C file of timer function need include header files include Ipc177x 8x timer h Timer initialization configuration features such as delay time can be provided by timer 3 3 3Use Printf Using Printf to debug serial to print run time information is an effective debug means But print terminal isn t serial portin default in order to make character flow redirected to serial port it needs a new definition of fputc function The specific operation is as follows 1 Add retarget c files to project which defines fputc function retarget c file in 05 MDK_Source commmon CoreSupport directory User is advised to add retarget c file to CMSIS CMS group as shown in figure 3 22 7 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Project 9 f FLASH 9 28 Startup By CMSIS CM3 core cm3 c system LPC177x 8x c Drivers f Ipc177x 8x uart c f debug frmwrk c 8 Ipc177x 8x clkpwr c f Ipc177x 8x pinsel c Ipc177x 8x can c 8 Ipc177x 8x systick c A Ipc177x 8x timer c 5 9 Main Can Test c Ba Readme abstract txt Figure 3 22 2 Hook Use MicroLIB in engineering configuration refer to figure 3 23 Linker Debug Utilities Options for Target FLASH Device Target Output Listing User C C Asm NXP founded by Philips LPC1788 Code Generation Xtal MHz 120 Operating syst
7. Make Your Idea Real MYD LPC1788 User Manual 3V3 3V3 3V3 IS61LV51216 12T SRAM Figure 2 2 2 2 4 NORFLASH Module NORFLASH chooses SST39VF 1601 Its characteristics are as follows gt Superior reliability 100000 Cycles Typical Greater than 100 years Data Retention Low Power Consumption typical values at 5 MHz Active Current 9mA Standby Current Security ID Feature e SST 128bit User 128bit Fast Read Access Time 70ns 90ns MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual NORFLASH circuit is shown in figure 2 3 1 25 7 24 DQO Ete Dat 738 04 N 20 AS 40 05 H E D 44 3 D 30 D8 32 09 34 AB EMC A9 8 P EMC A10 P 2 100nF 4 7uF E Gn SST39VF1601 NOR FLASH Figure 2 3 2 2 5 SPI FLASH Module SPI FLASH chooses AT25DF3214 Its characteristics are as follows gt Operating Frequencies up to 85 MHz gt Flexible program support Byte Page program 1 256 Bytes Fastprogram and erase times 1 0ms typical page program 256 Bytes Time 50ms typical 4 Kbyte block erase time e 250ms typical 32 Kbyte block erase time 400ms typical 64 Kbyte block erase time Low power dissipation Endurance 100000 program erase cycles MYIR TEC
8. Ox1f DevID 0x47 0x01 ExtStrLen 0x00 A simple ssp flash write amp read example kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Testing page num 16384 16384 a6 MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual THHHHHHHHHHHHE Test finish Error bytes 0 3 4 24 Systick 100msBase Functional description This example describes configure System Tick timer to generate interrupt each 100ms Procedures AAfter download program press SW5 to reset board The program configures system tick to generate interrupt at each 100ms Generating interrupt changesD9status each time Phenomenon Indicates D9 flash is at 5Hz 3 4 25Timer Matchlnterrupt Functional description This example describes Timer generates specific time in interrupt mode Procedures After download program press SW5 to reset board terminal print information by second Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Timer Match Interrupt demo MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps Use timer x toggle MATx 0 at frequency 1Hz Match interrupt occur Match interrupt occur Match interrupt occur ay MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual Match interrupt o
9. MYR Make Your Idea Real MYD LPC1788 User Manual MYD LPC1788 User Manual Version V1 3 MYIR TECH LIMITED www myirtech com e M Y iR Make Your Idea Real MYD LPC1788 User Manual Version History V1 0 Initial Version 2012 09 14 V1 1 Adjust the list of product configuration 2012 11 02 V1 2 Add 7 0 inch screen support 2013 02 22 V1 3 modify the contact information 2013 03 28 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual Directory Chapter 1 Product Cp 1 1 1 2 Product Preview nee 1 1 3 Product EGatulres meos es 2 1 4 Product Configuration eei oeaan oeiee eieiei eieiei 4 Chapter 2 Hardware Resource Introduction 5 2 1Hardware Resource Overview 2 5 2 2 Main Module 6 2 2 1 Main processor LPC1788 m 6 2 2 2 SDRAM Module mee 6 212 3 SRAM 7 8 9 2 2 6 EEPROM Module ice in ine iu cuu Hn 10 ticas ap dixe P 11 2 2 8 feet 12 2 2 9 Touch Controller Module 13 2 2 T0User Key and 14 2 2 11 22 14 15 2 3 Peripheral Interface introduction 15 2 31 U
10. 011 Second 012 Second 013 Second 014 Second 015 3 4 22 SSP Touchscreen Functional description The program shows SSP interface read position x and y in touchscreen Procedures After download program press SW5 to reset board here will becurrent position X and Y in terminal Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors SSP Touchscreen Example 32 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps A simple ssp touch example When you touch the screen you will Refer to the X and Y values on the termimal Channel X data is 00000 Channel Y data is 04095 Channel X data is 00000 Channel Y data is 04095 Channel X data is 00000 Channel Y data is 04095 Channel X data is 00000 Channel Y data is 04095 Channel X data is 01788 Channel Y data is 02091 Channel X data is 01785 Channel Y data is 02116 3 4 23 55 Flash Functional description This example describes SSP peripheral reads AT25DV321A Procedures After download program press SW5 to reset board there will be testprocess Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk System Start The SystemCoreClock is 120 MHZ The PeripheralClock is 60 MHZ AT25DF321A Init
11. LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps This example used to test NVIC Vector Table Relocation function Remapping Vector Table at address 0x20001000 If Vector Table remapping is successful LED D9 will blink by using 9 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual SysTick interrupt 3 4 15 Pwm_SingleEdge gt Functional description This example describes PWM signal on 6 Channels in single edge mode gt Procedures Compile program and download it into board Reset board and observe oscilloscope Phenomenon Indicates Observe pin of PWM0 1 PWMO 3 by oscilloscope Refer to figure 3 26 and figure 3 27 Tek Jt Stop M Pos 00005 SAVE REC 1 1 SLES TEK0011 JPG CHT 2 009 M 2 50s CHI 7 Figure 3 26 Tek Stop M Pos 0 000s SAVE_REC 2 ES I FER SCS la TEK0012 JPG CHT 2 009 M 2505 CHI 7 133V Figure 3 27 3 4 16 Pwm DualEdge Functional description This example describes generate PWM signal on 3 channels in both edge mode and 30 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual single mode gt Procedures After download program press SW5 to reset board there will be information in oscilloscope gt Phenomenon Indicates Observe pwm0 1 waveform byOscilloscope Tek Stop M Pos 0 0005 SAVE REC
12. 4 32 Usb VirtualCom 3 4 33 TIPS Audio iue ure hana 3 4 34 126 EGDFOITI 3 4 35 RS 485 Master amp Slave Appendix 1sales FAQ and technical support MYD LPC1788 User Manual MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Chapter 1 Product Overview 1 1 Product Description MYIR have latest lunched MYD LPC1788 board which is based on Cortex M3 kernel The Cortex M3 is a next generation core that offers better performance than ARM7 at the same clock rate and offers other system enhancements such as modernized debug features and a higher level of support block integration The processor has 512KB FLASH memory 96KB on chip SRAM and 4KB EEPROM It also has external SD Card interface USB Host Device OTG interface CAN interface RS485 interface Audio input Ethernet MAC LCD interface JTAG interface function key and so on It has been widely used in industrial control and medical system 1 2 Product Preview Figure 1 1 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 1 3 Product Features Based on Cortex M3 processor MYD LPC1788 integrates all the chip functions and features The main features are as follows Electrical parameters gt Operating Temperature 40 C 85 C gt Electrical Specifications 5V power supply gt Me
13. After download program press SW5 to reset board there will be information in terminal A block datatransferred byGPDMA from Flash to Ram is checked and the result will be outputted in the terminal Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors GPDMA FLASH to RAM example MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps This example used to test GPDMA function by transfer data from Flash to RAM memory kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Start transfer Buffer Check success Demo terminated 3 4 8 Eeprom_Demo gt Functional description This example describes tore data in EEPROM memory gt Procedures After download program press SW5 to reset board Program will first write NXP Semiconductor LPC177x_8x CortexM3 n r t HELLO WORLD into EEPROM and then reads and displays data from corresponding location in EEPROM When there will be NXP Semiconductor LPC177x_8x CortexM3 n r t HELLO WORLD from the terminall it shows write in and read out is normal Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual EEPROM demo example MCU LPC
14. MYD LPC1788 User Manual Options for Target FV HTT a Device Target output Listing User C C Asm Linker Debug Utilities Select Folder for Objects Name of Executable Create Executable Flash ADC_Interrupt Debug Information Create Batch File Create File Browse Information Create Library Flash ADC_InterruptLiB Cancel Defaults Help Figure 3 3 4 Set Linker Refer to figure 3 4 Options for Target Ld Device Target Output Listing User C C Asn Use Memory Layout from Target Dialog RW Sections Position Independent R O Base 0500000000 Sections Position Independent Base 0510000000 Don t Search Standard Libraries Report might fail Conditions as Errors Misc controls Linker Cortex M3 o Slibrary_type microlib strict scatter Flash ADC_Interrupt sct control summary_stderr info summarysizes map xref callgraph symbols string info sizes info totals info unused info veneers Cancel Defaults Help Figure 3 4 5 Choose project gt Rebuild all target files project or click on shortcut icon to compile Refer to figure 3 5 m MYIR TECH LIMITED www myirtech com M YIFR Make Your Idea Real MYD LPC1788 User Manual A sers Op Di 2 05 File Edit View Flash Debug Peripheral
15. Make Your Idea Real 3 LCDVD20 B LCDVD22 3 LCDVD 0 3 100 012 lt B 16 3 LCDVD4 3 LCDVDe 3 LCD RST LCD INT 34 6 12 0 SCL LCD FP 3 2 2 2 3 3 2 2 2 2 2 43 8 3 4 6 MYD LPC1788 User Manual oo gt 0 BLUE LCOVD23 90 Fo sse 5 4 p ues on zr GREENT T NRR 2 oo ta so 2983 ae 00 5 ET ain Aaa gt 100007 2 oo 5 lt LCD_PWM 3 EI DISP R103 278 LCD DISP 3 na 38 Ri ZR lt P LCD_GPIO 3 al Ve 520 8 oo lt LCDLP 3 kim 8 00 2 J E 8 90 1 Y oo BCS 2X20 DIP RA 1 Figure 2 20 2 3 8 User Interface User interface circuit is shown in figure 2 21 J15 Ex Eu TXD4 E RXD4 2 TXD1 EN RXD1 2 RTS1 Be 51 2 EH 55 1 MOSI 55 1 5 13 SSP1_SSEL Be SSP1_SCK 3 I2C1 SDA EG 12C1_SCL 3 L2 P320 2 P3 19 M gt P321 2 P3 22 5 2 Bo gt P323 2 P3 24 lt E gt P325 2 P3 26 lt P P327 2 EX 2 P328 22 P3 29 m gt P331 2 TXD3 gt Hea _ gt RXD3 3 8 I2C0 SDA lt gt EI 12 05 1 3 4 6 Figure 2 21 2 3 9 ADC and DAC Interface ADC and DAC interface circuit is shown in figure 2 22 20 MYIR TECH LIMITED www myirtech com Y iR Make Your Idea Real MYD LPC1788 User Manual TP7 DAC O
16. Make Your Idea Real MYD LPC1788 User Manual UART Communication115200 bps This example used to enter system in sleep mode and wake up it by using Watchdog timer interrupt kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Press 1 to enter system in Deep Sleep mode Enter Deep Sleep mode Wait 2s for WDT wake up system System wake up 3 4 19 PWR_DeepSleep gt Functional description This example describes enter system in deep sleep mode and wakeup by external interrupt gt Procedures After download program press SW5 to reset board Receive 1 from serial system enter deep sleep mode Connect JP6 A short time connection to generate external interrupt will wake up system Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Power Deep Sleep example MCU LPC177x_8x Core ARM CORTEX M3 UART Communication115200 bps This example used to enter system in deep sleep mode and wake up it by using external interrupt Press 1 to enter system in deep sleep mode If you want to wake up the system press button I m sleeping I m wake up 3 4 20 Emac_EasyWeb gt Functional description This example describes implement an simple web application gt Procedures 23 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual After
17. Parameter DARMP1 DLL 788 TARMPT 88 1 Defaults Help Figure 3 6 2 Check hardware emulator ULink2 When connecting ULink2 to board the indicator lights of RUN and COM change blue 26 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual and then turn off while USB indicator lights change red and then remain the same Thus it indicates ULink2 is no problem 3 Clicking Setting in figure 3 6 there will be connection status of ULink2 choose SYSRESETREQ in Reset and development board as well askernel identification Refer to figure 3 7 Cortex M Tar Debug Trace Flash Download ULINK USB JTAG SW Adapter Serial No ULINK Version Device Family Cortex M Firmware Version 42 SWJ SW M Max Clock 1MHz SW Device Device Name SWDIO 0x2BA01477 CoreSight SW DP Ur Debug Connect amp Reset Options Cache Options Download Options Connect Normal v Reset SYSRESETREQ Cache Code v Verify Code Download Reset after Connect Stop after Bootloader Cache Memory Download to Flash Figure 3 7 4 Click Ctrl F5 or shortcut icon or select Debug gt Start Stop Debug Session to start debugging Refer to figure 3 8 27 MYIR TECH LIMITED www myirtech com Make Yo
18. download program press SW5 to reset board connectboard toPCby crosswire Configure IP address 192 168 2 100 Open web browser accessaddress http 192 168 0 100 to display webservercontent Turn potentiometer and webdisplaysADCupdate value Please note webpagechange a state automatically by 5 seconds gt Phenomenon Indicates Refer to figure 3 31 Hello World Figure 3 31 3 4 21 Rtc_Alarm gt Functional description This example describes RTC generate interrupt in secondand Alarm interrupt gt Procedures After download program press SW5 to reset board Program set initialize time and generate interrupt by second So alarm interrupt occursafter 10s and alarm sentence will be outputted Phenomenon Indicates Terminal information Fe ke H e ke ke eek ke ek He He ec ke hee ke ehe ek hee khe ek hee khe he ek ke ek cec hee ke k k k k k k kk k k kk kk Hello NXP Semiconductors 3 MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual RTC Alarm Example MCU LPC177x 8x Core ARM CORTEX M3 UART Communication 115200 bps A simple RTC example To generate interrupt in Second Counter Increment Interrupt 15 and generate Alarm interrupt at 10s Current time set to 018 045 000 025 003 02011 Second ALARM set to 010s Second 001 Second 002 Second 003 Second 004 Second 005 Second 006 Second 007 Second 008 Second 009 Second 010 ALARM 10s matched Second
19. 0x00000000 0x00000001 0x00000002 0x00000003 0x00000004 0x00000005 0x00000006 0x00000007 0x00000008 0x00000009 0 0000000 0 0000000 0 0000000 0x0000000D 0 0000000 0x0000000F 0x00000010 0x00000011 0x00000012 0x00000013 0x00000014 0x00000015 0x00000016 0x00000017 0x00000018 0x00000019 0x0000001A 0x0000001B 0x0000001C 0x0000001D 0x0000001E 0x0000001F 0x00000020 0x00000021 0x00000022 0x00000023 0x00000024 0x00000025 0x00000026 0x00000027 0x00000028 0x00000029 0x0000002A 0x0000002B 0x0000002C 0x0000002D 0x0000002E 0x0000002F 0x00000030 0x00000031 0x00000032 0x00000033 0x00000034 0x00000035 0x00000036 0x00000037 0x00000038 0x00000039 0x0000003A 0x0000003B 0x0000003C 0x0000003D 0x0000003E 0x0000003F Choose what polynomial that you want to use type 1 CRC CCITT 2 CRC 16 32 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual Quit CRC CCITT Result 0x0000FD2F Choose what polynomial that you want to use type 1 CRC CCITT 2 CRC 16 3 CRC 32 Q Quit CRC 16 Result 0x00002799 Choose what polynomial that you want to use type 1 CRC CCITT 2 CRC 16 3 CRC 32 Q Quit CRC 32 Result 0x100ECE8C Choose what polynomial that you want to use type 1 CRC CCITT 2 CRC 16 3 CRC 32 Q Quit Demo terminated 3 4 5 Dac_Dma gt Functional description This example describes DMA transfer data to DAC peripheral gt Proced
20. 177x 8x Core ARM CORTEX M3 Communicate via UART2 115200 bps This example used to demo EEPROM operation on LPC177x 8x A Hello sentence will be written into EEPROM memory then read back and check Write data to EEPROM Read data from EEPROM NXP Semiconductor LPC177x 8x CortexM3 HELLO WORLD Demo is terminated 3 4 9 Emc_NorFlashDemo gt Functional description This example describesEMC read write NOR FLASH Procedures After download program press SW5 to reset board Program firstly check Manufacturer ID and Device ID of NorFlash chip Model SST39VF1601 Then entire Flash memory will be erased 2K block data will be written and read back for verify gt Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors EMC NORFLASH example MCU LPC177x_8x Core Cortex M3 UART Comunication 115200 bps Write and verify data with on board NOR FLASH Init NOR Flash Read NOR Flash ID Erase entire NOR Flash Write a block of 2K data to NOR Flash Verify data Verifying complete Testing terminated B MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 3 4 10 Emc_SdramDemo gt Functional description This example describes EMC read write SDRAM gt Procedures After download program press SW5 to reset board The process of program clear SDRAM and write data into SDRAM
21. 6 ETH 28 MCLK Le 3 ETH gt tm m EE T ae iO RACRS DViED LED 28 LED LAK 3 ETH_CRS CSS pgp RX_ER MDIX_EN LED SPEED AN1 TE BT 3 ETH RX ER 1 7 HE x HH COL PHYADO LED ACT COL AN EN 3 5 1 44 RXD_O PHYAD1 3 4 c 4 RXD 1 PHYAD2 22R 45 RXD 2 PHYAD3 RR11 3 PHYAD4 LET 3 13 ETH TX EN 2 5 24 142 487 1 3 ETC 3 EL mi COLERE 246 9 OUT p DGND 55545 ETH Figure 2 6 2 2 8Audio Module Audio module chooses UDA1380 Its characteristics are as follows Slave BCK and WS signals gt 115 Bus format Multiple format data output interface Multiple format data output interface gt ADC front end features gt DAC features UDA1380circuitis shown in figure 2 7 12 MYIR TECH LIMITED www myirtech com Make Your Idea Real 3V3 A C58 E VDDA DA L3CLOCK SCL L3DATA SDA DATAI WSI BCKI DATAO WSO BCKO DIO RESET SYSCLK Figure 2 7 2 2 9 Touch Controller Module MYD LPC1788 User Manual cm puescy C65 pz C68 pnm c69 pa 3V3 Touch controller module chooses TSC2046 Its characteristics are as follows gt Internal 2 5V reference Touch pressure measurement Auto power down TSC2046circuit is shown in figure 2 8 3V3 3 4 SSPO_SCK 3 TS 5 3 4 55 0
22. ART Interface eee eios ie 15 239 2 DANI Ee 16 2 3 3 5485 16 2 3 4 SDCARD MCS MT 17 2 3 5 USB OTG HOST interface 17 2 3 0 JTAG interfata Ce 19 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 2 3 7 LCD Touch Screen Interface nce 19 2 3 8 User Interface eee 20 2 3 9 ADC DAC Intel d OB uo entente 20 2 4 setting ie co Ceci bor 21 Chapter c MDK UNI ara Sa aes roba inia Sn Eni us 23 NNI apt 23 3 2 e co cR EA 23 3 2 1 Configure and CompileMDK Routine eene 23 3 2 2 DebugMDNK Routine Lee nde die adie di 26 3 2 3Download programby ULINK2 28 dcs asco MM 31 3 3MDK SOUrCE M 35 333 Drect Structure sae es Fale a ate ee ae ee 35 3 3 2 Add function 36 3 3 3056 ra n n e rn RR 37 3 4 The introduction of 39 3 4 TADC 39 34 2 ADC Poll cauce c 40 41 adore Demos
23. DT time out The program is currently working in FLASH mode kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual Last MCU reset caused by External kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk This Welcome Screen below will executive after reset event Hello NXP Semiconductors Watch dog timer reset when timeout demo MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps Use WDT with Internal RC OSC reset mode timeout 5 seconds To reset MCU when time out After reset program will determine what cause of la st reset time external reset or WDT time out The program is currently working in FLASH mode kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Last MCU reset caused by WDT TimeOut 3 4 28 Lecd_LQ043T3DX0A gt Functional description This example project describes LCD module displays a static picture gt Procedures After download program press SW5 to reset board picture is displayed in LCD gt Phenomenon indicates After download program there is picture on LCD 3 4 29Lcd_touch gt Functional description This example project describes how to use Touch Screen and LCD gt Procedures After download program press SW5 to reset board LCD screen display different colors Displaydifferent color on LCD s
24. Devices gt x IDE ATA ATAPI controllers X Imaging devices gt Keyboards Memory technology driver gt n Mice and other pointing devices MYD LPC1788 User Manual b 4 Modems gt 3 Monitors gt Network adapters b Portable Devices 22 Ports amp LPT LPC177x 8x USB VCom Port gt Processors SD host adapters gt lg Sound video and game controllers gt 3 System devices Universal Serial Bus controllers Figure 3 33 3 4 33 125 Audio gt Functional description This example describes 25 transfers audio data to play a short music Procedures After download program press SW5 to reset board when insert microphoneto J5 interface there will be sound Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors USB MassStorage example MCU LPC177x_8x Core ARM CORTEX M3 Communicate via UART2 115200 bps MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Init UART2 for debug UDA1380 Soft Reset OK Init UDA1380 registers step 1 OK Init UDA1380 registers step 2 OK Init UDA1380 registers step 3 OK Init UDA1380 Init 125 Demo start 3 4 34 2 gt Functio
25. Figure 2 14 2 3 3 RS485 Interface RS485 choose SP3485 Its characteristics are as follows 16 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual RS 485 and RS 422 transceivers Interoperable with 0 5V logic Driver Receiver enable Low power shutdown mode 7V to 12V common mode input voltage range Allows up to 32 transceiver on the serial bus Compatibility with the industry standard 75176pinout YV WV Driver output short circuit protection RS485circuit is shown in figure 2 15 3 11 RXD3 P JP7 8 USB PWRD2 1 3 11 TXD3 Figure 2 15 2 3 4 SDCARD Interface SD card circuit is shown in figure 2 16 vcc_sD 50 3 SD DAT2 lt m C Figure 2 16 2 3 5 USB OTG HOST interface 17 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual USB OTG chooses ISP1301 Its characteristics are as follows gt transmit and receive serial data at both full speed 12 Mbit s and low speed 1 5 Mbit s data rates gt Supports various serial data interface protocols transparent general purpose buffer mode allows you to control the direction of data transfer gt Contains Host Negotiation Protocol HNP command and status registers gt Supports serial I2C bus interface for status and command controls Support
26. H LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual gt Data retention 20 years SPI FLASH circuitis shown in figure 2 4 3 11 85 MOSI 3 11 SSP0 MISO 3 11 88 SCK 3 SSPO_SSEL SPI FLASH Figure 2 4 2 2 6 EEPROM Module EEPROM chooses 24 2 Its characteristics are as follows gt Two wire Serial Interface Bidirectional Data Transfer Protocol gt High reliability Endurance 1 Million Write Cycles Data Retention 100 Years gt 100 kHz 1 8 and 400 kHz 2 7V Compatibility Schmitt Trigger Filtered Inputs for Noise Suppression EEPROM circuit is shown in figure2 5 10 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual 3V3 3 3 3V3 36 11 2CO_SCL 3 6 11 50 Figure 2 5 2 2 Ethernet MAC Module Ethernet MAC Module chooses DP83848 Its characteristics are as follows Low power 3 3V 0 18um CMOS technology gt Serial Management Interface gt IEEE 802 3u Auto Negotiation and Parallel Detection gt IEEE 802 3u ENDEC 10BASE T transceivers and filters Ethernet Mac circuit is shown in figure2 6 11 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 3V3 5 3V3 38 71 5 C752 6 77 gt al a 3V3 i R100 2R 17 ea 100 2 D 1 o Venus R39 13 ETH REF 14 3
27. Make Your Idea Real MYD LPC1788 User Manual 1 4 Product Configuration 1 MYD LPC1788 Development Board 2 1 5Meters Crossover Cable 1 5 Meters high speed Mini USB 2 0 Cable 4 9 to 9Pin serial cable Include Schematic PDF 5 DVD Product User Manual Source Code etc 6 4 3 7 0 Inch LCD Touch Screen optional Table 1 1 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Chapter 2 Hardware Resource Introduction 2 1Hardware Resource Overview MYD LPC1 788 resources are shown table2 1 Size Board size 115mm x 90mm CPU LPC1788 Cortex M3 Core Up to 120MHz On chip 96 SRAM 512KB ROM 4KB EEPROM Memory External 32MB SDRAM 1MB SRAM 2MB NORFLASH 256B EEPROM 4MB SPI FLASH Debug 20 Pin 2 54mm JTAG debug interface RS485 1 Support RS485 Ethernet 1 100Mbps DP83848 CAN 2 Support CAN Support USB USB 2 HOST Device 2 0 USBOTG 2 0 Peripheral Audio 2 Audio in out SD interface 1 SD MMC interface Extension 2 Extension for customer Standard 20 pin JTAG JTAG 1 interface Support 4 3 7 0 inch LCD interface 1 touch screen User button 3 SW1 SW2 SW3 Button Reset 1 SW5 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual Power 5V 2A Table 2 1 2 2 Main Module Introduction 2 2 1 Main processor LPC1788 Based on ARM Cortex M3 pr
28. SE ONLY File ISP Options Tools Help Hagy E gt aL Step 1 Communications Step 2 Erase LPC1788 Erase block 0 0x000000 0x000FFF Erase block 1 0x001000 0x001FFF Flash Bank Y Erase block 2 0x002000 0x002FFF Erase block 3 0x003000 0x003FFF COM Port COM 1 Erase block 4 0x004000 0x004FFF Baud Rate 57600 ES Erase block 5 0x005000 0x005FFF Erase all Flash Code Prot Interface None ISP 7 Erase blocks used by Hex File Oscillator MHz 12 000000 m 4 Step 3 Hex File Hex File Users AdministratorDesktop pcl 788 MyirProductCD Reference Browse Modified September 30 2012 8 54 re in Step 4 Options Step 5 Start _ unused Flash _ Gen black checksums Execute Activate Flash Bank Rotating fully customizable remotely updated Internet links Embed them in your application www embeddedchints com Figure 3 18 6 After downloading program disconnect JP3 and reset board program starts a MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual running Refer to figure 3 19 2 Flash Magic NON PRODUCTION USE ONLY uli File ISP Options Tools Help GuHuagse veE ivimH oso Select Lec 788 Erase block 0 0 000000 0 000 Erase block 1 0x001000 0x001FFF Flash Bank Erase block 2 0x002000 0
29. ST and ISP pin in Hardware Config in Advanced Options then click Refer to figure 3 14 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Advanced Options MEL L d A Hardware Config Security Just In Time Code Timeouts Misc and RTS to control RST and ISP Keep RTS asserted while COM Port open 50 ms 100 ms F Assert DTR and RTS while COM open Figure 3 14 3 Configure development environment and select LPC1788 COM Port can be saw in manger device Baud rate choose 57600 Crystal oscillator selects 12M Selectsend Hex File Refer to figure 3 15 and 3 16 File ISP Options Tools Help gt Step 1 Communications Step 2 Erase Select 1788 Erase block 0 0 000000 0 000 aset x00 bootloader 1 flash bank Bank 0 512KB 0 0007 E blocks 010000000 gt Signature 673005383 0 2810 i 77 Flash erased value 1 db 1778 Code Read Protection locatio 785 High speed communcations s LPCI786 1 1787 b Eze LPC1850 _ Execute Activate Flash Bank Your Training or Consulting Partner Embedded Systems Academy www esacademy com 32 MYIR TECH LIMITED www myirtech com Make Yo
30. UT 3 cu RBI TP8 Figure 2 22 2 4Jumper setting Figure 2 23 Connect 1 2 connect USB LCDisn t available JP2 Disconnect 2 3 connect LCD USB isn t available Connect 1 2 serial choose UARTO and output from JP11 JP5 Connect 2 3 Serial chooses UART2 and output from JP11 0 6 ISP download module Normal download module Connect 1 2 Enable RS485 to write and read When use RS485 it needs to JP7 be connected Connect 2 3 Enable USB Host power detection Table 2 2 Note 1 INT SCL SDA in USB share with LCDVD21 LCDVD22 LCDVD23 in LCD So at the same time it can only choose one 21 MYIR TECH LIMITED www myirtech com M YiIFR Make Your Idea Real MYD LPC1788 User Manual 2 Connect JP6 when download program in ISP module After download program reset board program start to run 22 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual Chapter 3 MDK Routine 3 1 Overview MDK routines are naked programs without operating system and its development tool is MDK ARM 4 53 This chapter describes how to use and writetest procedures The contents include 1 MDK development environment to be built and configured 2 MDK sample program debugged compiled and downloaded 3 The test procedures functions usage and phenomenon descriptions MDK routines cover a wide range of progra
31. ame Location Value Type 0 00006 Stack Locals Memory 1 4 gt ULINK2 ME Cortex Debugger 11 0 00000000 sec Figure 3 8 3 2 3Download programby ULINK2 Connect Ulink2 to JTAG J13 and turn power on 1 Open 05 MDK_Source 01 ADC ADC_Interrupt configureFLASH Programming Utilities in Project gt Option for target Firstly set Use Target Driver for FLASH Programming option then select ULINK2 ME Cortex Debugger and then select Update Target before Debugger Options and finally click Settings button thenpop up FLASH Download Setup dialog box 28 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Options for Target FLASH E N AL Device Target Output Listing User Linker Debug Utilities Configure Flash Menu Command STEPH Use Target Driver for Flash Programming ULINK2 ME Cortex Debugger v Update Target before Debugging Init File STEP4 Use External Programming Command Arguments Run Independent Cancel Defaults Help Figure 3 9 2 Configure FLASH Download Setup Firstly Configure download options in Download Function as shown in figure 3 10 Then set START 0x10000000 SIZE 0x800in RAM for Algorithm option last configure algorithm if Programming Algorithm box below has no algorithm file single hit Add button to select LPC17xxIAP512kB Flash and finally cl
32. arrier account Please visit http www myirtech com support asp for more details Noted 1 The shipment will start 3 biz days by Fedex Express it usually take 7 days to reach regular cities or regions 2 We will use DHL Express for West asia or middle east countries it usually take 7 days to reach regular cities or regions 3 The remote regions defined by Fedex DHL may cause delay 14 days in generally 4 Some countries have strict import policy we will help to make shipping invoice with you requirement like invoice value trade term custom statements and H S code etc Please contact us with these shipment requirements if your country has strict custom affairs Support and maintains MYIR provides 12 months warranty for hardware products if the defects or failures were notcaused by wrong use Return steps for defective products 1 Please email or call us get a Return Merchandise Authorization RMA by providing purchase details and reasons for return defective incorrect etc 2 MYIR will make a shipping invoice list value total item description etc for you return request China have strict limit on return products so please use MYIR s shipping invoice to return items to avoid custom delay Contact Tel 86 0755 25622735 Fax 86 0755 2553 2724 Mail to sales myirtech comsupport myirtech com Website www myirtech com 67 MYIR TECH LIMITED www myirtech com
33. ccur Match interrupt occur Match interrupt occur Match interrupt occur Match interrupt occur Match interrupt occur 3 4 26 Wdt Interrupt Functional description This example describes WDT generates timeout interrupt or alarm interrupt Procedures After download program press SW5 to reset board Print options select 1 display timeout interrupt When WDT counter is reduced to 0 it will cause interrupt 013 flashes Choice 2 display warning interrupt When WDT counter is close to 0 it will cause interrupt and D13 flashes Phenomenon Indicates Terminal information 1 Time out interrupt kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Watch dog timer interrupt test or debug mode demo MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps An interrupt will be generated once WWDT is timeout depend on configuration or the counter is reached the Warning Value After interrupt WDT interrupt is disabled immediately BEFORE WDT interrupt Press 1 to enable Watchdog timer Interrupt by Timeout only Press 2 to enable Watchdog timer Interrupt by Warning Pressed 1 Working with Normal Timeout Interrupt The Timer Value causes the Interrupt 0 00000000 AFTER WDT interrupt LED is blinking 2 Alarm interrupt i MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual kkkkkkkk
34. ch com Make Your Idea Real MYD LPC1788 User Manual File Edit View Tools Help Organize Open v Print Burn New folder Favorites Desktop Downloads 21 Recent Places README TXT Libraries Computer amp Local Disk C D DJ DVD RW Drive G LPC178X 0 E Network Figure 3 32 3 4 32 Usb VirtualCom Functional description This example describes configure USB as virtual COM port Procedures After download program and connect J10 to PC by Mini USB press SW5 to reset board Phenomenon Indicates After download program press SW5 to reset board There appears new equipment prompt Select install from a list or specified location andlocal project directory After install driver LPC177x 8x USB VCom Port will appear X in the is not fixed and is changed with differentconfiguration Refer to figure 3 33 52 MYIR TECH LIMITED www myirtech com Make Your Idea Real File Action View Help e9 20H mlt i Computer Management Local 4 System Tools b Q Task Scheduler b Event Viewer Shared Folders Local Users and Groups gt amp Performance 85 Device Manager 4 Storage Disk Management Services and Applications E Batteries gt Computer b xc Disk drives gt A Display adapters gt DVD CD ROM drives o Human Interface
35. chanical Dimensions 115mmx90mm Processor gt LPC1788 Cortex M3 kernel runs at up to 120 2 gt 96KB on chip SRAM gt 512KB on chip ROM gt 4KB on chip EEPROM Memory 32MB SDRAM 1MB SRAM 2MB NORFLASH 256B EEPROM Vv Y V WV 4MB SPI FLASH Audio and Video Interface gt An Audio 3 5mm Input Interface gt Two channel Audio 3 5mm Output Interface LCD Touch Screen Interface gt 24 True Color gt Resolution Support up to 1024 x 768 Transmission Interface gt serial select UARTO UART2 by jumper One high speed USB HOST interface gt mini USB interface MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual gt Ethernet MAC gt Two CAN Interface One RS485 Interface Input interface gt Standard JTAG Interface gt MicroSD Card Interface LED indicator gt system power indicator red Applications gt Communications Point of sale terminals Web servers multi protocol bridges gt ndustrial Medical Automation controllers application control robotic controls HVAC PLC inverters circuit breakers medical scanning security monitoring motor drive video intercom gt Consumer Appliance Audio MP3 decoders alarm systems displays printers scanners small appliances fitness equipment Automotive Aftermarket car alarms GPS Fleet Monitor MYIR TECH LIMITED www myirtech com Y iR
36. creen byclicking the color block gt Phenomenon indicates After download program there is picture on LCD 3 4 30 Mci_CidCard 60 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual gt Functional description This example describes Multimedia Card Interface MCI gt Procedures After download program press SW5 to reset board Insert SD Card and read SD cardinformation and print information in the terminal Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors MCI CID Card MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps This example is used to test the Multimedia Card Interface MCI function It is able to check show the CID that retrieved from the Currently the SD CARD is being used Manufacture ID 0 00000003 OEM Application ID 0x00005344 Product Name 0x5355303247 Product Revision 00000080 Product Serial Number 0x17915B1F Manufacturing Date 0 000000 3 3 4 31 Usb MassStorage Functional description This example describes USB Mass Storage application Procedures After download program press SW5 to reset board Connect board J10 to PC by Mini USB Load LPC1788 memory automatically and open device there will be a README TXT file Phenomenon Indicates Refer to figure 3 32 et MYIR TECH LIMITED www myirte
37. em None Use Cross Module Optimization i Big Endiar System Viewer File Str v Use MicroLIB Big En Memory Areas default Start Read Write Memory Areas default Start n off chip Size Startup off chip Size Nolnit 7 Rama on chip 00 580000 2 010000000 IRAM 0 20000000 oxe000 Cancel Defaults Help Figure 3 23 3 c file need to call printf function contains stdio h header file So it will be able to use printf to printdata to COM port and thendisplayby 38 MYIR TECH LIMITED www myirtech com M YIPRR Make Your Idea Real MYD LPC1788 User Manual HyperTerminal 3 4 The introduction of MDK routine MDK routines use UART2 port to print debug information so it needs to set JP4 and JP5 to enable UART2 port PIN2 connect PIN3 and JP5 set baud rate 115200 8 data bits one stop bits no parity bit no control flow Please note that after download it needs to disconnect JP6 and then reset board in ISP download otherwise it may cause abnormal 3 4 1 Interrupt Functional description This example describes ADC conversion in interrupt mode Procedures After download program press SW5 to reset board ADC value displayed in terminal and changed byturning
38. eter Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors ADC POLLING example MCU LPC177x_8x Core ARM CORTEX M3 Communicate via UART2 115200 bps Use ADC with 12 bit resolution rate of 400KHz read in POLLING mode To get ADC value and display via UART interface Turn the potentiometer to Refer to ADC value changes kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is 0000000148 0000000145 0000000149 0000000149 0000000148 0000000149 0000000148 0000000147 40 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual ADC value on channel 002 is 0000000148 ADC value on channel 002 is 0000000148 3 4 3 CAN_Test gt Functional description This example describes CAN transmit and receive data Procedures Firstly connect CAN 1 Pin2 are respectively connected Pin4 5 in J8 After download program and press SW5 to reset board will send a frame data to CAN2 After CAN2 s reception it will be checked result will be printed in terminal Phenomenon Indicates Terminal
39. ick OK button as shown in figure 3 11 Cortex M Target Driver Setup Debug Trace Flash Download STEPZ C Erase FullChip Program Erase Sectors Verify C DonotErase Resetand Run Start 10000000 Size 800 Programming Algorithm Address Range LPC1 x IAP 512kB Flash On chip Flash 512k 00000000H 000 7FFFFH 28 MYIR TECH LIMITED www myirtech com MYD LPC1788 User Manual Make Your Idea Real Figure 3 10 Add Flash Programming Algorithm m LPC1 1x1 IAP 16 FI On chip Flash LPC1 1041 IAP 24kB FI On chip Flash LPC1 101 22 1 IAP 32 On chip Flash LPC122x IAP 48kB Flash On chip Flash LPC122xlAP 64kB Flash On chip Flash 1 1 IAP 8kB Fla On chip Flash LPC122x IAP 80kB Flash On chip Flash LPC122x IAP 9 Flash On chip Flash LPC1 xx IAP 128kB Flash On chip Flash LPC1 xx IAP 255kB Flash On chip Flash LPC1 xx IAP 32kB Flash On chip Flash LPC1 x IAP 512kB On chip Flash LPC1 xx IAP B4kB Flash On chip Flash MBSBF500 25 Flash On chip Flash MB9xFxx1 64kB Flash On chip Flash MB9xFxx2 128kB Flash On chip Flash 4 Orci nm rm e rm Cancel Figure 3 11 64k 256k 64k 128k ore Add 3 Click download button download program to FLASH in LPC1788 Refer to figure 3 12 File Edit View Project Flash Debug Peripherals T
40. in 8 bits mode and verify in 32 bits read mode Then clear SDRAM and write data into SDRAM in 16 bits mode and verify in32 bits read mode Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Test SDRAM K4S561632J with LPC1788 MCU LPC177x_8x Core Cortex M3 UART Comunication 115200 kbps Write and verify data with on board SDRAM Clear content of SDRAM Writing in 8 bits format Verifying data Continue writing in 16 bits format Clear content of SRAM Writing in 16 bits format Verifying complete testing terminated 3 4 11 Emc_SramDemo gt Functional description This example describes EMC read write SRAM gt Procedures After download program press SW5 to reset board After clear data and write data into SRAM program displays memory address MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual gt Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors MCU LPC177x_8x Core Cortex M3 UART Comunication 115200 kbps Clean and write data with on board SRAM Uartinit finished The value after clearing are 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 The filling value is OxABCDDCBA The value after fil
41. information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors CAN Self test example MCU LPC17xx Core ARM CORTEX M3 UART Communication 115200 bps Use to transmit and for receive Transmitted buffer Message ID 0x00001234 Message length 0x00000008 BYTES Message type FRAME Message format EXTENDED ID FRAME FORMAT Message dataA 0 12121212 Message dataB 0x34343434 Received buffer Message ID 0x00001234 Message length 0x00000008 BYTES Message type FRAME Message format EXTENDED ID FRAME FORMAT Message dataA 0 12121212 Message dataB 0 34343434 gt CAN TEST Successful MYIR TECH LIMITED www myirtech com M YiFR Make Your Idea Real MYD LPC1788 User Manual 3 4 4 Crc Demo Functional description This example describes CRC engine Procedures After download program press SW5 to reset board Program calculates CRC block data firstly anddisplaycalculates result afterreceiving input Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors CRC Demo example MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps Use CRC engine on LPC177x_8x to calculate CRC for a 8 bit block data You can choose one of three polynomial type CRC CCITT CRC 16 CRC 32 Block data
42. kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Watch dog timer interrupt test or debug mode demo MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps An interrupt will be generated once WWDT is timeout depend on configuration or the counter is reached the Warning Value After interrupt WDT interrupt is disabled immediately BEFORE WDT interrupt Press 1 to enable Watchdog timer Interrupt by Timeout only Press 2 to enable Watchdog timer Interrupt by Warning Pressed 2 Working with Warning Interrupt The Timer Value causes the Interrupt 0 00000268 AFTER WDT interrupt LED is blinking 3 4 27 Wdt Reset Functional description This example describes WDT generates a reset event Procedures After download program press SW5 to reset board After start WDT counter decrease until underflow to reset chip After reset program will print reset reason Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk This Welcome Screen below will executive after reset event Hello NXP Semiconductors Watch dog timer reset when timeout demo MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps Use WDT with Internal RC OSC reset mode timeout 5 seconds To reset MCU when time out After reset program will determine what cause of la st reset time external reset or W
43. ling are OxABCDDCBA OxABCDDCBA OxABCDDCBA OxABCDDCBA OxABCDDCBA OxABCDDCBA 3 4 12 GPIO_Interrupt Functional description This example describes GPIO interrupt function Procedures After download program press SW5 to reset board program doesn t generate a GPIO interrupt and 09 flashes When user pressSW1 to generate a GPIO interrupt program will enter interrupt process program and D10 flash 10 times and then return a8 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual gt Phenomenon Indicates When program doesn t generate a GPIO interrupt D10 light and D9 flash When press SW1 D9 keep origin status and D10 flashes 3 4 13 GPIO_LedBlinky gt Functional description This program describes GPIO drives LED gt Procedures After download program press SW5 to reset board D9 flashes gt Phenomenon Indicates Reset board andD9 flashes 3 4 14 Nvic_VectorTableRelocation gt Functional description This example describes relocation vector table gt Procedures After download program press SW5 to reset board Vector Table will be remapped at new address 0x20001000 If remapping is successful SysTick interrupt can driver D9 flash normally gt Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors Privileged demo MCU
44. ms including DMA ADC LCD Memory Ethernet MAC and so on User can make a second development on these examples which can shorten developmentcycle 3 2 Preparation 1 Install MDK ARM Version 4 53 development tool and license and then Prepare for MYD LPC1788 board 2 Set serial Baud Rate 115200 Data Bits 8 Parity Bit None Stop Bit 1 Data flow None 3 2 1 Configure and CompileMDK Routine Firstly find 05 MDK_Source 01 ADC ADC_Interrupt Project folder and double click project then configure project Steps are as follows Noted default project setting can made download successfully please recheck if program compile or download 1 Select Option for target FLASH or press Alt F7 The Setting window is shown in figure 3 1 MYIR TECH LIMITED www myirtech com iR Make Your Idea Real MYD LPC1788 User Manual Options for Target FLASH Device Target output Listing User C C Asm Linker Debug Utilities NXP founded by Philips LPC1788 m Cade Generation Xtal MHz 22 Operating system None Use Cross Module Optimization SONS Use Big Endian d Read Only Memory Areas Read Write Memory Areas default off chip Start Size Startup default off chip Start Size Nolnit ROMI NEN RAMI ROME ROM3 1
45. nal description The program shows 2 writes and reads EEPROM gt Procedures After download program press SW5 to reset board Program writes 8 bytes data and verify message Debug information is outputted in terminal gt Phenomenon Indicates Terminal information kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Hello NXP Semiconductors 2 EEPROM Example MCU LPC177x_8x Core ARM CORTEX M3 UART Communication 115200 bps A simple 12C EEPROM example a page data will write to EEPROM and read out for verification Write EEPROM OK Read EEPROM OK i2c_rx_Buf 0 is 0 i2c rx Buf 1 is 1 i2c rx Buf 2 is 2 i2c rx Buf 3 is 3 i2c rx Buf 4 is 4 i2c rx 51 is 5 i2c rx Buf 6 is 6 i2c rx Buf 7 is 7 12 EEPROM Test Success 64 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 3 4 35 RS 485 Master amp Slave Functional description This example describes 5485 communication Procedures This test needs two MYD LPC1788 boards Firstly connect PIN1 to PIN2 in JP7 to PIN8 in J8 then download programrespectivelyinto two development boards After download program press SW5 to reset board Host sends data to slave A and B by turn When the salve boardreturn ACK slave address B after receiving data from host it shows communication is success Phenomenon Indicates Terminal information 1 Master mode Hello NXP Semic
46. ocessor LPC1788 is applied in high level of support block integration and low power embedded product The processor has LCD controller 10 100 Mbps Ethernet MAC high speed USB Device Host OTG controller controller SPI SSP IIS and external EMC It is used in industrial control and medical system specially 2 2 2 SDRAM Module SDRAM chooses 45561632 Its characteristics are as follows Auto refresh gt 64msrefresh cycles SDRAM circuit is shown in figure 2 1 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual 0 23 1 24 0 i 56 70 5 30 6 31 NN o 55 AB EMC DOMO DOMI lt EMC CKEO ___ gt ecco S 3y3 2 ccas Eeo F meme RAS zm um EMC_DYCSO A a MC a EMC_ 2 2 EMC_ gt K48561632H gt SDRAM Figure 2 1 2 2 3 SRAM Module SRAM choose IS61LV51216 Its characteristics are as follows gt gt Vv WV High speed access time 8 10 and 12ns CMOS low power operation Low stand by power Less than 5mA Fully compatible operation no clock or refresh required Three state outputs Data control for upper and lower bytes Industrial temperature available SRAM circuitis show in figure 2 2 MYIR TECH LIMITED www myirtech com
47. onductors RS485 demo in Master mode SlvAddr 65 Dev A have NO reply SlvAddr 66 ACK SlvAddr 65 Dev A have NO reply SlvAddr 66 ACK 2 Slave mode Hello NXP Semiconductors RS485 demo in Slave mode Slave s Receiver is not always enabled Auto Address Detection is enabled Slave Addr detected Slave Addr detected Msg B Hello NXP BBBBBB Recv a Terminator and Send ACK back Slave Addr detected Slave Addr detected Msg B Hello NXP BBBBBB Recv a Terminator and Send ACK back Slave Addr detected gn MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Slave Addr detected Msg B Hello NXP BBBBBB Recv a Terminator and Send ACK back 66 MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual Appendix 1sales FAQ and technical support How to buy We accept paypal payment and bank wire transfer 1 Paypal payment Please select the products add into shopping cart the checkout web page will redirect to paypal com for you payment Shipment fee will calculated automatically by your locationregion 2 Bank wire transfer Pls email or fax us with products list you want we will send you a pro invoice with order value total shipping cost and bank information Shipping details Please select the shipping area catalogue for you location If you have carrier account to pay the shipment fee please select Freight collect and email us the c
48. ools SVCS Window Help 2 aaja mom mi ie ue uso 14 i Bt e cs Project B uptc EA stdinth a FLASH 028 include debug frmwrk h 5 89 Startup 023 include bsp h 8 startup LPC177x 8 080 amp 3 CMSIS CM3 HI d f core_cm3 c Nn T S 03 ADC input preset on this board stdinth 034 define BRD ADC PREPARED CHANNEL ADC CHANNEL 2 PR unda m E system LPC177x 8 05 define BRD PREPARED INTR ADC ADINTENZ 8 Drivers 036 18 Ipc177x 8x uart c D 03 define BRD ADC PREPARED CH PORT 0 a H debug frmwrk c 038 define PREPARED CH PIN 25 A Ipc177x 8x clkpwr 033 define BRD ADC PREPARED CH FUNC NO 1 A Ipc177x 8x pinsel 040 177 8x adc c Example group 8 177 _8 042 defgroup ADC Interrupt ADC Interrupt s uides 043 ingroup ADC Examples Ba Main 0M 8 Adc_Interrupt c us l3 Ipc177x 8x 046 ldlpcl77x Sxh 047 KAKKAAAAAAAAAAAAAAAAAAAAKK PRIVATE DEFINITIONS A X X Xd eee core cm3 h 048 stdint h 049 core_cminstr h 050 AAAAAKAAAAAARAAAAAAAAKAAAK PRIVATE VARIABLES AX 9 kd X AGERE E core cmfunc h 051 uint8 t menul 3l y es h 052
49. potentiometer Phenomenon Indicates Terminal information Hello NXP Semiconductors ADC INTERRUPT example MCU LPC177x 8x Core ARM CORTEX M3 Communicate via UART2 115200 bps Use ADC with 12 bit resolution rate of 400KHz read in INTERRUPT mode To get ADC channel value and display via UART interface Turn the potentiometer to Refer to how ADC value changes ADC value on channel 002 is 0000000148 ADC value on channel 002 is 00000001 45 ADC value on channel 002 is 00000001 46 ADC value on channel 002 is 0000000144 ADC value on channel 002 is 0000000144 ADC value on channel 002 is 0000000144 ADC value on channel 002 is 0000000144 MYIR TECH LIMITED www myirtech com ADC value channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is ADC value on channel 002 is 3 4 2 ADC_Polling gt Functional description M YiFR Make Your Idea Real 00000001 46 00000001 46 00000001 46 00000001 44 00000001 44 00000001 46 00000001 46 00000001 44 0000000146 00000001 46 00000001 46 MYD LPC1788 User Manual This example describes ADC conversion in polling mode Procedures After download program press SW5 to reset board ADC value displayed in terminal and changed by turning potentiom
50. s Tools SVCS Window Help Deda New Vision Project eet New Multi Project Workspace Open Project E Close Project E LER p gt Startup Maria i 8 star 55 CMSIS Select Device for Target FLASH b A core Remove Item ls j amp Options for Target FLASH Alt F7 B syst Drivers Geen target 8 Ipci ij Build target F7 deb Rebuild all target fles 0000000005 590 000200000000 A loc Batch Build Figure 3 5 3 2 2 DebugMDK Routine The following is MDK programconfiguration and it has a hardware emulator ULink2 in advance If need it please contact the company to purchase it 1 After opening project open setting dialog box and select Debug Refer to figure 3 6 Device Target Output Listing User Asm Linker Debug Utilities Use Simulator Settings Use ULINK2 ME Cortex Debugger Y Settings Limit Speed to Real Time v Load Application at Startup Run to main Load Application at Startup Run to main Initialization File Initialization File El Edit Restore Debug Session Settings Restore Debug Session Settings v Breakpoints Toolbox v Breakpoints Toolbox Watch Windows amp Performance Analyzer Watch Windows v Memory Display v Memory Display CPU DLL Parameter Driver DLL Parameter SARMCMS3 DLL MPU BARMCM3 DLL MPU Dialog DLL Parameter Dialog DLL
51. s external charge pump gt Full industrial grade operation from 40 85 USB circuitis shown in figure 2 17 2487 NRST OUT 3 USB 8 US8_D lt gt 8 Figure 2 17 USB HOST chooses 52041 Its characteristics are as follows 50mA continuous current Short circult and thermal protection with overcurrent logic output Undervoltage lockout Maximum standby supply current 1 single Double 2uA Three Four Bidirectional switch Ambient temperature range 40 C to 85 C WV ESD protection USB HOSTcircuitis shown in figure 2 18 19 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual 3V3 us TPS2041BDBV 3 USB_PPWR2 4 En IN 5 R95 3 USB OVRCR2 amp 3 o 2 GND 5 e 90 e C81 8 USB PWRD2 Ut LE 3 275 894 a Fa 3 USBD2 2 E 31 gt 212 Reo mes Reg D8 USB A 15 15K le s gt Figure 2 18 2 3 6 JTAG interface JTAG circuit is shown in figure 2 19 3V3 0 nTRST 0 lt 0 JTAG TMS 2 JTAG lt 2 JTAG TDO D DD Figure 2 19 2 3 7 LCD Touch Screen Interface LCD Interface is shown in figure 2 20 m MYIR TECH LIMITED www myirtech com
52. ule function directly For example if join timer functionin CAN Test then select Add File to Group Drivers to find 177 8x timer c files in 05 MDK Sourcecommon Drivers source and click Add button Refer tofigure 3 20 and 3 21 El FLASH E A startup LPC177x 8x s 6 CMSIS CM3 E core cm3 c JU cadis MA SN Options for Group Drivers Open File Open List File Open Map File ER Rebuild all target files Build target Translate File Stop build Add Group Add Files to Group Drivers Remove Group Drivers and its Files d Manage Components Show Include File Dependencies a Figure 3 20 a6 MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual n Add Files to Group Drivers Look in 2 source e amp er Ee Name Date modified 77 8x nvic c 2011 10 24 9 22 7 8x pinsel c 2012 08 08 13 52 7 8 pwm c 2011 10 24 9 22 77 8x qei c 2011 10 24 9 22 7 8x rtc c 2011 10 24 9 22 _ 177 8 ssp c 2012 08 06 14 06 as 1 177 8x systick c 2012 08 08 14 29 1 177 8x timer c 2011 10 24 9 22 1 177 _8 uart c 2012 08 01 17 06 E lpcl77x 8x wwdt c 2011 10 24 9 22 4 Files of type Source file c Close
53. ur Idea Real MYD LPC1788 User Manual AUser nis 788 Myi E File Edit View Project Flash Debug Peripherals Tools SVCS Window Help aa 6 e ol gt Sese re 29 m u m x Registers Disassembly Symbols a F Register B Core OxiFFFO084 5 10 LDR W r5 pc 816 BOxiFFFO0098 8 RO OxiFFFOO88 6826 LDR r6 r4 0x00 Module Name Location OxiFFFOOB8A 050606 AND r6 r5 r6 gt R1 0x0000t 4 rr 7 8 Virtual Regist R2 0 0000 m R3 0 04 1 19 177 8x adcc 8 Special Functi R4 0 0000 Interrupt R5 0000 adc_value 0 amp lt R6 0x1000t 8 4 Adci RT 0x4009t if ChannelGetStatus LPC BRD cm R8 OxFFFFI m R9 0 1000 adc value ChannelGetData LPC ADC B R10 0x0000t zl 11 0 0000 gt R12 0x0000t aS SP Ox1000 Command a R14 LR OxFFFFE R15 Setup for Running wo xPSR 0 0100 8 of 4 r H System E Internal ASSIGN BreakDiseble BreakEnable BreakKill BreakList BreakSet Mode Thread Privilt Call Stack Locals n Stack MSP States 0 N
54. ur Idea Real MYD LPC1788 User Manual Figure 3 15 ISP Options Tools Help 29 gt Step 1 Communications Step 2 Erase LPC1788 Erase block 0 0x000000 0x000FFF Erase block 1 0 001000 0 001 Flash Bank Erase block 2 0 002000 0 002 Erase block 3 0x003000 0x003FFF COM Port COM 1 Erase block 4 Dx004000 0x004FFF Baud 57600 560 Erase block 5 0x005000 0x005FFF Erase all Flash Code Rd Prot Interface None Noe SP Erase blocks used by Hex File Oscillator MHz 12 000000 Step 3 Hex File Modified September 30 2012 8 54 Step 4 Options Verify after programming Fill unused Flash Visitthe Flash Magic home page for info on the latest revision www esacademy com software flashmagic Figure 3 16 4 Connect UART to COM and click ISP gt Read Device Signature then Flash Magic will recognize LPC1788ID Refer to figure3 17 T MYIR TECH LIMITED www myirtech com Make Your Idea Real MYD LPC1788 User Manual In Device Signature Manufacturer ID Device ID 1 0 Device ID 2 Device ID x 281D3F4 Bootloader Ver 8 1 SerialNumber 252642578 1397561374 1312624046 4110417920 Close Figure 3 17 5 Recognizing board and clicking Start button program will be downloaded into board Refer to figure 3 18 Flash Magic NON PRODUCTION U
55. ures After download program press SW5 to reset board DMA transfer data to DAC peripheral constantly DACvalue changes byconstant transferring data Use multimeter or oscilloscope to detect TP7voltage Phenomenon Indicates Output voltage from to 3 3V direct jump to OV began to rise again in cycle So there will be saw tooth waveform in oscilloscope It is observed oscilloscope V price and s lattice knob settings for 2 00V and 1 00S Refer to figure 3 24 T MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual kS s 5 6nsfdiw YOKDGAWA 0 CH1 1 1 1 04 Udi Full Figure 3 24 3 4 6 Dac_SineWave gt Functional description This example describes DMA generatessine wave signal gt Procedures After download program press SW5 to reset board Oscilloscope probe is connected to TP7 and thenthere will be sine wave signal Phenomenon Indicates Observe waveform by oscilloscope V price and s lattice knob settings for 2 00V and 2 50ms Refer to figure 3 25 51 1 YOKOGAWA 900 3 5 Znsilie C 1 1 1 00 U diu ax Full Figure 3 25 3 4 7 DMA_Flash2Ram gt Functional description This example describes GPDMA function by transferring data from Flash to Ram aa MYIR TECH LIMITED www myirtech com MYR Make Your Idea Real MYD LPC1788 User Manual memory gt Procedures
56. x002FFF Erase block 3 0x003000 0x003FFF COM Por COM 1 Erase block 4 Dx004000 0x004FFF Baud Ree 57800 o vyl Ed block 5 0x005000 0x005FFF Erase all Flash Code Prot Interface None None SP Erase blocks used by Hex File Oscillator MHz 12 000000 Step 3 Hex File Hex File CAUsersVAdministratonDesktoplpcl 88MMyirProductCD Reference Modified September 30 2012 8 5 more info Step 4 Options Verify after programming Fill unused Flash Gen block checksums Execute Activate Flash Bank Your or Consultina Partner Embedded Svstems Www esacademy com Figure 3 19 3 3MDK source use 3 3 1 Directory structure MYD LPC1788 MDK routines is in 05 MDK_Source of CD ROM directory Common folder contains MDK routine common code including start up peripheral drivers core initialization foreign expansion chip driver Detailed information is shown in Table 3 1 BoardSupport External expansion chip driver onboard MYIR TECH LIMITED www myirtech com Y iR Make Your Idea Real MYD LPC1788 User Manual CoreSupport Macro definition of kernel function DeviceSupport Boot code and system initialization code Drivers Peripheral drivers Table 3 1 3 3 2 Add function module When need to test or use a function module add C file in module and then contain module header file in C files lastly call mod
Download Pdf Manuals
Related Search
Related Contents
OWNER`S MANUAL OWL800 Dual-Radio Mesh-Capable Outdoor AP ICX30-HWC User Manual SERVICE MANUAL LS2104 MC/R730 - 121ware.com Palsonic TFTV681U User's Manual Samsung DVD-R135 User Manual Whirlpool Roper REX4634KQ0 User's Manual Copyright © All rights reserved.
Failed to retrieve file