Home
ET-NXP-ARM-KIT-LPC1768 EN
Contents
1. enable ADC unsigned int val while 1 LPC ADC gt ADCR 1 lt lt 24 start conversion while LPC_ADC gt ADGDR amp 1UL lt lt 31 Wait Conversion end val LPC_ADC gt ADGDR gt gt 4 amp OXFFF read converted value LPC ADC sADCR amp 7 lt lt 24 stop conversion Example of setting values for P1 31 to ADO 5 How to use Graphic TFT LCD be Analog Input There are 2 types to connect circuit of Board ET NXP ARM KIT LPC1768 with 3 2 Graphic TFT LCD as described below e It permanently installs Module LCD on Board by ETT Co using TFT LCD KWHO32GM02 F05 and it Signal with TFT LCD in SPI mode moreover this TFT LCD version has included Sensor of Touch Screen completely The device of Board ET NXP ARM KIT LPC1768 that is used to read Sensor of Touch Screen is designed to choose Chip numbers as preferred in this case it uses Chip No STMPE811 connects Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E for I2C Interface or it uses Chip ADS7846 for SPI Interface it depends on chip type that is installed in board in the process of making board v O amp Way 892 Way a eeteees OOOOCCOOOOOSO 89 CLLLLLLLL LOLOL OL LLOGO KC e It installs Board Display ET TFT240320TP 3 2 REV B from ETT that has already been installed TFT LCD KWH032GM02 F05 with Chip ADS7846 to read Touch Sensor internal bo
2. Volume to adjust voltage for testing A D Mini Speaker or Buzzer to makes sound or Beep sound Moreover it provides high level devices to support more application such as USB Device Host OTG Port SD Card Ethernet LAN Port Graphic LCD RS232 and available free GPIO that can be designed to use them with other devices as desired Features and Specifications of Board ET NXP ARM KIT LPC1768 1 Use 32 Bit MCU that is the series of ARM Cortex M3 No LPC1768 from NXP 2 Has 512KB Flash Memory 64KB Static RAM internal MCU 3 Use Crystal 12 00MHz so MCU is able to process data with high speed at 100MHz when using with Phase Locked Loop PLL internal MCU itself 4 Has Circuit RTC Real Time Clock with XTAL 32 768KHzZz and Battery Backup 5 Support In System Programming ISP and In Application Programming IAP through On Chip Boot Loader Software via Port UARTO RS232 6 Has circuit to connect with the standard 20Pin JTAG ARM for Real Time Debug 7 Use 5VDC Power Supply from 2 different sources from external Power Supply that uses 2PIN Connector and from Connector USB Device with Circuit Regulate 3V3 3A 8 Has Circuit USB Device 2 0 Full Speed internally USB Function has 32 End Point 9 Has Circuit USB Host with Circuit Over Current Protection 10 Has Circuit USB OTG by using ISP1301 to be OTG On The Go Transceiver 11 Has Circuit Ethernet LAN 10 100MB by using the standard Connector RJ45 1 Channel 12 Has Circuit SD
3. ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E 8 ET RS232 13 DRS FMAI E RY32 PC Figure displays Circuit of cable for RS232 ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Ethernet LAN It uses the standard Connector Ethernet RJ45 to connect the Network System and Board ET NXP ARM KIT LPC1768 This circuit uses Pin P1 0 1 4 8 9 10 14 17 and Chips Physical Ethernet No DP83848 to be Driver for connection There are 2 methods to connect Cable Ethernet LAN of Board with the Network System Direct Line Interface and HUB Interface e Case 1 It directly connects to computer and Cable LAN is connected as Cross type 10BaseT cross cable diagram RJ 45 plug RJ 45 jack TD 1 1 TD TD 2 2 TD RD 3 3 RD nic 4 4 nic nic 5 5 nic RD 6 6 RD nic 7 7 nic 1 8 1 8 nic 8 8 nic e Case 2 It is connected through HUB of computer Server and it is connected as Direct type 10BaseT cross cable diagram RJ 45 plug RJ 45 jack TD 1 1 TD TD 2 2 TD RD 3 3 RD nic 4 4 nic nic 5 5 nic RD 6 6 RD nic 7 7 nic nic 8 8 nic ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E How to use USB Board ET NXP ARM KIT LPC1768 has Port that can be connected with USB Device either USB Host or USB OTG On The Go
4. 1K LED6 AA 1K LED7 If user wants to use this operation it needs to set function of P2 0 7 to be GPIO Output Port first and then controls the preferred Logic for P2 0 7 as the example below ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Config Pin GPIO P2 0 7 Drive LED LPC PINCON gt PINSEL4 amp OxXFFFF Reset P2 0 7 GPIO LPC GPIO02 gt FIODIR OxFF 2210 7 Outputs LPC GPIO2 gt FIOCLR OxFF Turn OFF all LED LPC GPIO2 gt FIOSET le20 p ON LED O LPC GPIO2 gt FIOCLR iL lt lt p OFF LED 0 LPC GPIO2 gt FIOPIN 1 lt lt 0 Toggle LED 0 Example of setting value of P2 0 7 to be Output LED How to use Circuit Push Button Switch This circuit uses Circuit Push Button Switch with Circuit Pull Up that is compatible with 3 3V Power Supply If this Switch is not pressed it makes Logic status 1 but if the Switch is pressed it makes Logic status 0 in this case it is used to test the operation of Input Logic and it uses P2 10 to connect There are 3 functions as follows e ISP Download through RS232 UARTO by using with Switch RESET e Test Input of P2 10 e Test Interrupt of EINTO VDD z a 470 Baar P2IOENTO ANTO GR O dvOTdSI ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E LPC_PINC
5. 32 768KHz to be Time Base for RTC internal MCU No 16 It is Crystal 12MHz to be Time Base of MCU e No 17 It is MCU No LPC1768 100Pin LQFP No 18 It is SW RESET e No 19 It is SW ISP LOAD or P2 10 EINTO No 20 It is VR to adjust 0 3V3 Voltage to test A D P1 31 ADO 5 No 21 It is Buzzer to generate sound No 22 It is 5 directional Joy Switch e No 23 It is Connector CAN2 or GPIO PO 4 5 e No 24 It is Connector D A or GPIO P0 26 e No 25 It is Connector GPIO P4 29 No 26 It is Connector CAN1 or GPIO PO 0 1 e No 27 It is Connector I2C1 Bus or GPIO PO 19 20 No 28 It is Connector I2STX or GPIO P2 11 13 e No 29 It is Connector I2SRX or GPIO P0 23 25 e No 30 It is 320x320 Dot TFT LCD with Touch Screen Sensor ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E How to drive Circuit LED Display connected LED Display of board Current and is compatible with 3 3V Power Supply this case it runs by Logic by Logic o 0V I 4 3V3 Source in and stops running The operation is controlled by 8 GPIO that are P2 0 7 This circuit used test operation of Output VDD lt ao va r TR AA 5 18 IK LEDO A3 BO 6 m m 7 Eo 5 16 AA 8 15 1K LED1 _ B 4 ol gt B K AA pde sC une GND B7 AA T4LCXAS IK LED3 AA 1K LED4 AA 1K LEDS PA
6. Card Micro SD 1 Channel for SPI Interface 13 Has Circuit RS232 Communication by using Connector 4 PIN 2 Channel ETT standard ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E 14 Has circuit TFT LCD Color 320x240 Pixel 3 2 inch with Touch Screen 15 Has 1 of Circuit Push Button Switch with Switch RESET 16 Has 1 of Circuit 5 directional Joy Switch T7 Has 8 of Circuit LED to display testing statuses of Output with Circuit Buffer 18 Has 1 of Circuit 0 3V3 Generator by using Adjustable Resistor to test A D 19 Has 1 of circuit to generate and drive beep sound by using Mini Speaker or Buzzer 20 Has independent 22Bit GPIO for various modification such as D A I2C I2S CAN and Input Output a Header 10Pin IDE P2 0 7 for GPIO or Full Duplex Serial UART b 3Pin Header P0 26 for GPIO or D A c 3Pin Header P4 29 for GPIO d 4Pin Header P0 19 20 for GPIO or I2C Bus e 4PIN Header PO 0 1 and PO 4 5 for GPIO or CAN1 and CAN2 Bus f 5Pin Header P0 23 25 and P2 11 13 for GPIO or I2S RX and I2S TX ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E OOOO OD Wdy 8927347 o Wdy 268737 mM l dXNX 13 OBEZIa De HLOSLL2 NH 113 Way Te JTAG ARM aa 1G OOOSCOSCCOOSCCOOSCCO 29 2OLLLLLLLLL GOO OOO 8QOOKE Picture displays the structure of Board ET NXP ARM KIT LPC1768 amp T
7. Interface and it uses Pin PO 15 18 to connect with card When user wants to command the card it is able to program Pin I O of PO 15 18 to operate in SPI Mode and it needs to set the function of Pin PO 15 18 of MCU as follows e CLK uses P0 15 for Function SCK of SPI e CD DAT3 uses P0 16 for Function GPIO Output e DATO uses P0 17 for Function MISO of SPI e CMD uses P0 18 for Function MOSI of SPI ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E P0 16 GPIO OUT P0 18 SPI MOSI P0 17 SPI MISO MICRO SD 3M DAT2 CDDATB Comiig PO 15 20 16 20 17 20 LPC_SC gt PCONP LPC_SC gt PCLKSELO PCLK_ SPI CCLK 4 18MHz LPC_SC gt PCLKSELO PCLK_SPI CCLK 72MHz INC SPL SSPCeR ISO SSEL is GPIO output set to high LPC _GPIO0O gt FIODIR LPC _GPIO0O gt FIOPIN LPC _PINCON gt PINSEL1 amp SCK MISO MOSI are LPC _PINCON gt PINSELO amp LPC_PINCON gt PINSELO LPC _PINCON gt PINSEL1 amp cleared LPC_PINCON gt PINSEL1 MOSI Config SPI Master 8Bit CPOL 0 CPHA 0 LPC_SPI gt SPCR amp 1 lt lt 3 cock LPC_SPI gt SPCR amp 1 lt lt 4 LPC SPI gt GPCR de lt 5 SPI LPC_SPI gt SPCR amp 1 lt lt 6 First LPC_SPI gt SPCR amp 1 lt lt 7 INT ETT Co Ltd 3UL lt lt 30 3UL lt lt 30 3 lt lt 2 3 lt lt 4 3 lt
8. depends on writing program to set function of USB internal MCU of LPC1768 In the part of Hardware user needs to set Jumper to choose the connection between Signal USB of MCU LPC1768 and Circuit of USB Port in this case it needs to set the values according to the real usage There are 3 types of USB Connection as follows HOST OTG DEVICE It chooses USB Mode to be USB DEVICE HOST OTG DEVICE It chooses USB Mode to be USB OTG HOST OTG DEVICE It chooses USB Mode to be USB HOST ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E USB Device Mode This operation mode uses 5 Cables to connect and it needs to program function of each pin to connect with USB Bus as follows e USB D uses P0 29 for Function USB D of USB Device Mode e USB D uses P0 30 for Function USB D of USB Device Mode e USB CONNECT uses P2 9 for Function USB CONNECT USC LED of USB Device Mode USB UP LED P1 18 lun n USB_UP_LED UGL LED A4 USB Device Mode e USB UP LED uses P1 18 for Function USB UP_ LED UGL LED of USB Device Mode USB VBUS 4214 P1 30 lun n USB VBUS 104 USB Device Mode e USB VBUS uses P1 30 for Function USB VBUS of USB Device Mode If it is USB Device there is Jumper UMODE to choose the connection with USB Host either Direct Connect or Soft Connect by using P2 9 USB_ CONNECT to be Pin Control of the connection If it chooses Soft Connect it
9. in this case it can be used either general GPIO or other functions according to the Config value of P4 29 as required o P4 29 GPIO GPIO LILIGI O Q Z oO 3V P4 2 e Connector I2C 1 is Header 1x4 that is used to be the connecting point PO 19 20 in this case it can be used either general GPIO or I2C Bus as required o P0 19 SDA1 o P0 20 SCL1 12C1 HEILI o 2 Q 4 AN Z so o Z oa O0 e Connector CAN 1 is Header 1x4 that is used to be the connecting point PO 0 1 in this case it can be used either general GPIO or Can Bus CAN 1 as required o P0 0 RDI o P0 1 TDI CAN1 ESLER ERIE Ll o AQ S S o 2 OQ ao O e Connector CAN 2 is Header 1x4 that is used to be the connecting point PO 4 5 in this case it ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E can be used either general GPIO or Can Bus CAN 2 as required o P0 4 RD2 o P0 5 TD2 CAN2 EIEIEIE S 4 Oo o o zZ oa O0 e Connector I2SRX is Header 1x5 that is used to be the connecting point P0O 23 25 in this case it can be used either general GPIO or I2SRX as required o P0 23 RXCLK Oo P0 24 RXWS o P0 25 RXSDA I2SRX HALILI 2 A AN N Q Z o o o zZ of a amp e Connector I2STX is Header 1x5 that is used to be the connecting point P2 11 13 in this case it can be used either general GPIO or I2STX as required o
10. lt 2 3 lt lt 4 SPI Interface Enable power to SPI amp 3 lt lt 16 1 lt lt 16 72MHz 180 400kBit P0 16 is output set PO 16 high P0 16 GPIO P0 15 cleared P0 15 SCK f f20 LF P0 18 P0 17 MISOMERORS CPHA 0 Rising CPOL 0 MSTR 1 Master USBF 0 MSB SPIE 0 Disable WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E LPC SPI gt SPCR amp 15 lt lt 8 BET 0000 Bits Format LPC_SPI gt SPCR 1 lt lt 11 BIT 1000 8 Bit Data LPC_SPI gt SPCR 1 lt lt 2 Enable SPI Example of setting Pin for SD Card Connector Port I O of Board Port I O of CPU is arranged at connectors so user can choose them as preferred in this case there are 8 sets as shown below e Has 2 sets of Connector IDE 10Pin in this case there are 8Bit per each set P2 0 7 Signal are arranged as below P2 0 C P2 1 P2 2 C C P2 3 P2 4 C P2 5 P2 6 C P2 7 3V3 C GND P2 0 7 e Connector DAC is Header 1x3 that is used to be the connecting point PO 26 in this case it can be used either general GPIO or D A Aout as required o P0 26 AOUT or D A DAC m n gt 9 2 O a O E i ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E e Connector GPIO is Header 1x3 that is used to be the connecting point P4 29
11. 11 it is I2C Interface that has Address position of Device for I2C Interface as 0x82 It uses I2C1 of MCU to communicate and it connects signals as follows e SDAT STMPE811 uses P0 19 to be SDA1 of I2C1 e SCLK STMPE811 uses P0 20 to be SCL1 of I2C1 e INT STMPE811 uses P2 8 to be GPIO Input Config P1 20 24 to SSPO For Read Touch LCD ADS7846 LPC _PINCON gt PINSEL3 amp 3UL lt lt 10 Reset P1 21 Mode GPIO LPC GPIO1 gt FIODIR l 1Ubee21 P1 21 ADS7846 CS Output LPC GPIO1 gt FIOPIN aUmee321 P1 21 High LPC PINCON gt PINSEL1 amp 3UL lt lt 10 Reset P0 21 Mode GPIO ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E LPC _GPIO0O gt FIODIR amp Config SSPO Pin Connect LPC_PINCON gt PINSEL3 SCKO SSP0O LPC_PINCON gt PINSEL3 MISOO SSPO LPC_PINCON gt PINSEL3 MOSIO SSPO LPC_SC gt PCONP block LPC _SC gt PCLKSEL1 LPC_SC gt PCLKSEL1 LPC_SSP0 gt CPSR 2MHz LPC_SSPO gt CRO LPC_SSPO gt CR1 Config P0 6 P0 7 LPC _PINCON gt PINSEL9 LPC _GPIO4 gt FIODIR LPC GPIO04 gt FIOPIN LPC_PINCON gt PINSELO LPC _GPIO0O gt FIODIR GLCD ERCRCPTOOT ETOSET LPC_PINCON gt PINSELO LPC_PINCON gt PINSELO LPC_PINCON gt PINSELO LPC_PINCON gt PINSELO MISO1 SSP1 LPC_PINCON gt PINSELO LPC_PINCON gt PINSELO MOSI1 SSP1 LPC_SC gt PCONP block LPC_SC gt PCLK
12. 32 between RS232 Serial Port Communication of PC and Board UARTO 2 Supply power into board user can see status of LED PWR to be ON 3 Run Program Flash Magic if it is Version 5 39 1797 it will display operating results as below iy Flash Magic NON PRODUCTION USE ONLY File ISP Options Tools Help uH A2QB vES 9 ROS Step 1 Communications Step 2 Erase LPC1768 COM Port COM 4 Baud Rate 115200 Interface None ISP i l Erase all Flash Code Rd Prot Oscillator MHz 12 eed s used by Hex File Hex File C NXP ET_NXP_ARM_KIT_LPC1768 Demo_PeriPheral GPIO Fl Modified Tuesday November 10 2009 11 28 59 AM more info Step Ae Options Step 5 Start C Fill unused Flash Gen block checksum oana Rotating fully customizable remotely updated Internet links Embed them in your application waw embeddedhints com ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E 4 Start setting initial values into program as required if using with LPC1768 of Board ET NXP ARM KIT LPC1768 from ETT it chooses and sets values into program as follows e Choose COM Port according to the real COM Port number that is actually is connected on board this example is COM4 Should set Baud Rate in the range of 2400 115200 if it sets Baud Rate too high it maybe error So it is better to reduce Baud Rate lower t
13. 6 28 29 In LPC _PINCON gt PINSEL7 amp 0x03 lt lt 18 LPC _GPIO3 gt FIODIR amp 1UL lt lt 25 Idoy Up PI 25 ILIE LPC_GPIO1 gt FIOPIN gt gt 25 amp 0x01 else Joy Down P1 26 ILIE LPC_GPIO1 gt FIOPIN gt gt 26 amp 0x01 else P1 25 GPIO P1 26 GPIO P1 28 GPIO P1 29 GPIO P3 25 GPIO P3 25 Input SW Release SW Press SW Release SW Press ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Jor Righe Bil Qe ILIE LPC_GPIO1 gt FIOPIN gt gt 28 amp 0x01 SW Release Joy Center P3 25 ILIE LPC GPIO3 FTOPIN gt gt 25 amp POL SW Release else SW Press Example of setting values for Input Joy Switch How to use Circuit Sound Generator Circuit Sound Generator uses Mini Speaker with Circuit NPN Transistor to drive current to the speaker It is compatible with 3 3V Power Supply in this case it runs by Logic 1 and stops running by Logic o0 It sends Signal Logic that is various frequencies to the speaker to generate various ranges of sound frequencies as preferred in this case it is controlled by P3 26 VDD 10R 4148 2K2 P326 PIO OUT If user wants to use this operation it needs to set function of P3 28 to be GPIO Output Port first and then controls the Logic for P3 28 ON OFF to be the preferred
14. 7 can set many connecting points of pin to connect for example UART2 can choose either Pin PO 10 and PO 11 or P2 8 and P2 9 as required Board ET NXP ARM KIT chooses Pin PO 10 and PO 11 to be the connecting point with UART2 so user needs to set the command to choose pin correctly Be careful about using UART the Default value of UART2 is disabled so user needs to enable the operation of Circuit UART2 before using the command Initial for UART Otherwise user is unable to command any UART The example Code of setting the UART value in the initial part is shown below Config UARTO Connect to PO 2 P0 3 LPC PINCON gt PINSELO amp 0x03 lt lt 4 Reset P0 2 GPIO LPC_PINCON gt PINSELO 0x01 lt lt 4 jf Contig 20 2 Wade LPC _PINCON gt PINSELO amp 0x03 lt lt 6 Reset P0 3 GPIO LPC _PINCON gt PINSELO 0x01 lt lt 6 Config P0 3 RxDO Config UART2 Connect to POLO P0 11 LPC _PINCON gt PINSELO amp 0x03 lt lt 20 Reset P0 10 GPIO LPC_PINCON gt PINSELO Ox01 lt lt 20 Config P0 10 TxD2 LPC PINCON gt PINSELO amp 0x03 lt lt 22 Reset P0 11 GPIO LPC PINCON gt PINSELO 0x01 lt lt 22 M Conta ge BOIL RxD PCONP 0x01000000 UART2 Power ON Example of setting Pin for UARTO and UART1 Figure below displays the Cable that is connected RS232 between Com Port of computer PC and Connector UARTO and UART2 of Board ET NXP ARM KIT
15. FT LCD zaxo SE dN9 BN NN NNN NN 0000 UOOA 0000000000000 SS SN Picture displays the structure of Board ET NXP ARM KIT LPC1768 ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Structure of Board ET NXP ARM KIT LPC1768 307 Jd HAY 89T HAY Zeez HLS LL nny C AXN L eezoaDe pe NNN 1 SSSOSCSOCCOSS OSS SSSSO IE CLL OO LLL000000000000 K Figure displays device s position on Board ET NXP ARM KIT LPC1768 e No 1 It is Connector UARTO RS232 for usage and Download Hex File into CPU e No 2 It is Connector UART2 RS232 for usage e No 3 It is Socket to insert memory card it is compatible with Micro SD Card e No 4 It is LED O 7 to test Logic Output of P2 0 7 e No 5 It is Connector GPIO P2 0 7 e No 6 It is Connector Power Supply of board that uses 5VDC e No 7 It is LED to display status of Power VDD 3V3 e No 8 It is connector USB Host e No 9 It is Connector USB OTG e No 10 It is Connector USB Device ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E e No 11 It is Jumper UMODE to choose operation mode of USB Device connection No 12 It is Jumper USB to choose USB Modes between Device OTG Host e No 13 Connector Ethernet LAN RJ45 No 14 It is Connector JTAG ARM for Real Time Debug e No 15 It is Crystal
16. ON gt PINSEL4 amp 0x03 lt lt 20 Reset P2 10 GPIO LPC GPIO2 gt FIODIR amp 1UL lt lt 10 P2 10 Tmout if LPC_GPIO2 gt FIOPIN gt gt 10 amp 0x01 SW Release else SW Press Example of setting values of P2 10 to be Input Switch How to use Circuit Joy Switch This circuit uses 5 directional Joy Switch and its structure is Push Button with Circuit Pull Up that is compatible with 3 3V Power Supply If this Switch is not pressed it makes Logic status 1 but if the Switch is pressed it makes Logic status 0 in this case it is used to test the operation of Input Logic Moreover it can be modified for other application by connecting signal through GPIO Input as follows e Up Position uses P1 25 to be GPIO Input e Down Position uses P1 26 to be GPIO Input e Right Position uses P1 28 to be GPIO Input e Left Position uses P1 29 to be GPIO Input e Center Position uses P3 25 to be GPIO Input ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Joy Switch P1 25 P1 26 P1 28 P1 29 P3 25 Joy Switch LPC _PINCON gt PINSEL3 amp 0x03 lt lt 18 LPC _PINCON gt PINSEL3 amp 0x03 lt lt 20 LPC _PINCON gt PINSEL3 amp 0x03 lt lt 24 LPC _PINCON gt PINSEL3 amp 0x03 lt lt 26 LPC _GPIO1 gt FIODIR amp 1UL lt lt 25 LUL lt lt 26 itie 28 CUre lt 29 P1 25 2
17. P2 11 TXCLK o P2 12 TXWS o P2 13 TXSDA I2STX HEILLE m N T a R kg o o o z o ag a O 3V3 ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Circuit Power Supply Circuit Power Supply is compatible with 5VDC in this case user can choose source either from Connector or from USB Device to interface Power Supply to board as required This Power Supply is connected to Circuit 3V3 3A Regulate The Circuit Power Supply that is the part of 3 3V Regulate supplies power to CPU and all of Circuit I O of board except Backlight of LCD and Buzzer Speaker because it directly uses 5VDC from Power Supply 4K7 500mA P1 30 VBUS DH SSI4 Epa o s o 7 ed z 8 Tore EF bo z P029 USB_D ae S P030 USB_D DEVICE x E USB DEVICE E Y y ey is 2K2 DDE P1 18 USB_UP_LED 10K P29 USB_CONNECT LDI085 3V3 IN NIA N 5V ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E How to download Hex File to MCU on Board The method to download HEX File into Flash Memory of MCU on board is to use Program Flash Magic of Embedded System Academy Inc and it is connected with MCU through Serial Port of computer PC This program can be downloaded free from website www esacademy com Procedures of downloading HEX File to MCU 1 Connect Cable RS2
18. SELO 36MHz LPC_SSP1 gt CPSR IMEC SSP i SCO ETT Co Ltd PO R Rem P0 21 PENIRQ Input Select P1 20 Select P1 23 Selece Pil 24 Enable power to SSPIO PCLKSPO CCLK 4 18MHz PCLKSPO CCLK 72MHz 72MHz 72 1MHz max CPHA 0 CPOE HO Frame format SPI Data size 8 bits Enable SSPO 8 P0 9 to SSP1 For Control GLCD 1UL lt lt 21 ff i 3UL lt lt 8 Mi 3UL lt lt 14 Md 3UL lt lt 16 Mi LeeQil 5 Md 3 lt lt 10 i 1 lt lt 10 725 Ud 0 lt lt 7 0 lt lt 6 0 lt lt 4 8 1 lt lt 0 i eg ije ff 3 lt lt 24 Ml 1UL lt lt 28 fi ff 1UL lt lt 28 Hii Ue D p WL 1 lt lt 6 iif 1 lt lt 6 HE 3UL lt lt 14 ff 2UL lt lt 14 If i 3UL lt lt 16 id 2UL lt lt 16 Ni 3UL lt lt 18 Va 2UL lt lt 18 iif Gla 2 ea QO 27 1 lt lt 7 fl 1 lt lt 6 ii 0224 M Reset P4 28 Mode GPIO Pin P4 28 Output BL Turn OFF GLCD Backlight Reset P0 6 Mode GPIO PO 6 GPIO output CS Set P0 6 High Reset P0 7 Mode GPIO Select P0 7 SCK1 SSP1 Reset P0 8 Mode GPIO Select P0 8 Reset P0 9 Mode GPIO Select P0 9 Enable power to SSP1 SSP1 clock CCLK 2 Clock Rate 18MHz CPHA 1 CPO ln S Frame format SPI WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E 8 1
19. User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 ET ET NXP ARM KIT LPC1768 ET NXP ARM KIT LPC1768 is Board Microcontroller in the series of ARM Cortex M3 Core that uses 32 Bit 100Pin LQFP Microcontroller No LPC1768 from NXP Resources Systems internal LPC1768 are quite perfect and suitable for learning and testing the operations if user learns and understands all resources internal MCU well user is able to adapt and apply or develop many additional applications well Due to the Hardware System of LPC1768 includes necessary devices in one MCU such ad USB Ethernet SD Card ADC DAC Timer Counter PWM Capture I2C SPI UART and etc That is the reason why ETT studies and researches on details of LCP1768 we develop and design Board Microcontroller version ET NXP ARM KIT LPC1768 because we hope that our customers who are interested in this board will study test and develop more applications as preferred under the reasonable price Moreover the main purpose of designing Board ET NXP ARM KIT LPC1768 is to support group of customers who actually want to study test adapt or apply application by self This board s structure consists of necessary devices that are suitable for basic test and study for example LED to display Output Logic Push Button Switch and Joy Switch to test Logic Input ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E
20. ard completely It is installed through Connector moreover it is able to add or remove the device from board easily In this case it needs to set the format of Interface with board to be SPI ETT Co Ltd WWW ETT CO TH L User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E S6S668869 89273410 A lt 48 Z3d18 x hay dXN 8EZIGDZHoY Sen ma TD FO OOO Jy 209229 ahs shea a fobs ty by ao a alo By o oo ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E How to connect TFT LCD KWH032GM02 F05 TFT LCD KWHO32GM02 F05 is interfaced as SPI Mode by using SSP1 of MCU to communicate in this case it connects signals as follows e CS GLCD uses P0 6 to be GPIO Output e SCL GLCD uses P0 7 to be SCK1 of SSP1 e SDO GLCD uses P0 8 to be MISO1 of SSP1 e SDI GLCD uses P0 9 to be MOSI1 of SSP1 e BL GLCD uses P4 28 to be GPIO Output How to connect Touch Screen Sensor by ADS7846 If Touch Screen uses Chip ADS7846 it is SPI Interface and it uses SSPO of MCU to communicate It connects signals as follows e DCLK ADS7846 uses P1 20 to be SCKO of SSPO e CS ADS7846 uses P1 21 to be GPIO Output e DOUT ADS7846 uses P1 23 to be MISOO of SSPO e DIN ADS7846 uses P1 24 to be MOSIO of SSPO e PENIRQ ADS7846 uses P0 21 to be GPIO Input How to connect Touch Screen Sensor by STMPE811 If Touch Screen uses Chip STMPE8
21. frequency as shown in the example below ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Config Pin GPIO P3 26 Drive Mini Speaker Generate Beep LPC PINCON gt PINSEL7 amp 3 lt lt 20 Reset P3 26 GPIO LPC_GPIO3 gt FIODIR 1UL lt lt 26 I E326 Output Loop Generate Beep on Speaker P3 26 while 1 Loop Continue for i 0 i lt 500 i Start Beep Pulse LPC GPIO3 gt FIOPIN 1 lt lt 26 Toggle P3 26 delay 5000 delay 10000000 Stop Beep Pulse Example of setting values of P3 26 to be Output to drive the Buzzer How to use Circuit Adjustable Voltage 0 3V3 Circuit Adjustable Voltage uses VR that is compatible with 3 3V Power Supply It uses Output Voltage in the range of OV to 3 3V according to the adjustment of Resistor This Output value will be inputted to Pin P1 31 to generate Input Voltage for testing the operation of Circuit A D P1 31 im Cc ma l ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E LPC_PINCON gt PINSEL3 amp 3UL lt lt 30 Reset P1 31 GPIO LPC _PINCON gt PINSEL3 3UL lt lt 30 jf Contig P1 31 ADO 5 LPC _SC gt PCONP l lULS 12 Enable power to ADC LPC_ADC gt ADCR ie S select ADO 5 pin 1UL lt lt 8 ADC clock is 18MHz 2 1UL lt lt 21
22. his example is 115200 Set Device as LPC1768 Set Interface as None ISP Set Crystal Oscillator according to the real value that is actually is used on board with the unit of MHz in this case it uses 12 000MHZ so it is set as 12 e Press Switch ISP LOAD and Switch RESET on Board ET NXP ARM KIT to reset MCU to run in Boot Loader as described below Press and hold Switch ISP LOAD for a while Press Switch RESET and Switch ISP LOAD is still pressed Release Switch RESET but Switch ISP LOAD is still pressed Finally release Switch ISP LOAD 5 Choose the format of erasing data as Erase all Flash Code Rd Prot 6 Choose Option as Verify after programming 7 Click Browse to choose the preferred HEX File for downloading 8 Click Start it makes Program Flash Magic start downloading data into MCU instantly and user can see the operating results through Status Bar In this case user needs to wait until all operation of program is complete ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E 9 When the program run successfully press Switch RESET on board and it makes MCU start operating according to the downloaded program instantly ETT Co Ltd WWW ETT CO TH
23. lt lt 0 Data size 8 bits IMEC SSP ECRI Igel p Enable SSP1 Example of setting Pin for GLCD and Touch Screen How to use JTAG ARM JTAG or JTAG ARM is Connector IDE 20PIN to interface with JTAG Debugger It arranges circuit and Signals according to the standard of JTAG as follows VDD VDD VDD VDD VDD ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E VTref C VTarget TRST C GND TDI GND TMS GND TCK GND RTCK GND TDO GND RES GND NC GND NC GND ARM JTAG Pin Connector Port RS232 It is Signal RS232 that has already been converted by Circuit MAX3232 in this case there are 2 channels UARTO and UART2 Both channels are able to connect with Signal RS232 to send receive data Moreover UARTO can be used as ISP Download to download Hex File into MCU as well in this case it needs to use with SW ISP LOAD and SW RESET to reset CPU to start running in Boot Loader Mode to download Hex File into CPU read more details from Download Hex File to MCU of Board UARTO Download HEILI o S ABg a X xX Z K F O e UART 0 uses Pin from P0 2 TXD0 and P0 3 RXD0 e UART 2 uses Pin from PO 10 TXD2 and P0 11 RXD2 ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E Due to the Hardware UART System of LPC1768 LPC238
24. needs to set Jumper UMODE to the side of P2 9 and then write program to set function of P2 9 to control the connection between USB Device and Bus However if user does not choose Soft Connect it needs to set Jumper UMODE to the side of GND to enable the connection between USB Device and Bus all the time In this case there is LED USC to display status of Signal this LED USC is ON when the signal that controls the connection of USB Device is in the status of Active This USB Device Mode has 2 LED to display operating status of USB as follows e usc It displays operating status of signal that controls Connect Bus and it will be ON when the Connect Bus is enabled e UGL It displays operating status when the connection between USB Device and Host Bus is successful ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E USB OTG Mode USB On The Go This operation mode uses 5 Cables to connect and it uses Chip ISP1301 to be USB OTG Transceiver It needs to program function of each pin to connect with USB Bus as follows e USB D uses P0 29 for Function USB _D of USB OTG Mode e USB D uses P0 30 for Function USB D of USB OTG Mode e USB SDA uses P0 27 for Function USB_SDA of USB OTG Mode e USB SCL uses P0 28 for Function USB_SCL of USB OTG Mode e USB INT uses P0 22 for Function GPIO Input This USB OTG Mode has 2 LED to display operating status of USB as foll
25. ows e VOTG It displays operating status of VBUS of USB Vbus e UGL It displays operating status when USB Bus and external device are connected successfully USB Host Mode This operation mode uses 5 Cables to connect and it uses Chip TPS2055 or TPS2031 to controls VBUS of Host moreover it also is Host Over Current Protection It needs to program function of each pin to connect with USB Bus as follows e USB D uses P0 29 for Function USB D of USB Host Mode e USB D9 uses P0 30 for Function USB D of USB Host Mode e USB OVRCR uses P1 27 for Function USB_OVRCR of USB Host Mode e USB PPWR uses P1 19 for Function USB_PPWR of USB Host Mode e USB UP LED uses P1 18 for Function USB UP_ LED UGL LED of USB Host Mode ETT Co Ltd WWW ETT CO TH User s Manual of Board Microcontroller ET NXP ARM KIT LPC1768 E This USB Host Mode has 3 LED to display operating result of USB as follows e VHOST It displays VBUS status of USB Host Bus and it will be ON when the circuit supplies VBUS to Host Port e OVC It displays operating status when it pulls current from USB Host Port higher than the specified value When this LED is ON Output Logic o is sent to OVRCE P1 27 of MCU to notify MCU to know e UGL It displays operating status when USB Host Bus and external device are connected successfully Micro SD Card Board ET NXP ARM KIT LPC1768 supports the connection with Micro SD Card in the format of SPI
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 取扱説明書(`暴言詔書(い Téléchargé ici la brochure du plasma interactif Hitachi StarBoard PX Inter-Tech SY-126 Manuale di riparazione_Y006471_IT Voyager Legend® CS Ansicht Radio Shack MIX ME DJ 60-2785 User's Manual PORTABLE POWER - Snooper Services Copyright © All rights reserved.
Failed to retrieve file