Home
User`s Manual of Board Microcontroller CP-JR ARM7
Contents
1. ARM7 User s manual CP JR ARM7 LPC2368 TCL A AAA o Qs ETT CO LTD 1112 96 98 10110 ttp www etteam com 1112 96 98 Sukhumvit Rd Phrakanong Klongtoey Bangkok 10110 http www ett co th WWWIeHEAMIGOM Tel 02 7121120 Fax 02 3917216 email sale etteam com User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT CP JR ARM7 LPC2368 is ARM7TDMI S Core Board Microcontroller that uses 16 32 Bit 100 Pin LQFP Microcontroller No LPC2368 from Philips NXP All resources inside LPC2368 is quite perfect so it is the most suitable to learn and study because if user can learn and understand the applications of all resources inside MCU well it makes user can modify apply and develop many excellent applications in the future Because Hardware system of LPC2368 includes the necessary devices within only one MCU such as USB Ethernet SD MMC Memory Card ADC DAC Timer Counter PWM Capture I2C SPI UART and etc So ETT Team tries to find out and research the detailed information of LPC2368 and design it to be Board Microcontroller version CP JR ARM7 LPC2368 We hope that user will buy this device to learn modify and develop application in the future as desired und
2. No 25 is Jumper to select Power Supply for SD MMC Memory Card No 26 is LED to display status of Power Supply of SD MMC Memory Card No 27 is socket to insert Memory Card it can be used with both SD Memory Card and MMC Memory Card No 28 and No 29 is Jumper to select operation of RS422 485 No 30 is IC Line Driver of RS422 Receive it can be used with 75176 or MAX3088 NO 31 is IC Line Driver of RS422 Transmit and RS485 Transceiver it can be used with No 75176 or MAX3088 No 32 and No 33 is Jumper to set Enable Disable Fail Save Resistor and Terminate Resistor of RS422 Receive RS455 Transmit RS485 Transceiver ETT CO LTD 6 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT No 34 is RS422 485 Connector No 35 is LED to display status of Ethernet LAN No 36 is RJ45 Ethernet LAN Connector No 37 is IC Physical Ethernet Driver No DP83848 Connector 38 is GPIO P2 0 7 Connector for Full Duplex UART1 or GPIO No 39 is SPIO Bus Connector or GPIO PO 15 18 No 40 is I2C Bus Connector or GPIO PO 27 28 No 41 is A D Connector or GPIO PO 24 25 No 42 is D A Connector or GPIO P0 26 Applications of LED Display LED Display circuit of Board will be connected as Sink Current type and it is used with 3 3V Power Supply In this case it runs with Logic 0 0V and stops running with Logic 1 PES SV rs It is controlled by 2 GPIOs that are
3. 3 Pin Header 4 Pin Header 4 Pin Header 25 28 for GPIO or I2C Bus 18 for GPIO or SPI Bus P P P 6 Pin Header P ETT CO LTD 3 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Structure of Board CP JR ARM7 LPC2368 TO CAMA ae of SEPRE opge posse CP JR ARM LPC2358 MUTTWHS CORE PORT mag 0 pn E mm 3 TE R 4 UART 2 DOWNLOAD D3 mz RS422 485 e no ART O KEYax4 136 R28 DO w V eL ci2 i20 4 P0 4 PO7 P1 20 P1 23 y ET CLCD 5V RTC BACKUP CP JR ARM7 lo 25 LPC2 ARM7TDMI CORE P20 P27 t Or m mr R51 Ces ssp 1 E Li D3 9349 NYJLLYd ON R59 E ey s n a o a C 2008 P LOAD ww etteam com Figure displays the structure of Board CP JR ARM7 LPC2368 ETT CO LTD 4 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT mm POART ul a ne RT 0 S dE Po im a oe CP JR ARM7 6 de P204 mui HSC P27 v 18 e Lr eet L eile m Bas R3 cis FOR EE R59 ES r3 6 r3 4 E 23 A EE we 2008 etteam com 311 ON Figure displays position of devices on
4. P2 8 0 OFF Speaker delay 5000 delay 10000000 Stop Beep Pulse ETT CO LTD 10 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Application of Character LCD The LCD Connection can be used with Character Dot Matrix LCD only It connects circuit as 4 BIT Data and signals that are connected with LCD will be signal from P1 24 29 and P1 31 about 7 Bit The method to connect signal cable from Connector of Port LCD to LCD Display is to use the signal name to be the reference so we must connect all 14 signal cables according to its names as below The method to connect signal cable with LCD is shown as below e DB4 P1 24 e DB5 P1 25 e DB6 P1 26 e DB7 P1 28 e RS P1 28 e RW P1 29 EN P1 31 VCC GND RS 0 EN RW D1 DO D3 D2 D5 D4 LI B E D7 D6 ET CLCD ETT CO LTD 11 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Application of JTAG ARM JTAG or JTAG ARM is 20 Pin IDE Connector to interface with JTAG Debugger Its circuit and signal is arranged under the standard of JTAG as shown below 3V3 Ik a AG VTref L VTarget m l A TRST C C GND TE TDI E GND RICK TMS GND T NS tek L ono z n E b Bik RTCK C GND 2 T
5. Start I Verify after programming Set Code Read Prot Start Fill unused Flash Gen block checksums v Execute On Line training classes for microcontrollers and embedded networking and wwWw esacademy com fag classes 4 Start setting the initial values into program as desired in this case it is used with LPC2368 of Board CP JR ARM7 LPC2368 of ETT so we configure values into program as follows 2 1 Select COM port corresponding with the COM Port Number that is used in the example it is COM2 2 a Set Baud Rate in the range 2400 115200 if setting very high Baud Rate and Error is occurred please reduce Baud Rate In this example it uses Baud Rate 19200 Set Device to be LPC2368 Set Interface to be None ISP 2 5 Set Crystal Oscillator with MHz corresponding with the value internal NN B wW ETT CO LTD 24 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Board In this case it is 12 000MHz So we must set to be 12 2 6 Press ISP LOAD Switch and RESET Switch on Board CP JR ARM7 LPC2368 to reset MCU to run in Boot Loader following the processes Press ISP LOAD Switch and hold Press RESET Switch while ISP LOAD Switch is being held Remove RESET Switch but ISP LOAD Switch is being held Lastly remove ISP LOAD Switch 5 Select format of erasing data to be Erase all Flash Code Rd Prot 6 Set Option to be Verify after
6. Board CP JR ARM7 LPC2368 No 1 is MCU No LPC2368 100Pin LQFP No 2 is 12MHz Crystal to be Time Base of MCU No 3 is 32 768 KHz Crystal to be Time Base of RTC internal MCU No 4 is 3V Battery for Backup of RTC No 5 is JTAG ARM Connector for Real Time Debugging No 6 is GPIO PO 4 7 P1 20 23 Connector for Keyboard Matrix 4x4 or GPIO No 7 is UART 0 RS232 Connector to use and Download Hex File into CPU No 8 is UART 2 RS232 Connector to use No 9 is Character LCD Connector it can be used with 45V Supply LCD No 10 is VR to adjust the contrast or brightness of Character LCD ETT CO LTD 5 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT No 11 is USB Connector to connect with USB Hub version 2 0 No 12 is LED to display status of operation and the USB connection No 13 is Jumper to select Mode of USB Connection e No 14 and No 15 is Power Supply Connector of board it can be used with 7 12V AC DC e No 16 is LED to display status of Power VDD 3V3 No 17 is SW1 that is ISP LOAD or P2 10 EINTO No 18 is SW2 or RESET Switch No 19 and No 20 is SW3 and SW4 to test Logic Input of P4 28 and P4 29 No 21 and No 22 is LED to test Logic Output of P3 25 and P3 26 No 23 is VR to adjust 0 3V3 Voltage for testing A D P0O 23 ADO 0 No 24 is Mini Speaker to generate various frequencies
7. below ETT CO LTD 15 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT 2 TXD 15 3 RXD 16 4 RIS 17 5 CIS 18 1 6 DSR RXD 2 aD 3 7 GND GND 8 ET RS232 21 9 22 10 23 11 24 12 25 13 DBS FEMALE RY32 PC Figure displays the Cable circuit for RS232 ETT CO LTD 16 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Application of RS422 485 For RS422 485 Communication Circuit of Board CP JR ARM7 LPC2368 uses UART 3 and then use signal Pin PO O and PO 1 to be the connecting point We can use this circuit to configure operation of Line Driver Circuit to be either RS422 Full Duplex or RS485 Half Duplex If it is RS422 it can transmit and receive data simultaneously as bidirectional as RS232 but this function is longer distance On the other hand if it is RS485 we can configure its format of communication to be either Half Duplex or Full Duplex in this case if it is RS485 Full Duplex it is similar to RS422 but we must control ON OFF circuit of the transmitter on the other hand i f S t f it is RS485 Half Duplex it will alternate unction between receiver and transmitter by using ignal P1 19 to be Output Port function for setting he direction of data If status of P1 19 is Logic 1 it configures the direction of data to be transmitter but if Status of P1 19 is Logic 0 it configures t
8. on 422 side If using RS485 Full Duplex we must install 2 IC Line Driver as same as RS422 but in this case we must set Jumper J19 and J20 to be RS485 Full Duplex as follows set Jumper J19 FULL HALF on FULL side and then set Jumper J20 422 485 on 485 side The ETT CO LTD 19 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Operation is similar to RS422 because it can simultaneously transmit and receive data as bidirectional type like RS422 but it can be connected as Multi Drop type The circuit can receive data all the time through IC Line Driver of U6 and IC Line Driver U7 will transmit data In this case it can control ON OFF operation of transmitting data by signal from PILIS if status of P1 19 is Logic 1 it enables operation of transmitting data but if status of P1 19 is Logic 0 it disables operation f transmitting data When the operation of transmitting data is disabled its status is similar to removing cable of the transmitter from circuit so signal on the transmitter does not crash data of other devices We must write program to control all devices to transmit only one data into a line once If using RS485 Half Duplex we must install only one IC Line Driver at position U7 in this case we must set Jumper J19 and J20 to be RS485 Half Duplex as follows set Jumper J19 FULL HALF on HALF side and then set Jumper J20 422 485 on 485 side Moreover we must int
9. to enable operation of UART 3 is to be controlled by Bit in Register PCONP as example below Config UART 3 RS422 485 Connect to PO 0 PO I PINSELO amp OxFFFFFFFO Jf Reset 0 0 20 1 Pim Contig PINSELO 0x00000002 Selecc POO D PINSELO 0x00000008 7 5 6 190 RE DUART PCONP 0x02000000 UART3 Power ON Comerol Direction BREASS f f Vi e m9495 PINSEL3 amp OxFFFF3FFF ff el Gero IODIR1 0x00080000 Pin Control Direction RS485 Output Select Direction RS485 Receive IOCLR1 0x00080000 P 8 0 Receive f Select Direccion RS465 Trameimic IOSET1 0x00080000 RS485 Direction 1 Transmit Port I O Connectors of Board For Port I O Connector of CPU is arranged outwards so it makes user be able to connect as desired in this case there are 6 sets as follows e 2 Sets of IDE 10 Pin Connector each set has 8 Bit that is P2TQ 7 and KEYAXA PO 4 7 P1 20 23 Its signal arrangement is shown below ETT CO LTD 21 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT P2 0 P2 1 P0 4 P0 5 P2 2 L P2 3 P0 6 P0 7 P2 4 P2 5 P1 20 C P1 21 P2 6 P2 7 P1 22 P1 23 3V3 GND 3V3 GND O L O P2 0 7 PO 4 7 P1 20 23 e SPI 0 Connector is 1x6 Header t
10. 2 3 TE ICL3232 Title CP JR ARM7 LPC2368 Size Number Revision INA ETT CO LTD WWW ETT CO TH 1 0 Date 31 Jan 2008 Sheet 4 of 4 File D My Circuit LPC2368 Ddb Drawn By il 3 4
11. 232 6 Has circuit to connect with standard 20 Pin JTAG ARM for Real Time Debugging 7 71 12 VAC DC Power Supply uses Connector type as Terminal and DC Jack with Bridge Rectifier Circuit 5V 800mA Regulate and 3V3 3A Regulate 8 Has standard 2 0 USB as Full Speed inside USB Function has 32 End Point 9 Has circuit to connect with Ethernet LAN 10 100Mb by using 1 Channel standard RJ45 Connector 10 Has 1 Channel Circuit to connect with SD Memory Card or MMC Memory Card 11 Has RS232 Communication Circuit by using 2 Channel 4 PIN ETT standard Connector 12 Has RS422 485 Serial Communication Circuit by using 1 Channel 6 PIN ETT standard Connector ETT CO LTD 2 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT 13 Has Circuit to connect with Dot Matrix LCD with circuit to adjust its contrast by using 14 PIN ETT standard Connector 14 3 sets of Push Button Switch with RESET Switch 15 Has 2 LED Circuits to display status of testing Output 16 Has circuit to generate 0 3V3 Voltage by using an adjustable Resistor Circuit for testing A D 17 1 Mini Speaker to generate Beep sound 18 Available 25 Bit GPIO for various applications such as A D D A I2C SPI and Input Output Header 10Pin IDE P2 0 7 for GPIO or Full Duplex Serial UART Header 10Pin IDE PO 4 7 P1 20 23 for GPIO or 4x4 Matrix Key O 26 for GPIO or D A 0 24 25 for GPIO or A D 0 27 O 15
12. DO L L GND x RES C GND R8 lt R9 RIK RII Me E GND 0 0 06 106 C GND ARM JTAG Pin Connector If connecting with JTAG to Download Code of Debug we must set Jumper J2 RUN DEB on DEB side however after we have already developed program we must always set Jumper J2 RUN DEB on RUN side again Ethernet LAN The method to connect signal between network and Board CP JR ARM7 LPC2368 is to use standard RJ45 Ethernet Connector This circuit uses signal Pin P1 0 1 4 8 9 10 14 17 for the connection moreover it uses Chips Physical Ethernet No DP83848 to be Driver ETT CO LTD 12 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT There are 2 methods to connect Ethernet LAN cable of board with Network Direct Line and Through Hub e The first case it connects with computer directly LAN cable must be connected as Cross type 1OBaseT 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 B 1 8 nic 8 8 nic The second case it connects signal through Hub of computer Sever and its cables must be 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 SD MMC Memory Card It supports the connection with SD Memory Card and MMC Memory Card in this part
13. H User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT UART 0 uses signal pin from P0 2 TXD0 and PO 3 RXDO UART 2 uses signal pin from PO 10 TXD2 and PO 11 RXD2 Because Hardware UART of LPC2368 can configure many points of signal Pin to connect for example UART 2 can use signal Pin PO 10 and PO 11 or signal Pin P2 8 and P2 9 Board CP JR ARM7 LPC2368 selects signal Pin PO 10 and PO 11 to be the connecting point with UART 2 so we must set command to use Signal Pin correctly Be careful if we use UART because the Default value of UART 2 is disabled so we must enable operation of UART 2 Circuit before command to Initial values for UART otherwise we can not command UART The example Code to configure initial values for UART is shown below Conitie co 1921 gx L3 PINSELO amp OxFFFFFFOF f Reser PO P0 3 Wain Comis PINSELO 0x00000010 1 6 2 3b PINSELO 0x00000040 Select P0 3 RxD UART 0 Config UART 2 Connect to P0O 10 PO 11 PINSELO amp OxFFOFFFFF fj Resse Bm TOn PINSELO 0x00100000 Select PO 10 TxD UART 2 PINSELO 0x00400000 Select P0 11 RxD UART 2 PCONP 0x01000000 UART2 Power ON The cable that is used to connect RS232 between Comport of computer PC and UART 0 Connector and UART 2 Connector of Board CP JR ARM7 LPC2368 is shown
14. P3 25 and P3 26 This circuit is used to test operation of Output If we want to use this function we must set function of P3 25 and P3 26 to be Output Port first and then control the desired Logic for P3 25 and P3 26 as example below ETT CO LTD 7 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Config Pin GPIO P3 26 25 Drive LED PINSEL7 amp OxFFCS3FFFF Config P3 26 25 GPIO Function PINMODE7 amp OxFFCS3FFFF Enable Pull Up on P3 26 25 FIO3DIR 0x02000000 Ji See PS 25 8 FIO3DIR 0x04000000 fi Sec P3 26 Output FIO3CLR 0x02000000 f TED P3 25 ON FIO3CLR 0x04000000 fi ON LOSS ia 0 0x02000000 GED P3 25 OFF Ig LOSS Eg 0x04000000 LED P3 26 OFF Application of Push Button Switch This circuit uses Push Button Switch Circuit with Pull Up circuit in this case it can be used with 3 3V Power Supply If Switch is not pressed its status is Logic 1 on the other hand if Switch is pressed its status is Logic 0 It is used to test operation of Input Logic moreover this circuit has 3 sets as follows e SW1 P2 10 for ISP Download and test Input or Interrupt EINTO e SW3 P4 28 to test Logic Input e SW4 P4 29 to test Logic Input ETT CO LTD 8 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Applicati
15. XD 3 PHYADA IOGND IOVDD33 IOVDD33 MDC MDIO RESET N CRS CRS DV LED CFG TXD 3 SNI MODE PWR DOWN INT LED LINK ANO LED SPEED ANI LED ACT COL AN EN 25MHZ OUT LED ACT 10 v ACT Title CP JR ARM7 LPC2368 Size Number Revision A4 ETT CO LTD WWW ETT CO TH 1 0 Date 31 Jan 2008 Sheet 2 of 4 File D My Circuit LPC2368 Ddb Drawn By 4 R28 R34 NA R66 R67 NA R67 0 SD VDD P2 10K Contrast CD DAT3 CMD VSS VDD CLK VSS DATO 10u 100n MCIDATI DATI U3 LD1085 c29 U4 AP1117 5 0 45V IN our is C33 31 C34 220uF 25V 100uF 16V 100n Title CP JR ARM7 LPC2368 Size Number Revision m ETT CO LTD WWW ETT CO TH 10 Date 31 Jan 2008 Sheet 3 of 4 File D My Circuit LPC2368 Ddb Drawn By 1 5 SP1 SPEAKER 0m 422 485 ov a Ej FULL HALF 19 5V J16 T nu J18 5V RS422 485 DURUN 1 5V
16. er the reasonable price The main purpose of designing this Board CP JR ARM7 LPC2368 is to be able to support both users who want to learn study or try device and including person who want to really modify and develop devices The structure of board consists of the basic components that are necessary to learn and test such as LED to display Output Logic Push Button Switch to test Logic Input Volume ETT CO LTD 1 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT to adjust voltage to test A D and Mini Speaker to generate various Beep sound Moreover it provides other devices in the high level to support the applications such as Port USB SD MMC Memory Card Port Ethernet LAN Dot Matrix LCD RS232 RS232 RS422 485 Furthermore there is available GPIO it makes user can design and use it with other devices as desired So CP JR ARM7 LPC2368 is one of the most interesting multi purpose boards Specifications of Board L Use 16 32 Bit ARM7TDMI S MCU No LPC2368 from Philips NXP 2 Has 512KB Flash Memory and 58KB Static RAM internal MCU 3 Use 12 00MHz Crystal so MCU can process data with the maximum high speed at 72MHz when using it with Phase Locked Loop PLL internal MCU 4 Has RTC Circuit Real Time Clock with 32 768KHz XTAL and Battery Backup 5 Support In System Programming ISP and Application Programming IAP through On Chip Boot Loader Software via Port UART 0 RS
17. erface cable of CPA 6 J18 Connector at the position TX and TX in this case function of TX is RS485 and function of TX is RS485 Direction and function of this signal RS485 depends on status Logic of P1 19 that is Pan Output Port and its function is Direction Control The method to set Jumper of Fail Save Resistor and Terminate Resistor is describes as follows if Board is generally installed in the beginning position and destination of these Jumper Cables we must enable and then set Jumper EN DIS of RZ RL RH TZ TL and TH on EN side or always Enable The Fail Safe Resistor RL RH TL and TH makes status Logic in the signal cable is in the correct IDLE Status while not receiving and transmitting any data For the Terminate Resistor RZ and TZ will compensate the resistance or Impedance that is occurred in the line if it is very long line Code for writing program to configure operation of UART 3 of RS422 485 we must use PO 0 and PO 1 ETT CO ETD 20 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT to be the connecting Pin and then use P1 19 to control the direction of receiving and transmitting data of RS485 Be careful the Default value of the UART 3 Circuit in LPC2368 is normally disabled so if we want to enable operation of this circuit we must not forget to write command to enable operation of UART 3 before setting configurations into circuit The method
18. hat is connecting point PO 15 18 for using it to be general GPIO function or SPL Bus function as desired o P0 15 SCK SCKO o P0 16 SSEL SSELO o P0 17 MISO MISOO o P0 18 MOSI MOSIO e I2C 0 Connector is 1x4 Header that is connecting point PO 27 28 for using it to be general GPIO function or I2C Bus function as desired o P0 27 SDAO o P0 28 SCLO A D Connector is 1x4 Header that is connecting point PO 24 25 for using it to be general GPIO function or A D function as desired o P0 24 ADO 1 o P0 25 ADO 2 D A Connector is 1x3 Header that is connecting point PO 26 for using it to be general GPIO function or D A Aout function as desired o P0 26 AOUT or D A Power Supply Circuit Power Supply Circuit can be used with 7 12V AC DC in this case we can interface Power Supply into board at the connecting point that is Terminal or Jack DC as desired This connecting Power Supply ETT CO LTD 22 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT will be sent to Bridge Rectifier Circuit and 3V3 3V Regulate and 5V 800mA Regulate Power Supply Circuit in the part of 3 3V Regulate Circuit will supply power into CPU and all I O Circuit of Board except Character LCD and Line Driver Circuit of RS422 485 because both devices use 5VDC Power Supply from Regulate Circuit U3 LDIO85 How to Download Hex File into MCU of Board The
19. he direction of data to be receiver The IC Line Driver of circuit can select either No 75176 or MAX3088 if using 75176 the maximum point that can be connected signal of RS485 as Multi Drop type is 32 points but if using MAX3088 the maximum point that can be connected as Multi Drop type is 256 points The connector of RS422 485 is CPA 6 Connector that has arranged as shown below RS422 485 em 1 Eo uam Vk gt Z c o ek GND Figure displays position of signal Pin when using it to be RS422 ETT CO LTD 17 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT RS422 485 gt A x zZ c EF D o X Figure displays position of signal Pin when using it to be RS485 Full Duplex RS422 485 a z 5V C C 485 485 oz Figure displays position of signal Pin when using it to be RS485 Half Duplex WWW ETT CO TH ETT CO LTD 18 User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT 5V 3 2 1 n RH ns Ne RL i 422 485 v BEEN LJ 45V Figure displays circuit of RS422 485 If we want to use it to be RS422 we must install 2 IC Line Driver Circuits and set Jumper J19 and J20 to be RS422 Full Duplex as follow set Jumper J19 FULL HALF on FULL side and then set Jumper J20 422 485
20. method to download Hex File into Flash Memory of MCU in Board is to use Program Flash Magic of Embedded System Academy Inc that is connected with MCU through Serial Port of computer PC This program can be downloaded free without any charge from website www esacademy com Proceeding to Download Hex File into MCU 1 Interface RS232 Cable between RS232 Serial Port of PC and Board UART 0 2 Supply power into board in this case we can see red LED PWR is in status ON 3 Run Program Flash Magic if it is version 4 02 260 it will display result as shown below ETT CO LTD 23 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT 5 4 Flash Magic NON PRODUCTION USE ONLY File ISP Options Tools Help gt Step 1 Communications 2 COM Port coM 2 Erase block 0 0x000000 0x000FFF Erase block 1 0 001000 O 001FFF Baud Rate 18200 Erase block 2 0 002000 0x002FFF n Erase block 3 0x003000 0 003FFF Device LPC2368 v Erase block 4 0x004000 0x004FFF Interface None ISP Erase block 5 Q 005000 0 005FFF I Erase all Flash Code Rd Prot Oscillator Freq MHz 12 Erase blocks used by Hex File Step 3 Hex File Hex File C KeiARM E akachai ARMSLPC2368 PERIPHERAL_DEMOALE Modified w 29 2550 8 55 20 more info Step 4 0 ptions Step 5
21. ons of Voltage Divider 0 3V3 The Voltage Divider Circuit uses Adjustable Variable Resistor VR and it can be used with 3 3V Power Supply In this case its Output is voltage in the rage of OV to 3 3V depend on the adjusting VR The Output will be inputted into Pin P0 23 to generate Input voltage for testing operation of A D PO 23 circuit Application of Sound Generator Sound Generator Circuit uses Mini Speaker with NPN Transistor circuit to drive current into speaker and can be used with 3 3V Power Supply In this case it runs with Logic 1 and stop running with Logic 0 If we want to use this function we must send signal Logic that is various frequencies into Speaker to generate various frequency ranges as desired in this case it is controlled by P2 8 ETT CO LTD 9 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT If we want to use this function we must configure function of P2 8 to be Output Port first and then control Logic for P2 8 ON OFF to be the desired frequencies as example below Config Pin GPIO P2 8 Drive Mini Speaker Generate Beep PINSEL4 amp OxFFFCFFFF Config P2 8 GPIO Function FIO2DIR 0x00000100 Config P2 8 Output Loop Generate Beep on Speaker P2 8 while 1 Loop Continue toe 3 Of x lt 5007 1i Start Beep Pulse FIO2SET 0x00000100 P2 8 1 ON Speaker delay 5000 FIO2CLR 0x00000100
22. programming ix Clack Browse to select HEX File for downloading 8 Click Start Program Flash Magic will start downloading data into MCU instantly In this case we can see the status operation at Status Bar and we must wait for the operation until it is completely 9 When the operation of program is complete press RESET Switch on Board and MCU will start running follow the downloaded program instantly ETT CO LTD 25 WWW ETT CO TH 1 LPC2368 Lo ro TNs os xo oo a oo b 56 34 35 36 37 38 7 27 82 10 12 13 22 3V3 RI 22K 1 ISP BOOT 5 ISP LOAD CIS 100n C3 n 100n j 28 3V3 ISP_BOOT E R2 47K SW2 RESET o 1 3V3 J8 RESET DI 3 P0 26 3V3 CNG 100n gt D2 DA PMEG400SET Y2 BI 7 3V 32 768 014 22pF 22pF Title CP JR ARM7 LPC2368 B Ci 12MHz c12 Size Number Revision 22pF 22pF 2 ETT CO LTD WWW ETT CO TH 10 Date 31 Jan 2008 Sheet 1 of 4 gt File D My Circuit LPC2368 Ddb Drawn By 2 3 4 3V3 PFBOUT C18 100n 262 R16 28 LED LINK 27 LED SPEED 26 LED ACT R15 4K87 1 DP83848 PFBIN2 RX_CLK RX DV MII MODE RX ER MDIX EN COL PHYADO RXD 0 PHYADI RXD l PHYAD2 RXD 2 PHYAD3 R
23. there is LED SD to display status of Power Supply for the Memory Card ETT CO LTD 13 WWW ETT CO TH User s Manual of Board Microcontroller CP JR ARM7 LPC2368 EIT Power Supply of Memory Card can be selected by Jumper J26 SD VDD so we can select to use Power Supply either from VDD of Board or from the control of signal Pin MCIPWR Normally we set Jumper J26 SD VDD on SD side to use Power Supply of Memory Card from the control of MCIPWR All circuits to connect with Memory Card uses signal pins from MCU as follows e MCIDATO uses P0 22 e MCIDAT1 uses P2 11 e MCIDAT2 uses P2 12 e MCIDAT3 uses P2 13 e MCICMD uses P0 20 e MCICLK uses P0 19 e MCIPWR uses PO 21 CD uses P0 8 GPIO to test Insert Memory Card WP uses P0 9 GPIO to test the setting of Write Protect of Memory Card Application of RS232 Port RS232 is signal RS232 that has been done by MAX3232 Converter circuit completely There are 2 channels that are UART 0 and UART 2 Both channels can be connected with Signal RS232 to transmit receive data Moreover UART 0 can be used to be ISP Download function to Download Hex File into MCU in this case it must be used with SW1 ISP LOAD and SW2 RESET to reset CPU to start running in Boot Loader Mode to Download Hex File into CPU see more information in Download Hex File into MCU of Board UART 0 Download 2889 o X x e O ETT CO LTD 14 WWW ETT CO T
Download Pdf Manuals
Related Search
Related Contents
Scarica Allegato - Comune di Molfetta Philips HD7447/00 coffee maker 普通騒音計 NL21 メーカー取説 - 測定器レンタル 株式会社メジャー préparation permettant la reconstitution du potentiel Antisol Blanco Pigmentado Lemon T149 User Manual Sierra de ángulo compuesto de 12 pulgadas Con Copyright © All rights reserved.
Failed to retrieve file