The Laboratory Microcontroller and Board

bendembarrassElectronics - Devices

Nov 2, 2013 (3 years and 10 months ago)

166 views

The Laboratory

Microcontroller and Board

Douglas Wilhelm Harder,
M.Math
. LEL

Department of Electrical and Computer Engineering

University of Waterloo

Waterloo, Ontario, Canada


ece.uwaterloo.ca

dwharder@alumni.uwaterloo.ca


© 2013 by Douglas Wilhelm Harder. Some rights reserved.

Input
from Irene Huang and Bernie Roehl

Outline


This topic introduces the board and microcontroller we
will use in the laboratories for this course:


An overview


NXP Semiconductors


The NXP LPC1768 microcontroller


ARM Holdings
plc


The ARM architecture


Keil


Keil

MCB1700


Keil

µVision
IDE


Keil

MDK


Documentation



The Laboratories

2

The Board


We will use the
Keil

MCB1700 evaluation board



The NXP LPC1768

microcontroller


The Laboratories

3

www.keil.com

NXP


NXP Semiconductors (
N
e
x
t E
x
p
erience)



Originally founded as Philips
Semiconductors

in 1953



Sold in 2006 to a private consortium


Went public in 2010 as NXP


Headquartered in Eindhoven, the Netherlands


Revenue of over $4 billion


More than 20 000 employees


Website: www.nxp.com

The Laboratories

4

NXP
LPC1768


The LPC1768 is an ARM 32
-
bit Cortex
-
M3
microcontroller


The ARM architecture provides a framework for a family of
RISC
-
based processors


The architecture was developed in the

1980s by Acorn Computers

The Laboratories

5

Nenad

Milosevic

ARM Architectures


Today, the architecture is licenced by ARM Holdings
plc


ARM Holdings neither manufactures nor sells its designs


Companies like NXP licence the architecture


The ARM Cortex
-
M is a collection of 32
-
bit microcontroller cores


Microprocessors are generally restricted

to a central processing unit (CPU)


RAM, ROM, etc. are usually peripheral


Microcontrollers will have fixed amounts

of RAM and ROM, as well as other

peripherals, on
-
chip


They are designed to perform a single task


Abbreviated as MCU,
µC,

uC



The Laboratories

6

PETE FISHER/Sun Media

ZeptoBars

ARM Cortex
-
M3


ARM has created a series of related architectures
including the ARMv7 with three variations:




-
M for microcontrollers




-
R for real
-
time systems




-
A for applications



ARM Cortex
-
M processors satisfy certain additional
requirements


The ARM Cortex
-
M3 uses the ARMv7
-
M architectures


Uses the Thumb and Thumb
-
2 instruction sets


Has other required features

The Laboratories

7

ARM Cortex
-
M3


Numerous microcontrollers are based on Cortex
-
M3:


Actel

SmartFusion
,
SmartFusion

2


Analog Devices ADuCM360


Atmel SAM3A, SAM3N, SAM3S, SAM3U, SAM3X


Cypress Semiconductor
PSoC

5


Energy Micro EFM32 Tiny, Gecko, Leopard, Giant


Fujitsu FM3


Holtek

HT32F125x


NXP LPC1300, LPC1700, LPC1800


ON
Semiconductor Q32M210


Silicon Labs Precision32


STMicroelectronics STM32 F1, F2, L1, W


Toshiba TX03

The Laboratories

8

http://en.wikipedia.org/wiki/ARM_Cortex
-
M4#Chips_4

LPC1768


The LPC1768 processor satisfies the requirements for a
Cortex
-
M3 together with


100 MHz


512
KiB

on
-
chip flash memory


64
KiB

SRAM


and lots of other features:







… and a partridge in a pear tree

The Laboratories

9

Nested

Vectored

Interrupt

Controller,

Eight

channel

General

purpose

DMA

controller,

AHB

Matrix,

APB,

Ethernet

10
/
100

MAC

with

RMII

i nterface

and

dedicated

DMA,

USB

2
.
0

full
-
speed

Device

controller

and

Host/OTG

controller

with

DMA,

CAN

2
.
0
B

with

two

channels,

Four

UARTs,

one

with

full

Modem

interface,

Three

I
2
C

serial

