Vtu Lecture1
Vtu Lecture1
15-09-2011
Acknowledgements
Prof.C.R.Venugopal, Chairman, Board of Studies, VTU for giving us this opportunity Dr.C.P.Ravikumar, Director, University Program at Texas Instruments for co-ordinating this event with VTU My Managers, Venu, Neeraj and Padmini for giving much needed time and support My colleagues at TI for answering most of trivial queries
15-09-2011 2
About me
Education
Diploma in Electronics and Instrumentation, Government Polytechnic College, Kothagudem (19992002) B.Tech in Electronics and Instrumentation, VNR VJIET (affiliated to JNTU), Hyderabad (2002-2005) M.Tech in Instrument Technology, IIT Delhi (20052007)
15-09-2011
Course Contents
Introduction to Low Power Embedded Systems MSP430 Architecture and Families Interrupts and Low Power Modes (LPM) Programming MSP430 using Code Composer Studio (CCS) MSP430 Peripherals Case studies of applications using MSP430
15-09-2011
15-09-2011
15-09-2011
Important terms
Microprocessor Microcontroller Reduced Instruction Set Computer (RISC) Von-Neumann architecture Harvard architecture
15-09-2011
Microprocessor(uP)
CPU
Fetch Decode and Execute logic Accumulator Memory ALU Temporary Registers
Peripherals
15-09-2011
Microcontroller(uC)
CPU
Fetch Decode and Execute logic Accumulator Memory ALU Temporary Registers
Peripherals
15-09-2011
RISC Characteristics
Small set of general purpose instructions Large bank of general purpose registers Load-store architecture Single-cycle execution
15-09-2011
10
Von-Neumann architecture
Also called the Princeton architecture
Data Bus
MDB
CPU
MAB
Address Bus
CPU = Central Processing Unit ROM = Read-Only Memory 15-09-2011 RAM = Random-Access Memory
Source: MSP430 Microcontroller Basics, John H. Davies
11
Harvard architecture
Data Bus
Data Bus
MDB
Code Memory
MDB
CPU
MAB MAB
Data Memory
Address Bus
Address Bus
15-09-2011
12
Embedded Systems
15-09-2011
13
Embedded Systems(1 of 4)
Definition
An Embedded system is one which has both embedded software and hardware which is dedicated for an application or a specific part of an application or part of a larger system
15-09-2011
14
Embedded Systems(2 of 4)
Challenges
Hardware(HW) Software(SW) HW/SW partition or co-design Time requirements
Throughput Latency
15-09-2011 15
Embedded Systems(3 of 4)
Challenges (continued)
Choice of HW
ASIC, FPGA requirement Cost involved
Embedded Systems(4 of 4)
Challenges (continued)
Non-Functional
Time required to compute output Size, weight (Cant make 10kg digital camera/laptop) Power consumption Reliability
Top-down or Bottom-up
15-09-2011
17
Embedded System
Environment
S
CPU
Actuator
Sensor
19
15-09-2011
20
15-09-2011
21
15-09-2011
22
15-09-2011
23
Source : NCERT
24
Courtesy : Sumeendranath (Sumir) and the Chipko team at Texas Instruments (TI) India, 2008
Changing batteries on huge structures like these is not easily Source : www.cs.berkeley.edu/~binetude/ggb/ possible 15-09-2011 25
Courtesy : Maria Cortez at Texas Instruments (TI) Dallas, 2008
Low power very important, especially when there is highrisk in tranquillising for replacing the batteries
15-09-2011
26
15-09-2011
27
15-09-2011
28
15-09-2011
29
Dynamic Power (0
CL gets charged through PMOS Part of the energy is dissipated in PMOS transistor Remaining is stored on load capacitor, CL
1 CLV2dd 2
1 transition)
Vdd ON
icharge
0 Vout
OFF
CL
15-09-2011
EL =
30
Dynamic Power (1
The charge stored on load capacitor, CL gets discharged through the NMOS transistor
0 transition)
Vdd OFF
Vout
ON
idis
CL
Average power dissipation for a switching cycle, Pav = CLV2dd (assuming at 1Hz) If the frequency at which switching happens is f,
15-09-2011
Pav =
CLV2dd f
31
Short-Circuit Power
Vdd
Ipeak
CL
tsc
Leakage Power
Ideally, the static current of a CMOS inverter is ZERO In reality, a small leakage current flows through the reverse biased diode junctions of transistors, located between the source or drain and the substrate
15-09-2011
Vdd Vdd
33
Higher supply voltages reduce delay but increase power consumption (due to quadratic relation) All of the above leads to the need for power saving techniques
15-09-2011 35
15-09-2011
36
Note : Dynamic Voltage Frequency Scaling (DVFS) uses both voltage and frequency scaling for power conservation
15-09-2011
37
15-09-2011
38
More details on how MSP430 achieves low power consumption will be discussed in the Low power modes section of the course
15-09-2011
39
15-09-2011
40
Ease of availability
Availability of development/evaluation boards/IDE Availability from multiple suppliers/companies
Availability of support
Code libraries 15-09-2011 Community support
41
Wrap-Up
15-09-2011
42
Wrap-Up
Discussed important terminology related to embedded systems Understood the need for low power embedded systems An overview of different power saving techniques
15-09-2011
43
MSP430 Resources
Users Guides Datasheets TI Community Forum 100+ Application Reports 1000+ Code Examples Product Brochure MCU Selection Tool Latest Tool Software 3rd Party Listing
Silicon Errata
www.ti.com/msp430
15-09-2011 44
Processor Wiki
Growing collection of technical wiki articles Tips & tricks, common pitfalls, and design ideas http://wiki.msp430.com
15-09-2011
45
BOOKS
15-09-2011
46
References
Introduction to Embedded Systems, by Prof. Santanu Chaudhury, NPTEL Video lecture Power Aware Architecture, by Prof. Santanu Chaudhury, NPTEL Video lecture MSP430 Microcontroller Basics, John H. Davies, Newnes, 2010 Embedded Systems, Raj Kamal, Tata McGrawHill, 2008 Digital Integrated Circuits, A Design Perspective, Jan M.Rabaey, Anantha Chandrakasan, Borivoje Nikolic, Pearson Education, 2003
15-09-2011
47
15-09-2011
48