Part 1 Using the ARM board And start working with C Tutorial 5 and 6

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Configuring APACS & AAN Controllers
LAB 9: Environment Setup for Tower System Chung-Ta King National Tsing Hua University CS 4101 Introduction to Embedded Systems.
DE2-115 Control Panel - Part I
Lab7: Introduction to Arduino
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
Getting your Arduino to Work: Microsoft Windows 1.Install Arduino programming environment 2.Install Arduino Uno driver 3.Make sure you can download a program.
SIS Software Install Instructions Cookbook Multibeam Advisory Committee March 21, 2012 SIS Multibeam Advisory Committee – March 21, 2012.
Getting Started with Layout Compiled by Ryan Johnson May 1, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT  The.
Lab 03 Windows Operating Systems (Cont.). PYP002 Preparatory Computer ScienceWindows Operating System2 Objectives Develop a good understanding of 1. The.
LAUNCHXL2-RM57L – Project 0
IDE for ARM 7 board Tutorial 3 IDE of Keil4 V3.a 1.
Using PDG with e2studio: Example
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Operating Systems Day 3. Changing Date & Time 1.Double click on digital clock on the notification area of a task bar (Click start button, Click control.
Welcome to the Milagrow Universe
1. 2 LXU800 User’s Manual 1.Installation – Windows XP UI Features Introduction Data Connection & Disconnection.
This example is a step by step walkthrough for installing the SRH Front Desk Printer in Windows 8.
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
Silicon Labs ToolStick Development Platform
ADAM Single Writer User’s Manual ETA Chips Co., Kr, 2011 Rev 1.0.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
9000U Quick Guide Marketing & RMA Department XELTEK 8/28/2015.
SMART Response Initial Set-up: Windows PC Teacher and Class Set-up Creating a Quiz, Test, or Survey Delivering an Assessment Reports Additional Question.
Tutorial 11 Installing, Updating, and Configuring Software
With Bluetooth Connectivity
U81X0 Downloading Tool Manual 1 ( Version 1.2 ) FlashRW For U81X0 Version 4.0.0(Build #95V) February 2004 LG Electronics Inc.
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
IT 211 Project Integration and Deployment Lab #11.
High Speed Data Converter University
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
AT91SAM9261-EK WinCE 5.0 DEMO ATMEL AT91 Application & Support Group Version 1.O February 2007.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
BBBK Programming Notes Rudra Dutta CSC , Fall, 2013.
Page 1 D&C EBV Seminar June 2003 Motor Demo C868 Chevillot/Jansen June 2003 N e v e r s t o p t h i n k i n g. Infineon C868 Hands On Training CAPCOM6.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Vex Robotics Programming Sequence. Now that you’ve had some practice downloading and using the included programs, it's time to learn to write some of.
Downloading and Installing Autodesk Revit 2016
Development of a microprocessor project with LPC2388 development board.
Overview of MSWS Control of 212-LC July 15, 2006.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Programming the Geiger Counter Board 1. Arduino Files Go to and download the latest Arduino.
U81X0 Downloading Tool Manual 1 ( Version 2.0) FlashRW For U81X0 Version 4.0.0(Build #100V) April 2004 LG Electronics Inc.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Teaching Digital Logic courses with Altera Technology
Embedded Systems Design with Qsys and Altera Monitor Program
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Confidential WINGTIP ODIN User Guide. Confidential  Run the Odin3 v  Connect with the Gear Fit (Target should be download mode)  Connect PC with.
After Construction Name: Per #:.
Workshop Setup The software/hardware used in this workshop are:
Step 1 - Installing TStatSpec Download the TStatSpec software from customer.honeywell.com.  The files will need to be extracted in a new folder.  
DE2-115 Control Panel - Part I
Programming and Debugging with the Dragon and JTAG
Lab 1: Using NIOS II processor for code execution on FPGA
The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.
Downloading Arduino FOR WINDOWS.
PRU-ICSS Programming with CCS
iSERIES PROGRAMMING/LOGGING TRAINING
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
ECE 3567 Microcontroller Lab
Configuration Of A Pull Network.
Intro to Micro Controllers
Software Setup & Validation
Arduino Leonardo Setup
Lab #1: Getting Started.
ECE 3567 Microcontrollers Lab
ECE 3567 Microcontrollers Lab
Presentation transcript:

Part 1 Using the ARM board And start working with C Tutorial 5 and 6 Arm board tutorial Part 1 Using the ARM board And start working with C Tutorial 5 and 6 CES arm board v.14.7

Outline Software Hardware Download the program to the board The ARM7 board test program CES arm board v.14.7

Materials distributed Materials will be distributed: NXP LPC2131 x 1 FT232BL x 1 Power adapter x 1 USB cable x 1 Please use them CAREFULLY You MUST return all the materials at the end of this semester 30 marks will be deduced if you lose or don’t return anyone of them CES arm board v.14.7

Hints for the exercises The User manual (UM10120.pdf) and the Schematic of the board are VERY usefully You may need to check the lecture notes CES arm board v.14.7

Setup the uVision project … Software CES arm board v.14.7

Start working with C New Project Project  New μVision Project… Find somewhere to save you project choose NXP  LPC2131 with Startup.s Edit Startup.s comment the line 430 CES arm board v.14.7

Start working with C Project  Options for target1 At "Linker" tab select “Use Memory Layout from Target Dialog” At "Output" tab select “Create HEX File” CES arm board v.14.7

Start working with C Create a C file File  New… File  Save Find a good place to save your code e.g. same folder as the project file End the file name with ".c" Some examples : main.c, test_c.c Bad examples: a.c, asd.c CES arm board v.14.7

Start working with C Add the code into your project Project  Manage  Components, Environment and Books  Add files Locate the C file you just saved Your project should look like this: CES arm board v.14.7

Start working with C Paste the following template to your code: #include <lpc213x.h> int main(){ while(1); return 0; } CES arm board v.14.7

Start working with C #include <lpc213x.h> tell the compiler to use the header file "lpc213x.h" lpc213x.h defines all the register address for the devices in LPC213x family IOPIN0 for GPIO0, U0THR for UART0 CES arm board v.14.7

Start working with C int main(){ while(1); return 0; } the function "main" is the entry point of your program after the running the instructions in "Startup.s" "while(1);" is an infinite loop which keeps the processor busy CES arm board v.14.7

Introduction to the CUHK ARM7 board 2012 Hardware CES arm board v.14.7

CUHK ARM Board 2012 The latest version of the board CES arm board v.14.7

A simple prototype board CUHK ARM7 board 2012 Serial ↔ USB IC A simple prototype board Connect to computer Power NXP LPC2131 Reset CES arm board v.14.7

A simple prototype board CUHK ARM7 board 2012 Serial ↔ USB IC A simple prototype board Connect to computer Use Power Supply (9V) OR Use power adapter NXP LPC2131 A Slide switch (Pull right is the programming mode; Pull left is the normal mode) Always light up with power on Press to reset CES arm board v.14.7

Install the Serial ↔ USB driver After you power on and connect the board to computer, you may need to install the driver for the Serial ↔ USB chip Please download the driver from BlackBoard, named “CDM20828_Setup.exe” You can also download the driver from this link http://www.ftdichip.com/Drivers/VCP.htm Please install it, then, re-connect the board to computer Now, go to Device Manager to check the board can be recognize by the computer or not CES arm board v.14.7

Install the Serial ↔ USB driver Your board is ready to use if this appear CES arm board v.14.7

Flash the program to the board CES arm board v.14.7

Download to the Board Create a HEX file Use the Flash Tools by Philips(LPC21XX) You can install it in your own computer Please download “Philips Flash Utility Installation.exe” and install it if you needed CES arm board v.14.7

Check the project setting Choose “Option for Target…” CES arm board v.14.7

Check the project setting Make sure “Create Hex File” in Output tab is selected CES arm board v.14.7

Configure the Flash Tool Click “Flash”, select “Configure Flash Tools…” CES arm board v.14.7

Configure the Flash Tool Make sure this part is same as follow (If you install the tool in your own computer, the path will be different. Please find it from your installed directory) Make sure it is correspond to the COM device of the board (Mostly it is COM4) You may need to check the Device Manager to confirm Change to 57600 CES arm board v.14.7

Check the Hardware connection Connect the USB cable Set the slide switch (SW2) to programming mode (Right) Press the reset button Please pull to Right CES arm board v.14.7

Download CES arm board v.14.7

Upload Click “Upload to Flash” if not start automatically On error, please check: Any other program using the serial port? Make sure the switch is connected Push the reset button CES arm board v.14.7

Lab Exercise Create a new project Please mark sure all the settings are correct Download the “gpio.s” form BlackBoard Add it to the project Compile and download it to the board Observe and test the result Now, change the “BEQ” in line 23 to “BNE” Compile and download to the board again Observe the result, state the differences between the previous CES arm board v.14.7

Lab Exercise Remove the “gpio.s” in the project Create a new file, called “gpio.c” and add it to the project Re-write the previous two “gpio.s” in C The original one and the modified one Compile and download to the board Can you re-produce the previous two results? CES arm board v.14.7

The ARM7 board Test program You may use it to test out the board you make … The ARM7 board Test program CES arm board v.14.7

Test program of the board You can download a test program, named “TestProg.hex” from BlackBoard to test out your board CES arm board v.14.7

To use this test program … Connect the board to the computer Pull the slide switch to the programming mode Press the Reset button Please go to “Start” -> “All Programs” -> “Philips Semiconductors” -> “Flash Utility” -> “Launch LPC210x_ISP.exe” Click “Launch LPC210x_ISP.exe” to start the Flash Tool CES arm board v.14.7

CES arm board v.14.7

Setting the Flash Tool Select the corresponding the COM port (Mostly is COM4). You may need to check it for Device Manager Click this. Select the “TestProg.hex” file you downloaded After the settings are finished, Click this to download the program to the board Select 57600 CES arm board v.14.7

To use this test program … Wait the download process is finished If it is not success, please redo the pervious steps again Pull the switch back to the normal mode Press the Reset button Now, the test program is running. You may observe the LEDs are blink. Also, you can turn on/off those LEDs using the push buttons CES arm board v.14.7

part 2 CES arm board v.14.7

Building LDR module Building LDR module

Supplementary…

Change the COM Port Number Select “Properties”

Change the COM Port Number Click “Advanced…”

Change the COM Port Number Select the COM Port Number which between COM2-COM5

Change the COM Port Number Click “Yes”

Change the COM Port Number Click “OK”

Change the COM Port Number Now, the COM Port Number is changed

Using Hyper Terminal

Using Hyper Terminal

Using Hyper Terminal Choose a name for your connection

Using Hyper Terminal Choose the com port connected to the device

COM Properties Choose a setting that match the board Baudrate Data Bit 8 Flow control None

Communicate with ARM board Connect Disconnect

Other way to open Hyper Terminal Double click the shortcut in Desktop, named by baudrate value E.g 57600.ht, 115200.ht

LDR Module

Please don’t forget this resistor LDR Module GND 47 ohm Vcc Vout On the ARM board Please don’t forget this resistor Vout Vcc GND LDR module