i nterfaces,

Three

SPI/SSP

serial

interfaces,

I
2
S

interface,

General

purpose

I/O

pins,

12
-
bit

ADC

with

8

channels,

10
-
bit

DAC,

Four

32
-
bit

Timers

with

capture/compare,

Standard

PWM

Timer

block,

Motor

control

PWM

for

three
-
phase

Motor

control,

Quadrature

Encoder,

Watchdog

Timer,

Real

Time

Clock

with

optional

Battery

backup,

System

Tick

Timer,

Repetitive

Interrupt

Timer,

Brown
-
out

detect

circuit,

Power
-
On

Reset,

Power

Management

Unit,

Wakeup

Interrupt

Controller,

Crystal

oscillator,

4
MHz

internal

RC

oscillator,

PLL,

JTAG,

Serial

Wire

Debug/Trace

Port

with

ETM,



Xavier Romero
-
Frias

Keil

MCB1700


The
Keil

MCB1700 is an
evaluation board based on the
NXT LPC1768


It provides all possible

peripheral connectors


An application
-
specific

board would contain only

the required peripherals



Evaluation
boards

are

also referred to as

development boards

The Laboratories

10

www.keil.com

Keil

MCB1700


The
Keil

MCB1700 evaluation board contains:


Two
RS232 Interfaces


Two
CAN Interfaces


One
10/100M Ethernet Interface


One
ETM Interface


One
Micro SD Card Interface


One
USB Device Interface


One
USB Host Interface


One
USB OTG Interface


One 20
-
pins
JTAG Interface


One 10
-
pins
Cortex Debug Interface


One 18
-
pins
Cortex Debug Interface


One
TFT LCD Interface


One
Joystick with 4
-
direction control and selector


One
Analog Output (connected to speaker by default)


One
Analog Input (connected to potentiometer by default)


Supply
Voltage:
5 V
DC (provided by the USB bus of a PC)


Supply
Current:
65 mA
typical,
120 mA maximum

The Laboratories

11

Keil


Keil

is a company specializing in embedded hardware
and software


It was founded in 1982


Keil

Elektronik

GmbH in Munich,
Germany


Keil

Software, Inc. in Plano,
Texas


In 2005,
Keil

was acquired by ARM Holdings


Web site: www.keil.com




The Laboratories

12

Keil

µVision IDE


Keil

also provides the µVision4 integrated development
environment (µVision4 IDE), which combines


Project management


Source code
editing


Compilation facilities


Debugging facilities


Simulation tools



You can do most of


your development


and testing in the


µVision4 IDE

The Laboratories

13

www.keil.com

Keil

MDK


µVision4 is integrated into the microprocessor
developers kit (MDK) which you can download at:

https
://
www.keil.com/demo/eval/arm.htm



The free version of the software limits you to binaries no


larger than 32
KiB
, as well as other limitations:

http://www.keil.com/demo/limits.asp

The Laboratories

14

Keil

MDK


The installation is straight
-
forward

The Laboratories

15

Keil

MDK


If you object either to the requirement that you must
provide your personal information or the terms of the
licence agreement, you are welcome to use the version
installed on the laboratory computers

The Laboratories

16

Keil

MDK







Install the example

projects for the



Keil

(NXP) MCB 1xxx Boards

The Laboratories

17

Keil

MDK


Finally, be sure to install the ULINK Pro Driver V1.0


The release notes
are located




C:
\
Keil
\
ARM
\
Hlp
\
Release_Notes.htm

The Laboratories

18

Keil

MDK


The µVision4 user’s guide is available online:

http://www.keil.com/support/man/docs/uv4/



It is also available as a downloadable 7
MiB

pdf
:

http://www.keil.com/product/brochures/uv4.pdf


The Laboratories

19

Overview


As a brief overview, we have the following relationships:

The Laboratories

20

Summary


This topic covered the
Keil

MCB1700 board with the
NXP LPC1768
microcontroller implementing the ARM
Cortex
-
M3 design using the
ARMv7
-
M architecture


Keil

is owned by ARM Holdings
plc


ARM Holdings licences the designs to companies like NXP


Keil

provides an MDK including the µVision IDE


These are the tools you will use during the laboratories in this
course

The Laboratories

21