0% found this document useful (0 votes)
5 views21 pages

Week1-Introduction Keil Studio

week

Uploaded by

Mab Bam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views21 pages

Week1-Introduction Keil Studio

week

Uploaded by

Mab Bam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Embedded Computing

MOD007361

School of Computing and Information Science


Anglia Ruskin University
Learning outcomes

1. Design a small microprocessor system.


2. Write well-structured software to support I/O devices
and interrupt driven real time systems.
3. Analyse different processors’ architectures
4. Use modern industry standard integrated development
environment for microprocessor design (IDE), proving
the ability to design, develop and implement sample
electronic systems and evaluate the results.
Text book

• Toulson, R, Wilmhurst, T
(2012), Fast and
Effective Embedded
Systems Design:
Applying the ARM Mbed.
Newnes Elsevier.
Assessment

• Coursework assignment (equivalent to 3000 words):


• Essay type of report (2000 words)
• Potential list of questions from the Practical Sessions
What is a computer

• It is a system which contains:


• A central processing unit (CPU)
• Memory
• Input/output devices and
• A bus system.
Any system that contains these elements can be defined
as a ‘computer’.
What is a microprocessor?

• A microprocessor is a programmable circuit that


contains all the elements of a central processing
unit (CPU) on a chip.
• The elements of a CPU are
• an arithmetic logic unit (ALU)
• a control unit.
• If a computer uses a microprocessor as its CPU,
then it is called a ‘microcomputer’.
What is a microcontroller?

• A microcontroller is a system that includes


1. All the elements of a CPU on a single chip
(microprocessor)
2. And memory, input/output devices and bus lines all
on the same integrated circuit (IC) chip.
• In this course we will look at applications involving
microcontrollers.
• You will also see that often the words microprocessor
and microcontroller are used to describe the same thing.
What are embedded systems?

“Any mechanical or electrical system that is controlled by a


computer working as part of the overall system is called an
embedded system.” (Barret & Pack, 2004).
• Any electro/mechanical device controlled by a small self-
contained computer
• This differs to a microcomputer
• Embedded systems are designed specifically for a
particular application (such as a vending machine,
digital radio, mobile phone, digital multimeter).
• In general embedded systems use microcontrollers as
their computer; this allows devices to be made small,
specific and inexpensive.
Microprocessors and
microcontrollers

data and
address
Data
Central Memory
The
data and
address Processing
Input/ Unit (CPU)
Outside
Output
World data and
address
Program
ALU
Memory

Control
Microprocessor

Essentials of a computer
The microcontroller

A microcontroller = core + memory + peripherals


Getting ready for Studio
Keil
1. Create an account on https://studio.keil.arm.com/
2. Login
3. Add the LXP 1768 Platform to the online compiler
Create a Keil Studio
account

• Click on signup on https://studio.keil.arm.com/auth/login/

Sign up
Complete signup
procedure
Keil Studio mbedLPC1768

• Connect the LPC1768 board to the USB port and install


any driver required

• Select from the drop-down menu Active Project:


 Mbed-os-example-blinky

• Select from the drop-down menu Target Hardware:


 mbedLPC1768
Keil Studio mbedLPC1768
Keil Studio mbedLPC1768
Keil Studio: create new
Project
Keil Studio: new Project
name
Keil Studio: new Project
created
The editor
(clicking on .cpp file)
Let’s have a look at the
code
#include "mbed.h"
// Blinking rate in milliseconds
#define BLINKING_RATE 500ms

int main()
{
// Initialise the digital pin LED1 as an output
DigitalOut led(LED1);
while (true) { led = !led;
ThisThread::sleep_for(BLINKING_RATE);
}
}

We have a digital output (DigitalOut) called “led” linked


to the one of the LED on the board and run a loop forever
turning it on and off.
Look at how we used the sleep_for function

You might also like