ENGN3213. Digital Systems & Microprocessors. HLAB 6: ARM Embedded Systems I

Similar documents
An Example of using Keil uvision3 for creating Keil ARM s Project File

Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil cvision3 Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil uvision3

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

Experiment 1. Development Platform. Ahmad Khayyat, Hazem Selmi, Saleh AlSaleh

Lab 1 Introduction to Microcontroller

μrfid User Manual v1.00

ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148

ARM HOW-TO GUIDE Interfacing Relay with LPC2148 ARM

P89V51RD2 Development Board May 2010

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

EPM900 - Overview. Features. Technical Data

Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM

Getting Started in C Programming with Keil MDK-ARM Version 5

ECE 254/MTE241 Lab1 Tutorial Keil IDE and RL-RTX Last updated: 2012/09/25

Getting Started in C Programming with Keil MDK-ARM Version 5

Introduction to uvision and ARM Cortex M3

Getting Started in C Programming with Keil MDK-ARM Version 5

STM32L100C-Discovery Board Projects

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

Evaluation board for NXP LPC2103 USE GNU ARM UNDER KEIL IDE

LAB1. Get familiar with Tools and Environment

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM

ECE254 Lab3 Tutorial. Introduction to MCB1700 Hardware Programming. Irene Huang

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

LPC2148 DEV BOARD. User Manual.

LPC1768 Industrial Reference Design Platform System Development Kit Version 1.3. May 2009

Colorado State University

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

HandsOn Technology -- HT-MC-02 MODEL: HT-MC-02

ARM. Architecture, Programming and Development Tools

LPC2468 Industrial Reference Design Platform System Development Kit Version 1.2. August 2008

FACULTY OF ENGINEERING LAB SHEET

Getting Started in Assembly Programming with Keil uvision and MSP432

NFC NUTSHELL KIT. MCU Modules USER MANUAL REVISION GMMC GmbH Keywords Abstract. Document information

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

CoiNel Technology Solutions LLP. LPC2148 ARTIST Instruction Manual LPC2148 ARTIST. Instruction manual. Revision 1

STM32 F4xx Discovery Board Setup Guide

Lab 3a: Scheduling Tasks with uvision and RTX

QuickStart Instructions. Using Keil's ULINK and the Keil ARM/µVision3 Software Development Tool Chain

Cortex -M3 Hands-On LAB featuring Serial Wire Viewer

ET-NXP ARM KIT (LPC1768)

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

User Manual: LPC1830-Xplorer LPC1830-Xplorer

Lab Experiment 9: LCD Display

EM-LPC1700 Evaluation Board User Manual V1.2

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Basic Input/Output Operations

ARM HOW-TO GUIDE Interfacing I2C-7SEG with LPC2148 ARM

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Keil TM MDK-ARM Quick Start for. Holtek s HT32 Series Microcontrollers

UM User Manual for LPC54018 IoT Module. Rev November Document information

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Cypress FM4 Tools Set-up with Keil 5.x

ET-BASE AVR ATmega64/128

STM32F3 Hands-On Workshop

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

C8051F00x/01x-DK C8051F00X/01X DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. 2. Hardware Setup using a USB Debug Adapter

PIC KIT 2 BASIC-USERS GUIDE FEMTO ELECTRONICS

Diploma in Embedded Systems

RVDS 4.0 Introductory Tutorial

Binary Representations, and the Teensy 3.5

AN Philips LPC2000 CAN driver. Document information

Update process is different depending on firmware version

EE 308 Spring A software delay. To enter a software delay, put in a nested loop, just like in assembly.

LPC1788 Mio Board. The functional details of the board are as follows-

uip, TCP/IP Stack, LPC1700

Chapter 2: Introducing the mbed tw rev

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Laboratory 1 Introduction to the Arduino boards

8.9.2 Lab: Configure an Ethernet NIC to use DHCP in Windows Vista

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

LAB4. Program the on chip SPI module

Lab 3b: Scheduling Multithreaded Applications with RTX & uvision

Engr 355 Embedded Systems Design. mbed and LPC11U24 Overview. Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM

Chapter 4. Enhancing ARM7 architecture by embedding RTOS

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

RVDS 3.0 Introductory Tutorial

AN10337 Adding ISP firmware to an LPC900 software project

Programming (1.0hour)

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

Nuvoton Nu-Link Debug Adapter User Manual

Laboratory Exercise 4

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

Quick-Start Guide. BNS Solutions. QSK62P Plus

Preliminary. Specification

Getting acquainted with the development tools June 27, 2006 ELE492 Embedded System Design Exercise 1

VORAGO VA108x0 GCC IDE application note

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

8051 General Purpose Board

AN10917 Memory to DAC data transfers using the LPC1700's DMA

Quick Start Guide Demo Distance2Go. September 2017

Megawin 8051 OCD ICE

Training Bulletin TITLE: CHIP-CARD BROWSER RECOMMENDATIONS AUDIENCE: GENERAL MANAGERS, FRONT DESK STAFF DATE: DECEMBER 12. Intro

Transcription:

Department of Engineering Australian National University ENGN3213 Digital Systems & Microprocessors HLAB 6: ARM Embedded Systems I V3.0 Copyright 2010 G.G. Borg ANU Engineering 1

Contents 1 HLAB 6: ARM Embedded Systems 3 1.1 Aims....................................... 3 1.2 Background................................... 3 1.3 Using KEIL to Build Projects......................... 4 1.4 Downloading the HEX files to the board................... 5 2

