Docsity

Microcontrollers, Schemes and Mind Maps of Microcontrollers

Partial preview of the text

Download Microcontrollers and more Schemes and Mind Maps Microcontrollers in PDF only on Docsity!

Microcontrollers

vs Microprocessors

CSE 466

Microcontrollers

Microprocessors 

Arbitrary computations 

Arbitrary control structures

Arbitrary data structures

Specify function at high-level and use compilers and debuggers

Composed of three parts 

Data-path: data manipulation and storage

Control: determines sequence of actions executed in data-path

and interactions to be had with environment

Interface: signals seen by the environment of the processor

Instruction execution engine: fetch/execute cycle 

Flow of control determined by modifications to program counter

Instruction classes: 

Data: move, arithmetic and logical operations

Control: branch, loop, subroutine call

Interface: load, store from external memory

CSE 466

Microcontrollers

Microprocessor organization 

Controller 

Inputs: from ALU (conditions), instruction read from memory

Outputs: select inputs for registers, ALU operations, read/write to memory

Data-path 

Register file to hold data

Arithmetic logic unit to manipulate data

Program counter (to implement relative jumps and increments)

Interface 

Data to/from memory (address and data registers in data path)

Read/write signals to memory (from control)

CSE 466

Microcontrollers

General-purpose processor 

Programmed by user

New applications are developed routinely

General-purpose 

Must handle a wide range of applications

Interacts with environment through memory 

All devices communicate through memory data

DMA operations between disk and I/O devices

Dual-ported memory (e.g., display screen)

Generally, oblivious to passage of time

CSE 466

Microcontrollers

Microcontrollers (cont’d) 

Other features not usually found ingeneral-purpose CPUs 

Expanded interrupt handling capabilities 

Multiple interrupts with priority and selective enable/disable

Automatic saving of context before handling interrupt

Interrupt vectoring to quickly jump to handlers

More instructions for bit manipulations 

Support operations on bits (signal wires) rather than just words

Integrated memory and support functions for cheapersystem cost 

Built-in Flash and RAM

CSE 466

Microcontrollers

CPU

Memory

Display

(with

dual-port

video RAM)

Disk

I/O

(serial line,

keyboard,

mouse)

Network

Interface

standard interfaces

system bus

all the parts around the

processor are usually required

Typical general-purpose architecture

Sound

Interface

CSE 466

Microcontrollers

How does this change things?

Sense and control of environment 

Processor must be able to “read” and “write” individual wires

Controls I/O interfaces directly

Measurement of time 

Many applications require precise spacing of events in time

Reaction times to external stimuli may be constrained

Communication 

Protocols must be implemented by processor

Integrate I/O device or emulate in software

Capability of using external device when necessary

CSE 466

Microcontrollers

Control

FSM
Z
N
OP
AC
REG

load path store

path

Data Memory

(16-bit words)

OP
PC
IR

data

addr

rd

wr

Inst Memory data(8-bit words)

addr

Block diagram of processor (Harvard)

Register transfer view of Harvard architecture

Separate busses for instruction memory and data memory

Example: PIC

The MSP430: Introduction

Microcontrollers

MSP430: An Introduction 

The MSP430 family

Technology Roadmap

Typical Applications

The MSP430 Documentation

MSP430 Architecture

MSP430 Devices

MSP430 RISC core

CSE 466

Microcontrollers

Part numbering convention CSE 466

F/C41x

Fx42x

Fx42x

F44x

Performance

Integration

Future ProductionSamplingDevelopment

Device

5xx-Next Gen • 25 MIPS• 32-256 KB• USB-RF

F21x

2xx-Catalog • 16 MIPS• 1-120KB• 500nA Stand By

F13x-F14x

1xx-Catalog • 8 MIPS• 1-60KB

Fx43x

F20xx

F12xx

F/C11xx

MSP430 Roadmap

F543x

F = FlashC = Custom ROM

4xx-LCD • 8/16 MIPS• 4-120KB• LCD Driver

F15x-F16x

F5xx RF

F21x

F471x

F23x-F24x

F5xx

F22xx

F261xF241x

CG461x

FG461x

F23x

F563x

USB

F47x

MSP430 modes of operation CSE 466

Microcontrollers

- Active mode (AM) – All clocks are active • Low-power mode 0 (LPM0) – CPU is disabled– MCLK is disabled • Low-power mode 1 (LPM1) – DCO's dc-generator is disabled if DCO not used in active mode • Low-power mode 2 (LPM2) – SMCLK disabled– DCO's dc-generator remains enabled • Low-power mode 3 (LPM3) – DCO's dc-generator is disabled • Low-power mode 4 (LPM4) – ACLK is disabled– Crystal oscillator is stopped

Microcontrollers

MSP 430 Modular Architecture CSE 466