Home
        Jawaharlal Nehru Engineering College
         Contents
1.                              J UARTO  JI   1652 LCD   EDU ARM7 2148  PC ee  Serial Cable    Programm   Program is given along with the compiler software   Source Code      include  lt Philips LPC2148 h gt    include  lod h   void main        Ledinit     DisplayRow  1   JNEC      DisplayRow  2   Aurangabad      while 1   9       Function  LCD   include  lt Philips LPC2148 h gt    include  lod h   void SmallDelay  void      int i   for i 0 i lt 100 i        void LedCmd1  unsigned char cmd      if  cmd 8 0x01   IOOSET    1 lt  lt 15    else  IOOCLR    1 lt  lt 15      if  cmd 8 0x02    IOOSET    15517    else   IOOCLR    12317    if  cmd  amp  0x04    IOOSET    1 lt  lt 22    else   IOOCLR    1 lt  lt 22    if  cmd  amp  0x08    IOOSET    1 lt  lt 30    else   IOOCLR    1 lt  lt 30    IO1CLR   0x03000000    SmallDelay      IO1SET   0x01000000    SmallDelay      IO1CLR   0x01000000    SmallDelay           void LedDat1  unsigned char dat     if  dat  amp  0x01    IOOSET    1 lt  lt 15    else   IOOCLR    1 lt  lt 15    if  dat  amp  0x02    IOOSET    1 lt  lt 17    else   IOOCLR    1 lt  lt 17    if  dat  amp  0x04    IOOSET    1 lt  lt 22    else   IOOCLR    1 lt  lt 22    if  dat  amp  0x08    IOOSET    1 lt  lt 30    else   IOOCLR    1 lt  lt 30    IO1SET   0x02000000    SmallDelay      IO1CLR   0x01000000    SmallDelay      IO1SET   0x01000000    SmallDelay      IO1CLR   0x01000000    SmallDelay           void Delay250  void        int kj     II make rs and en low    enable en
2.       Output  You can see stepper motor moving in particular direction and corresponding phase    changes you can observed LED s D9 D12     25    Experiment No 8    Aim   Write a program to interface buzzer with LPC2148     Apparatus    EDU ARM 2148 with buzzer Trainer kit SCRAM PC    Theory    Write theory related to relay interfacing     Block Diagram                 PC We    l                   Serial Cable    Programme       include  lt Philips LPC2148 h gt    include  uartO h    include  TYPE h     unsigned int i    void main         PINSELO   0x00000000    PINSEL1   0x00000000    IOODIR    0x023C3C00    UARTO_Init     while 1      printf  Press any key n      getchar          JL                 buzzer        EDU ARM7 2148          26    for i 0 i lt 30000 i     delay   9   IOOSET   0x023C3C00    making these pin as 1  for i 0 i lt 30000 i      9     Iprintf  press any key n       getchar      IOOCLR 0x023C3C00   clearing the pins as 0  for i 0 i lt 30000 i      0    1     Output  Thus we got output as buzzer sound     27    4  Quiz on the subject  1  Write short notes on     a  Priority Scheduling  b  Multitasking  c  Seamthort    5  Conduction of Viva Voce Examination        Teacher should conduct oral exams of student with full preparation  Normally the  objective questions with guesses are to be avoided  To make it meaningful  the  questions should be such that depth of the students in the subject is tested  Oral  examinations are to be conducted in cordial environme
3.     II disable en       make RS high    disable en    enable en    II disable en    20    j  200    for k   0  k  lt  100  k                 void DelayMs  int n        ee    int k    fork  0 k lt n k        Delay250      Delay250           void LedCmd  unsigned char cmd      LedCmd1 cmd  gt  gt  4     LedCmd1  cmd     Delay250      Delay250           void LedDat  unsigned char dat      LedDat1  dat  gt  gt  4     LedDatt  dat     Delay250      Delay250            void Ledinit  void       IO1DIR   0x03000000    IO1CLR   0x03000000    IOODIR   0x40428000    IOOCLR   0x40428000      DelayMs 6     LedCmd1 0x03     DelayMs 6     LedCmd1 0x03     Delay250      LedCmd1 0x03     Delay250      LedCmd1 0x02     Delay250      LedCmd 0x28     LedCmd 0x08     LedCmd 0x0c     LedCmd 0x06       21    void DisplayRov  int rovv  char  str     P  pass pointer to 16 character string  displayes the message on line1 or line2 of LCD  depending on whether row is 1 or 2       int k    if  row    1    LedCmd 0x80     else  LedCmd 0xc0     for k   0 k  lt  16  k      if  str k    LedDat str k      else  break       while k  lt  16      LedDat       k             Output  You can see the message Hello World on LCD  If required reset the board     22    Experiment No  6    Aim   Write a program to Blink LED    s present on EDU ARM 2148     Apparatus    EDU ARM 2148 Trainer kit SCRAM PC    Theory    Write theory related to LED interfacing using ARM     Block Diagram               Ji   8 General Purpose  L
4.    in 26 d 384 Matrix  ment Bebmeanze  SM  mao     107  Test Point k  frDaS Connector BO baced Seven    segments    Below figure shows the locations of different switches and jumpers on the EDU   ARM7 2148 board     switch to Tum S1 switch to Comeet USB  Device to LPC2148       JPL  Connect  Tumper ta Enable  Graphics LCD       ni Pr Connect  Enable LEDs  S5  switch  to connect  POT and  Lm35 to  ADCO 1 and  ADcoz of  Leens  56  switch to  7  Switeh to S4  Switch to  Connect Buzzer  Connect SPL Come PC  DACITPTand EEPROM to Peripherals lo  ENTO to zere LPC2148  Lec2148  B  Switches Details   S1   Turn ON this switch to connect USB device connector to USB lines of LPC2148    2   Turn ON this switch to connect UART1 connector to UART1 lines  TxD1 P0 8 and  RxD1 P0 9  of LPC2148    3     Mode selection switch  The LPC21xx micro controllers include on chip flash for  storing user program and non volatile data  The LPC2148 have 512RBytes flash  This flash  is In System Programmable  ISP   The LPC21xx micro controllers have a built in boot load  program  Upon power on  this bootload program takes control  it passes control to the user  program if pin P0 14 is HIGH and some other conditions are satisfied  Please refer to the  LPC21xx data sheet for further details  On the EDU ARM7 2148 board  the P0 14 pin is  made available on this S3 switch  Turn ON this switch to control the Mode  ISP mode or  Run mode  by Flash Magic    S4    Turn ON this switch to connect Seven Segments  RTC  D
5.  2148 board to COM1 or COM2 of a PC   using the serial communication cable  supplied with the board     b  Keep S3 switch in ON position   You can keep S3 switch continuously ON  Switch ON   power to the EDU ARM7 2148    c  Do proper settings in Flash Magic  COM Port  COM1  if other choose it   Baud Rate    38400  Device  LPC2148  Interface  None  ISP   Enable    Erase blocks used by Hex File       Browse the file which you want to download  and click on Start button    d  Flash Magic will download the program  Wait till Finished comes    e  After downloading Flash Magic automatically resets the EDU ARM7 2148 board and   program executes  You can see output according to the program    f  If again you want to Reset the board then Switch OFF and ON the power to the EDU    ARM7  2148 board  You can see output according to the program    Note  Flash Magic can be used to download the program into other Philips Microcontrollers   also  See the list in Flash Magic itself     Study experiment 3    Aim   Study of JTAG Debugger   Apparatus t  EDU ARM 2148 Trainer kit   Theory i  A  JTAG Cable for Debugging   1  Type    SJT S  Serial JTAG Cable   2  Contents     The    JTAG Cable    consists of following parts      Dongle  a small box with connectors on both ends       Cable   The    dongle    consists of some electronic circuit for interfacing the JTAG port of target  processor to the host computer  The cable is a bunch of wires to connect the dongle with  the JTAG port of target    3 
6.  7  The PROG1 C file created by the IDE will be an empty file containing only the frame of     main    function  You may write the desired program statements in this file  or other files that  you may have added to the project   When done  select Save from File menu  If you have  modified more than one source files  then select Save All from File menu     8  From the Compile menu  select Build  This will invoke the Compiler to compile the file  PROG1 C  and further  assuming no errors  invoke the linker to create the  HEX file  If there  are any errors or warnings during the process of compiling  assembling or linking  then  those will be displayed in the output window  below the editor window   If there are errors   then you may correct those by making appropriate changes to the program  select Save  13    from File menu to save the changes and then again select Build from Compile menu   Repeat this until there are no errors     9  You may inspect contents of the folder where your project files reside  When there are no  errors and build has completed successfully and then you will see a filename with same  name as the project name and extension  HEX  in above example  PROG1 HEX   This is  the file that you will need to use to program your micro controller     C  Downloading  amp  Running Programs    The LPC2148 micro controllers include on chip flash for storing user program and non   volatile data  LPC2148 on EDU ARM7 2148 have 512KBytes flash  This flash is In System   Pr
7.  Power Supply Requirements    The JTAG cable draws power from the target board  Thus it does not require a  separate power source    4  Connecting JTAG Cable   SJT S    There is a DB9 female connector on one end of the dongle  This directly mates with  the PC COM port  which has a DB9 male connector  or you can connect yellow color serial  cable supplied with SJT S between DB9 female connector on one end of the dongle and PC  COM port    vvhich has a DB9 male connector   The other end of the dongle has DB25  female connector  There is a DB25 male connector on one end of the cable  These DB25  female and DB25 male connectors are designed to mate with each other directly  The other  end of the cable has a 20 pin header  This should be connected to the JTAG connector of  the target board     CAUTION    The JTAG Cable must not be connected or dis connected when power is applied to the  target board  Turn off power to the target board  connect the JTAG Cable and then you may  turn on power to the target board  Connecting the JTAG Cable with incorrect polarity    orientation may permanently damage the EDUARMT  2148 board and or the JTAG Cable  It  will also make the warranty void for both the products     B  Verifying correct cable connection    When the JTAG Cable is correctly connected to PC as well as the target board  it  serves as a link between the JTAG port of target processor and the PC  This link is used by  SPJ   SCARM software Tools  e g  Debugger for ARM microcontroller
8.  etc  In the  File name  field  type the name of the project  vvithout  any extension  For example  you may type  PROG1   Then click on the  Open  button     4  The action in the previous step will display the    Project Settings    dialog window  This  dialog window has 3 different parts named    Compiler Options        Linker Options     and     Source Files     Any of these 3 parts can be displayed by clicking on the corresponding  name near the top of this dialog window  Currently  the    Compiler Options    will be  automatically displayed  If the target micro controller  must be a member of ARM family  is  known  you may select the appropriate Manufacturer from the list  and then select the  appropriate micro controller from the device list  If the target micro controller is not known or  if you cannot find it in the list  then you may simply select    Philips    as the manufacturer and     LPC2148    as the micro controller        5  Click on    Linker Options    to display that part of the dialog window  In this window  you  will see a list of 8    Memory Banks     with names such as    Memory  1        Memory  2    and so  on  In your target hardware  there may be none or 1 or more number of contiguous memory  blocks connected to the ARM micro controller  Check the appropriate number of memory  banks to reflect the target s memory blocks  For each checked memory bank  specify  memory start address  in Hexadecimal  and memory block size  in decimal   Size maybe  speci
9. EDs    PC e    EDU ARM7 2148                                                    Serial Cable  Programs   Program is given along with the compiler software   Source Code      include  lt Philips LPC2148 h gt    include  lt stdio h gt     void main         PINSELO   0x00000005    InitUartO     printf  Hello World  in     while 1    putchar getchar                 Output  You can see the message Hello World on LCD  If required reset the board     23    Experiment No 7    Aim  Write a program to interface Stepper motor   Apparatus  EDUARM2148 with stepper motor Trainer kit     SCRAM PC  Theory    Write theory related to stepper motor interfacing     Block Diagram      Programm   Program is given along with the compiler software   Source Code    include  lt Philips LPC2148 h gt    define PHASEA 0x00002400   define PHASEB 0x00001400   define PHASEC 0x00001800   define PHASED 0x00002800  unsigned int delay    void main        PINSELO   0x00000000    PINSEL1   0x00000000    IOODIR   0x003C3C00    IOOSET   0x003C0000     PINSEL2   0x00000000    NO1DIR   0x00000000    while 1         IOOSET   PHASEA     IOOCLR     PHASEA   amp  0x00003C00    for delay 0  delay lt 30000  delay       IOOSET   PHASEB     IOOCLR     PHASEB   amp  0x00003C00      for delay 0  delay lt 30000  delay       IOOSET   PHASEC      24    IOOCLR     PHASEC  8 0x00003C00    for delay 0  delay lt 30000  delay       IOOSET   PHASED     IOOCLR     PHASED   amp  0x00003C00    for delay 0  delay lt 30000  delay           
10. GND  B P127 TDO 14 GND  15 NRST 16 GND  17 GND 18 GND  19 GND 20 GND                         J7    This is 26 pin dual line headers  It brings out I O and most of the pins of the LPC21xx  micro controller  Further  5V and GND are also made available on these connectors  These  connectors are intended for use to connect external peripherals     The pin signal details of J7 are as below                                                           Pin Signal name Pin Signal name  1 PL 16 2 P117  3 PLIS 4 P119  5 P0 28 6 P0 29  pi P0 30 8 P031  9 P0 10 10 P0 11  11 PO 12 12 P0 13  13 P0 14 14 P0 15  15 P0 16 16 P0 17  17 PLIS 18 P119  19 P1 25 20 P1 24  21 P1 23 22 P1 22  23 PL2I 24 P1 20  25 5V 26 GND             Study experiment 2    Aim t  Study of IDE overview  Project creation  downloading  amp  debugging   Apparatus t  EDU ARM 2148 Trainer kit   Theory i    A  SCARM Installation    As a part of the SCARM software package  you should have received a CDROM   Please insert it into the CD ROM drive and run SETUP EXE from it  Once you start the  SETUP program  follow the instructions on the screen to complete the installation  The  setup program will      Copy the required files to your hard disk     If there are any compressed files  un compress them     Create a program group for SCARM   Once you have successfully installed the software on your hard disk  you can run it by  clicking on    Start Programs SPJ   SCARM SIDEARM  However  we recommend  that you go through  this user s 
11. Javvaharlal Nehru Engineering College    Laboratory Manual    EMBEDDED SYSTEMS    For    BE  ECT     Manual made by    Prof  A R Salunke  Prof C B Rasar      Author JNEC  Aurangabad    Jawaharlal Nehru Engineering College    Technical Document    This technical document is a series of Laboratory manuals of Electronics  amp   Telecommunication and Industrial Electronics and is a certified document of Jawaharlal  Nehru Engineering College  The care has been taken to make the document error free but  still if any error is found kindly bring it to the notice of subject teacher and HOD     Technical document No  ECT IE Techdoc 21stOctober2009      Recommended by     HOD    Approved by     Principal    Copies   1  Departmental Library  2  Laboratory  3  HOD  4  Principal    PREFACE    It is my great pleasure to present this laboratory manual for final year  engineering students for the subject of Embedded Systems keeping in view the  vast coverage required for visualization of concepts of basic programming     As a student  many of you may be wondering with some of the questions  in your mind regarding the subject and exactly that has been tried to answer  through this manual     Faculty members are also advised that covering these aspects in initial  stage itself will greatly relieve them in future  as much of the load will be taken  care by the enthusiastic energies of the students  once they are conceptually  clear  Students are advised to thoroughly go through this manual rathe
12. S1307  and EEPROM   AT24C512  to 12C lines  SCLO P0 2 and SDAO PO 3  of LPC2148    S5     Turn ON this switch to connect POT and LM35 to ADC0 1 P0 28 and ADCO 2 P0 29  of LPC2148   S6    Turn ON this switch to connect Buzzer  DAC TP7 and External Interrupt to  ACOut P0 25 and EINTO P0 16 of LPC2148   S7    Turn ON this switch to connect SPI EEPROM  AT25256  to SPI lines  SCKO P0 4   MISO0 P0 5  MOSIO P0 6 and CS P0 7  of LPC2148     C  Connector Details   UARTO    This is a DB9 female connector  used for RS232 serial communication vvith the PC    Pin 2   UARTO RS232 TxD  output of mC   Pin 3   UARTO RS232 RxD  input to mC   Pin 4 S232 DTR   Pin 5   Ground  Pin 7   RS232 RTS  All other pins of J1 UARTO are unused   UART1    This is a DB9 female connector  used for RS232 serial communication with the PC    Pin 2   UART1 RS232 TxD  output of mC   Pin 3   UART1 RS232 RxD  input to mC   Pin 5   Ground   16x2 LCD    This is a 16 pin  single line connector  designed for connection to standard  text LCD  modules  The pin signal correspondence is designed to be matching with that required by  such LCD modules    Pin 1   GND   Pin 2    5V   Pin 3   Vicd   Pin 4   P1 25  Used as RS of LCD   Pin 5   GND   Pin 6   P1 24  Used as EN of LCD   Pin 7 to 10   No Connection   Pin 11   P0 15  Used as D4 of LCD   Pin 12   P0 17  Used as D5 of LCD   Pin 13   P0 22  Used as D6 of LCD   Pin 14   P0 30  Used as D7 of LCD   Pin 15   Backlighting   Pin 16   GND                128x64 Graphics LCD    Thi
13. TAL_FREQUENCY_IN_HZ    since VPBDIV 0x01 dl   define DIVISOR  PCLK  16 DESIRED_BAUDRATE    void InitUartO void     P    UOLCR  UARTO Line Control Register  0x83  enable Divisor Latch access  set 8 bit vvord length     1 stop bit  no parity  disable break transmission di  UOLCR 0x83    VPBDIV  VPB bus clock divider   0x01  PCLK   processor clock    VPBDIV 0x01     UODLL  UARTO Divisor Latch  LSB  ka A  UODLL DIVISOR8OXFF     UODLM  UARTO Divisor Latch  MSB       UODLM DIVISOR gt  gt 8     UOLCR  UARTO Line Control Register  0x03  same as above  but disable Divisor Latch access  UOLCR 0x03      UOFCR  UARTO FIFO Control Register  0x05  Clear Tx FIFO and enable Rx and Tx FIFOs  UOFCR 0x05      char putchar char ch         lwait until Transmit Holding Register is empty  while   UOLSR amp 0x20          then store to Transmit Holding Register  UOTHR   r      hwait until Transmit Holding Register is empty  while   UOLSR amp 0x20          then store to Transmit Holding Register  UOTHR ch    return ch     char getchar void     char ch    INvait until there s a character to be read  while   UOLSR amp 0x01          then read from the Receiver Buffer Register  ch U0RBR    return ch     Output  You can see output on SPJ Terminal     y          Experiment No  5     Aim   Write a program to interface LCD     Apparatus    EDU ARM 2148 Trainer kit with 16x2 LCD SCRAM PC    Theory    Write theory related to LDC Interfacing with ARM Processors     Block Diagram                                  
14. fied either in number of Kilobytes  KB  or Megabytes  MB   Some of the memory  blocks maybe    read only     e g  flash or conventional EPROM   Accordingly  you may check  or uncheck the    Read only    box  Based on this information about memory banks  the IDE  will automatically create the Linker Script  This auto generated script is adequate for most  users  However  if you wish to use your own script file instead of this autogenerated script   you may check the    Use different linker script    box and further click on the browse button   marked        and select appropriate linker script file     6  Click on    Source Files    to display that part of the dialog window  This window will indicate  that IDE has automatically added 2 files in this new project  PROG1 C and STARTUP ASM   The STARTUP ASM file is automatically created by the IDE and is required for all C  projects  Similariy  the IDE has automatically created an empty C file  PROG1 C   If the file  PROG1 C already exists in the same path  then IDE would neither create overwrite it nor  modify it  but it will anyway add it to the project automatically  If you wish to add more files in  this project  then click on the    Add file    button  select the desired filename and then click on     Open    button  Now the Project Settings dialog will indicate that selected file has been  added into the project  When all necessary files have been added to the project  click    OK     button to create this new project       
15. here to connect         Device ID starting from 0x4          will be displayed and program will run      To stop program go to Run   gt  Stop  Now you can insert breakpoint and say Run      You can use all the functions visible in Run option      In variable watch window you can see only global variables    10  If you have declared any global variables then find their addresses from  map file   11  Insert these addresses in variable watch window and you can see global variables also     CONADAARWNS    Experiment No  4      Aim    Write a program for serial communication using UARTO W A P  to transfer  message    Hello World      serially at 19200    baud rate 8 bit data and 1 stop bit using UARTO   Apparatus    EDU ARM 2148 Trainer kit  SCRAM PC    Theory   Write theory related to serial communication using UARTO     Bloch Diagram               JI                      EDU ARM7 2148             PC                      Serial Cable  Programm   Program is given along with the compiler software   Source Code      include  lt Philips LPC2148 h gt    include  lt stdio h gt     void main         PINSELO   0x00000005    InitUartO     printf  Hello World  in     while 1    putchar getchar                 Function  UARTO    include  lt Philips LPC2148 h gt    Hinclude  lt Philips LPC2138 h gt    define VPBDIV     volatile WORD32    0xE01FC100     define UORBR     volatile WORD32    0xE000C000     define DESIRED_BAUDRATE 19200   define CRYSTAL_FREQUENCY_IN_HZ 12000000   define PCLK CRYS
16. king and evaluation  patterns that will benefit the sincere students     Study experiment 1    Aim   Study Of EDU ARM 2148 Trainer kit   Apparatus t  EDU ARM 2148 Trainer kit   Theory i    The trainer kit contains following items   1  EDU ARM7 2148 board  2  Serial communication Cable  3  Power Supply Adaptor  4  SPJETs CD ROM    Power Supply Requirement    The power adaptor works with 230VAC  It produces approximately 9V DC  and the  EDU ARM 2148 uses on board regulators to provide 5V  3 3V and 1 8V DC to all  components on board     Connecting the system    The serial communication cable supplied with the board should be used to connect  the board to a PC running windows95 98 ME 2000 XP Vista Operating system  Connect  one end of the serial cable to UARTO of EDU ARM7 2148 board and other end to PCs serial  port     Powering ON    After connecting the serial communication cable as described above  you may insert  the power adaptor output jack into the on board power socket  Plug the power adaptor into  230 VAC mains outlet and turn it on  The power on indication green LED will turn on     A  EDU ARM7 2148 Bloch Diagram     Below figure shows the locations of different components on the EDU ARM7 2148  board     PWEJACK JIUAKII J CARIU SUSE L94 Graphis LUD    Enable Graptice    zen  PWM  Test Point  fa Pwo   1x2 Tex    Le  8 General Purpose    Comet Semper to  Emble LEDs  m         General Purpose  Keys    POT 10 give  Heenk X3Sleppe  Motor  Buzzer       Xey to give SPT based 
17. manual before you actually start using it    SCARM is SPJETs  C Compiler for ARM  It also includes an IDE and other tools like  Debugger  Visual Code Generator  VCG  and Terminal Emulation Utility  SPJTerm    This document describes steps to create ARM applications in C using the SCARM     About  Project     What is a project    A project is a file in which SIDEARM stores all information related to an application  E g  it  stores the name s  of  C  and or Assembler source file s   memory size to be used and other  options for compiler  assembler and linker     Opening a project    To open an existing project file  select Project   Open Project from the menu    Creating a new project    To create a new project  select Project   New Project from the menu    Changing project settings    To change the project settings  such as adding or removing  C  and or Assembler source  file s   changing memory settings etc    select Project   Settings from the menu     B  SCARM Quick Start for creating  C  applications   1  Start the SIDE ARM program  i e  the Integrated Development Environment  from  start Programs SPJ SCARM     2  From Project menu  select Close project  if any project is open      3  From Project menu  select New Project  The Open dialog window will be displayed   Select the desired path where you wish to create this new project   For example  C  SPJ      12    CAUTION  The path and filename must not contain space or other special characters such  as tab  comma  semicolon
18. nt amongst the teacher taking  the examination  Teachers taking such examinations should not have ill thoughts  about each other and courtesies should be offered to each other in case of difference  of opinion  which should be critically suppressed in front of the students     6  Evaluation and Marking systems        Basic honesty in the evaluation and marking system is absolutely essential and in the  process impartial nature of the evaluator is required in the examination system to  become successful  It is wrong approach or concept to award the students by way of  easy making to get cheap popularity among the students which they do not deserve   It is a primary responsibility of the teacher to see that right students are really putting  up lot of hard work with right kind of intelligence are correctly awarded    The marking pattern should be justifiable to the students without any ambiguity and  teacher should see that the students are faced with just circumstances     28    
19. ogrammable  ISP   Therefore it is possible to download user program into on chip flash of  LPC2148  through serial port connected to PC  For doing so  a certain position of S3 switch  is required  S3 Switch should be continuously ON  This section describes how to use the  software Flash Magic to download program into LPC2148     1  How to install Flash Magic    The CD you have received with this board contains SCARM  C Compiler for ARM   Install it  After installation go to folder C  SCARM Utilities  This folder contains 5 zip files   Install Flash Magic from FlashMagic3 71 zip  Extract the FlashMagic3 71 zip and then run  FlashMagic exe from the extracted files   If you have wrong version of Flash Magic already  installed  then please uninstall it first and then install new version      2  Download and Run program using Flash Magic into LPC2148      After installation of Flash Magic  open it      In Flash Magic go to Options   gt  Advanced Options  gt  Communications  Check High Speed  Communications and keep Maximum Baud Rate as 19200  Click on OK      Again in Flash Magic go to Options   gt  Advanced Options  gt  Hardware Config     Use DTR   and RTS to control RST and P0 14    option should be checked  Click on OK     After doing above mentioned settings  Flash Magic stores it means for the next time just   verify if these setting are proper or not  If they are proper then you can directly follow below   mentioned procedure    a  Connect the J1 UARTO connector of EDU ARM7
20. r than  only topics mentioned in the syllabus as practical aspects are the key to  understanding and conceptual visualization of theoretical aspects covered in  the books     Good Luck for your Enjoyable Laboratory Sessions     Prof  A R Salunke  Prof C B Kasar    Author    SUBJECT INDEX          Title Page no   1 Do s and Dont s in Laboratory 5  2 Instruction for Laboratory Teachers  5    3  Lab Exercises     1  Study of EDU ARM 2148 Trainer kit  6  2  Study of IDE overview Project creation  downloading  amp debugging  12  3  Study of JTag debugger  15  4  Write a program for serial communication using UARTO 17  5  Write a program for LCD interfacing  19  6  Write a program to Blink LED s  23  7  Write a program for Stepper motor interfacing  24  8  Write a program for buzzer interfacing  26  4  Quiz on the subject 28  5  Conduction of viva voce examination 28    6  Evaluation and marking scheme 28             1  DOs and DON Ts in Laboratory        1  Do not handle kit without reading the instructions Instruction manuals     2  Refer Help for debugging the program     3  Go through Demos of Signal Processing tool box     4  Strictly observe the instructions given by the teacher Lab Instructor     2 Instruction for Laboratory Teachers        1  Lab work completed during prior session should be corrected during the next lab  session     2  Students should be guided and helped whenever they face difficulties     3  The promptness of submission should be encouraged by way of mar
21. s   This software tool   Debugger will work correctly only when the JTAG Cable is connected correctly    For SJT S   There is a crude test to verify SJT S JTAG Cable connection  You may please follow these  steps    15    1  Connect JTAG Cable between PC COM port and EDU ARM7 2148  as per instructions in  this manual    2  Turn ON power to the target board    3  On the PC  run SPJTerminal software    4  In the Port Settings  select appropriate COM port  to vvhich the JTAG cable is connected    Select 115200 baud  no parity  8 bits per char  1 stop bit and no flow control    5  Open the COM Port connection    6  Type character  G  in the terminal window  l e  send the character    G    to the PC COM port   7  If the JTAG Cable connection is correct  it will send back character  1  or    0     As a result   you will see either    1    or    0    appearing in the terminal window  This indicates that JTAG  Cable connection is ok    8  If you don t see any character in the terminal window  probably the JTAG Cable is not  connected appropriately    9  If you see some character other than    1    and    0     then either the cable is not connected  appropriately or the COM port settings are not as specified above     C  How to Debug Program      Connect SJT S as mentioned above      Open project in SIDEARM  Rebuild it      Download the same code in the target board      In SIDEARM go to Tools   gt  Debugger      In Debugger go to Run   gt  Click on    Not connected to target  click 
22. s is a 20 pin  single line connector  designed for connection to standard  128x64  Monochrome Graphics LCD modules  The pin signal correspondence is designed to be  matching with that required by such LCD modules    Pin 1  GND   Pin 2    5V   Pin 3   Vicd   Pin 4   P1 25  Used as RS of GLCD   Pin 5   P0 15  Used as RW of GLCD   Pin 6 1 24  Used as EN of GLCD   Pin 7   P0 10  Used as DO of GLCD   Pin 8   P0 11  Used as D1 of GLCD   Pin 9   P0 12  Used as D2 of GLCD   Pin 10   P0 13  Used as D3 of GLCD   Pin 11   P0 18  Used as D4 of GLCD   Pin 12   P0 19  Used as D5 of GLCD                Pin 13   P0 20  Used as D6 of GLCD   Pin 14   P0 21  Used as D7 of GLCD   Pin 15   P0 22  Used as CS1 of GLCD   Pin 16   P0 30  Used as CS2 of GLCD   Pin 17     Pin 18     Pin 19    5V   Pin 20   GND    JTAG Connector    This standard 20 pin JTAG connector provides debugging support for the LPC21xx   This connector is mounted on top side of the board as shown in figure1  JTAG cables like  SJT S or SJT U can be connected to this connector  while other end of the cable can be  connected to PC COM port or USB port  respectively  Debugger software  like the debugger  built into SCARM  allows JTAG based debugging  It is also possible to use third party JTAG  based emulators  debuggers  The pin out of JTAG Connector is given below                                           Pin Signal name Pin Signal name  1 33V 2 33V  3 PI3UNTRST 4 GND  5 TDI 6 GND  7 TMS 8 GND  9 P1 29 TCR 10 GND  11 P1 26 RTCK 12 
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Alpine CDA-9820XM Car Stereo System User Manual  Samsung AS09HPBX Manual de Usuario  C003 Heavy Duty Hand Tool Operating Instructions - Band  iso-tech idm67 multimetre numerique manuel d`instructions  Target Audience Frequency Of Publication  Targus Trademark Notebook Case  Audio Breath Pacer Software User Guide  Viridian VR1816 Instructions / Assembly  OperAting inStruCtiOnS  STRIPE COMFORT    Copyright © All rights reserved. 
   Failed to retrieve file