1 HLAB 6: ARM Embedded Systems 1.1 Aims The aims for HLAB6 are, Become familiar with the LPC2368 ARM development board Look at the the implementation of a led flasher, beeper and web server 1.2 Background The range of ARM microprocessors on the market is absolutely stunning. The latest ARMS are the ARM7, ARM9 and lately the Cortex. Fig. 1 shows the NXP LPC2368 processor by Philips that is installed on the Futurlec ARM development board. The board is replete with functionality and in this lab we are going to downlad programs to the the lpc2368 to explore just some of these. The aim is to become familiar with the process without placing much emphasis on programming yet. To get the ball rolling download ARM_SOFTWARE.zip\endverbtaim from \beginverbatim http://engnet.anu.edu.au/decourses/engn3213/labs.html. The contents of this folder are as follows BEEP FlashMagic_Settings.jpg LED_Blink EasyWEB HEX files lpc2364.lpc2365.lpc2366.lpc2367.lpc2368.pdf flash magic HowTo_CP_JR_ARM7 LPC2368.doc User s Manual of CP_JR_ARM7_LPC2368.pdf KEIL_mdk411.exe where the folders BEEP, LED Blink and EasyWEB contain KEIL project files. The source is written in both C (.c and.h files) and assembler (.s). HEX files contains the HEX for download over the In circuit Serial Programming interface (ICSP). THE HEX files are readable and constitute the binary code load into flash memory in the processor 3

at the last stage of development. The program FlashMagic does the ICSP. The Users manual and how-to document provide a useful introduction to the experiments. The most important file is the KEIL Interactive Development Interface KEIL mdk411.exe. Download it and install it onto the PC immediately. 1.3 Using KEIL to Build Projects After installation run KEIL and go to Project and close anyn existing project. The under Project open a the BEEP project for which the source code in C is shown below. This code beeps the speaker periodically on the ARM board. Start by taking a look at the code. Note how the C code is quite readbable with some MACROS in assembly language. For example #define SPEAKER_ON() FIO2SET = SPEAKER where F IO2SET refers to an IO pin. Another simple observation is the way the speaker is delayed using a counter. /****************************************************/ /* Examples Program For "CP-JR ARM7 LPC2368" */ /* Target MCU : Philips ARM7-LPC2368 */ /* : X-TAL : 12.00 MHz */ /* : PLL Setup = MSEL(12),NSEL(1) */ /* Keil Editor : uvision3 V3.53a */ /* Compiler : Keil Realview MDK V3.20 */ /* Create By : Eakachai Makarn (WWW.ETT.CO.TH) */ /* Last Update : 12/November/2007 */ /* Function : Example Generate Beep on Speaker */ /****************************************************/ #include "LPC23xx.H" // LPC2368 MPU Register // Pin I/O Speaker Control Maskbit #define SPEAKER 0x00000100 // P2.8(0000 0000 0000 0000 0000 000x 0000 0000) #define SPEAKER_ON() FIO2SET = SPEAKER // Speaker Pin = 1 (ON LED) #define SPEAKER_OFF() FIO2CLR = SPEAKER // Speaker Pin = 0 (OFF LED) /* pototype section */ void delay(unsigned long int); // Delay Time Function int main(void) unsigned int beep_time; // Config Pin GPIO2[8] PINSEL4 &= 0xFFFCFFFF; // P2[8] = GPIO Function(xxxx xxxx xxxx xx00 xxxx xxxx xxxx xxxx) FIO2DIR = SPEAKER; // Set GPIO-2[8] = Output(xxxx xxxx xxxx xxxx xxxx xxx1 xxxx xxxx) SPEAKER_OFF(); // Default Speaker Status // Loop Generate Beep on Speaker(P2.8) while(1) // Loop Continue for (beep_time = 0; beep_time < 500; beep_time++) // Start Beep SPEAKER_ON(); // ON Speaker delay(5000); SPEAKER_OFF(); delay(5000); // OFF Speaker delay(10000000); // Stop Beep 4

/***********************/ /* Delay Time Function */ /* 1-4294967296 */ /***********************/ void delay(unsigned long int count1) while(count1 > 0) count1--; // Loop Decrease Counter Build the project by clicking on project Build Target. This produces a HEX file. Which should be able to locate in the project folder. Close the BEEP and repeat the same process for LED Blink and EasyWEB. Note the location of the HEX files. 1.4 Downloading the HEX files to the board First connect the serial (grey) cable from the PC sm serial port to the ARM board. Power up the ARM board and while depressing the ISP LOAD press once the RESET button. Finally releas the ISP LOAD button. This initialise the LPC2368 dfor download. Next open FlashMagic and make sure the settings are as shown in Fig 2. Browse to the BEEP HEX file and download it. When this is done and if this was successful then press the RESET button alone once more. If the download was not successful then double check the settings. The LP C2368 should immediately start to beep the on-board speaker. Note that if you power down the board and power up again the program should resume as it is stired permanently in flash. Repeat the above process with the LED blink HEX file. To test out EasyW EB you will first need to disconnect the PC s ethernet cable from the switch port on the desk and plug it into the ARM board s on-board ethernet port. Next go to the CMD prompt on the PC and type ipconfig/all. Note the IP address and net mask. Next go to the project file T CP IP.H and enter a different IP address for MY IP (say one that is one more than the PC s) and the same netmask. Rebuild the EasyWEB project in KEIL and download the HEX file to the board as above. If all is well the data leds near the ethernet port should be flashing. Open up FIREFOX on the PC and navigate to the URL http://ip_address_of_arm_bard. What do you see?? 5

Figure 1: The Philips NXP LPC2368 microprocessor. 6

Figure 2: The F lasmagic settings. 7