You are on page 1of 13

8/5/2013

MLab - Embedded Solutions


a ch: S 19 ng 204, L Thanh Ngh, Hai B Trng, H Ni

MLab Embedded Solutions


www.mlab.com.vn

MSP430 cn bn

MLab Embedded Solutions


www.mlab.com.vn

8/5/2013

Ni dung
1. Gii thiu v MSP430
2. Gii thiu v phn mm CCS v Grace
3. Cng vo ra (GPIO)
Lab 1: Nhp nhy LED

4. Module to clock
Lab 2: Thay i tn s clock ca h thng

Gii thiu v MSP430


Lch s pht trin
c im ni bt
Cu trc bn trong
Cc ng dng tiu biu
Cng c pht trin phn cng v phn mm
nh hng l trnh nghin cu

8/5/2013

Gii thiu v MSP430 (tip)


Lch s pht trin
Hng sn xut: Texas Instruments (www.ti.com)
Ngy sinh: 14/02/1994
Ngy k nim hng nm: 30/4
Khi im l 1 chip MCU c t hng thit k
cho mt ng dng o kh Gas ti chu u
Nhn c rt nhiu gii thng quc t do cc
hip hi khoa hc, tp ch khoa hc trao tng

Gii thiu v MSP430 (tip)


c im ni bt
Cng sut tiu th nng lng siu thp
Tch hp nhiu ngoi vi tnh nng cao
Rt a dng v chng loi chip, ph hp vi s
la chn cho hu ht cc loi ng dng
Thi gian tip cn v pht trin ng dng rt ngn

8/5/2013

Gii thiu v MSP430 (tip)


Cu trc bn trong
ADC10/12/16/24-bit
DAC12-bit
Op Amp, LCD driver
RF transceiver
AES128
Capacitive touch IO
USB2.0, Real Time Clock
B nh FRAM
7

Gii thiu v MSP430 (tip)


Utility Metering
Electricity Meters
Gas Meters
Flow Meters
Smart Meters

Wireless Applications
Remote Sensors
Communication
Controllers
RFID

Consumer Electronics
Portable Electronics
Remote Controls
Personal Care
PC peripherals

Portable Medical

ng dng tiu biu


Thousands of applications are
enabled by MSP430 MCUs
Differentiation is possible with MSP430 MCUs
Ultra-Low Power performance, high analog &
digital peripheral integration, and easy-to-use tool
chain.

Energy Harvesting
Renewable Energy
Battery-less devices
Solar, thermal,
vibration, etc

Blood Glucose Meters


Thermometers
Heart-Rate Monitors
Implantable Devices

Sensors & Security


Smoke Detector
Motion Detector
Vibration Detector
Smart Sensors

Personal Health &


Fitness
Sports Watches
Pedometers
Calorimeters
Dive watches

8/5/2013

Gii thiu v MSP430 (tip)


Ultra-Low Power
F1xx

8MHz
1-60kB Flash
Up to 10kB RAM
Up to 48 GPIO
ADC10/12
Comp, DAC12, Timers,
DMA, MPY. USART

Value Line

Ultra-Low Energy
F2xx

16MHz
1-120kB Flash
Up to 8kB RAM
Up to 64 GPIO
ADC10/12
SD16, Comp, DAC12,
Timers, DMA, MPY,
OpAmp, USCI, USI

F4xx

F5xx

F6xx

FR57xx

Metering/
Medical

USB

USB+LCD

Emb. FRAM

8/16MHz
4-120kB Flash
Up to 8kB RAM
Up to 80 GPIO
ADC10/12
SD16, Comp,
DAC12, Timers, DMA,
MPY, OpAmp, USCI,
USART, ESP430, ScanIF

Emb. RF

25MHz
8-256kB Flash
Up to 18kB RAM
Up to 87 GPIO
ADC10, Comp,
DAC12, PMM, Timers,
DMA, MPY, USCI, USB,
5V I/O, Hi-res PWM

CC430

L092

CapSense
I/O & USCI

MCU+RF
SoC

Native 0.9V

20MHz
8-32kB Flash
Up to 4kB RAM
Up to 44 GPIO
ADC12, PMM, Comp,
MPY, DMA, USCI, emb.
RF, LCD

24MHz
4-16kB FRAM
Up to 1kB RAM
Up to 33 GPIO
ADC10, Comp, Timers,
DMA, MPY, USCI,
FRAM, MPU

16MHz
32-64kB FRAM
Up to 1kB RAM
Up to 40 GPIO
ADC12, Comp, Timers,
CRC16, AES256,
CapTouch I/O, DMA,
MPY, USCI, FRAM,
MPU
Coming soon

Low Voltage

G2xx3

16MHz
0.5-16kB Flash
Up to 512 B RAM
Up to 24 GPIO
ADC10, Comp, Timers,
USCI, CapTouch I/O

25MHz
8-256kB Flash
Up to 18kB RAM
Up to 74 GPIO
ADC10/12, SD24,
Comp, Timers, DAC12,
PMM, DMA, MPY,
USCI, USB, LCD

FR59xx
Wolverine

4MHz
Up to 2kB RAM or
ROM
Up to 11 GPIO
Analog Pool (ADC8,
DAC8, Comp, SVS),
Timers, Native 0.9V
operation

Ultra-Low Power - High integration - Easy-to-use tools

MSP430

Utility
Meters

Wireless &
Automotive

Portable
Medical

Consumer
Electronics

Health &
Fitness

Sensors &
Security

ti.com/msp430

Gii thiu v MSP430 (tip)


Cc dng packages

10

8/5/2013

Gii thiu v MSP430 (tip)


LaunchPad & BoosterPack Ecosystem
Complete development kit for $9.99

MSP-EXP430G2 LaunchPad provides all of


the HW and SW needed to get started!
Supports MSP430G2xx Value Line MCUs
Features:
On-board emulation
20-pin DIP socket
On-board LEDs & switches
Includes 2 MCUs
MSP430G2553
Blast off @
MSP430G2452

ti.com/launchpad

Growing Ecosystem of BoosterPacks

Many plugin modules are available, with more coming soon!


Featuring Capacitive Touch, Wireless & other technologies!

eZ430 Starter Kits

Experimenters Boards
Highly integrated development kits for evaluating MSP430 devices
Experimenters Bpards featire selected MSp430 devices and additional hardware
components for easy system evaluation and prototyping!
Perfect for learning a new architecture or testing the capabilities of a device family.
F5529 USB Experimenters Board
- Based on MSP430F5529
- Complete USB development kit
- On-board emulation
- SD card reader, captouch & more!
- $149

CC430 Experimenters Board


- Based on CC430 MCU+RF SoC
- Includes a Base Board & Daughter
Board
- On-board emulation
- Complete RF development kit
- $149

FRAM Experimenters Board


- Based on MSP430FR5739
- Featuring unique FRAM memory
- On-board emulation
- On-board sensors
- $49

See them all @


ti.com/msp430tools

Target Boards & Emulation Tools

Features onboard emulation and unique form factors.


Embedded Emulation means smaller form factors,
allowing the kit to be the same size as a USB stick, and
only require 2 pins for programming/debugging.
eZ430-RF2500
- Based on MSP430F2274
- Plus CC2500 2.4GHz RF
- On-board switch & LED
- $49

eZ430-Chronos
- Based on CC430
- Sub-1GHz RF
- Integrated sensors
- Reprogrammable
- $49

See them all @


ti.com/ez430

One tool to rule them all. MSP430 Flash Emulation Tool


The MSP-FET430UIF can program & debug all MSP430 devices when paired with the
appropriate target board. Target boards are available for all MSP430 devices, and feature a
ZIF target socket for interfacing with various pinouts and package types.
Production programmers, such as the MSP-GANG are also available. These kits enable
quicker time to market and can program 8 targets at once!
MSP-FET430UIF

eZ430-F2013
- Based on MSP430F2013
- Detachable target board
- On-board switch & LED
- $20

MSP-TS430xyz

MSP-FET430Uxyz

11

Gii thiu v MSP430 (tip)


MSP430 IDEs

MSP430Ware A collection of MSP430 resources


Windows & Linux support
-

Featuring MSP430Ware
Grace
ULP Advisor
More

Continued collaboration with IAR


-

Integrating MSP430Ware content into IAR


Up-to-date device support

Increased support for MSPGCC


-

Free, Open Source & community-supported


Up-to-date device support
Coming soon code examples, projects &
other resources

Software Tools for Ultra-Low Power (ULP)

Everything you need to become an MSP430 expert delivered in an


intuitive & sleek GUI.
Find documentation & software resources quickly & easily:
Featuring Brand New Driver Library
C Code Examples
Grace templates
Datasheets
User Guides
HW Design Files
Now available!!! Integrated into CCSv5.2 and later

Other MSP430 Software Tools


GraceTM Code Generation Tool for enabling &
configuring GPIO and peripherals. Integrated
into CCSv5

ULP AdvisorTM
-

Checks your code against a ULP Checklist


Currently 15 ULP Rules, with a growing backlog of new rules
Highlights areas of improvement and points to helpful
resources such as code examples, documentation & more
Integrated into CCSv5.1 and later

EnergyTraceTM
-

During debug, EnergyTrace


reports back current status of the
CPU, peripherals & timers.
Allows developers to correlate
power-relevant information to the
MCU program code
Coming Soon

RTOS

Other software packages include:


Capacitive touch library
Energy Library (AFE2xx)
USB Developers Package
RF software resources

See the complete portfolio of MSP430 Software Tools @

ti.com/msp430software

12

8/5/2013

Gii thiu v MSP430 (tip)


Ti liu v cng ng
Trang web chnh: www.ti.com/msp430
Blogs
TI Blog: www.ti.com/430blog
Community Blog: www.43oh.com

E2E Forums:
http://e2e.ti.com
http://diendanti.com

13

Gii thiu v MSP430 (tip)


nh hng l trnh hc tp, nghin cu
Cn bn: MSP430 Value line
Nng cao: MSP430F5xxx
Theo chuyn , ng dng:
Thit k phm bm kiu cm ng in dung
Thit k giao din ha
Lu tr d liu trn th nh SD
Gim st, iu khin bng mng wifi
Gim st, iu khin bng mng RF
Nhng h iu hnh thi gian thc (RTOS)

14

8/5/2013

Gii thiu MSP430 LaunchPad


USB Emulator
Connection

Embedded Emulation
16kB Flash
512B RAM
2 Timer_A3s
8 Ch. Comp_A+
8 Ch. ADC10
USCI

6-pin eZ430
Connector
Crystal Pads
Chip
Pinouts

Part and Socket

Power Connector

P1.3 Button
LEDs and Jumpers
P1.0 & P1.6

Reset Button

15

Gii thiu v CCS


CCS = Code Composer Studio (www.ti.com/ccs)
Hng pht trin: Texas Instruments
L IDE (Integrated Development Environment)
cho tt c cc dng chip vi x l, vi iu khin v
DSP ca TI
C phin bn gii hn dung lng code (16 hoc
32KB) v phin bn gii hn thi gian s dng (90
days)

16

8/5/2013

Gii thiu v Grace


L cng c phn mm dng giao din
ha, cho php ngi dng cu hnh cc ngoi vi
ca MSP430 mt cch rt d dng v nhanh
chng (www.ti.com/grace)
Hon ton min ph
c tch hp sn trong CCSv5.x
C bn chy c lp c th s dng vi cc
IDE khc nh IAR
17

Bi thc hnh s 1 (GPIO)


C s l thuyt (ti liu MSP430x2xx
Family Users Guide, chng 8 Digital I/O)
Thanh ghi P1DIR: nh hng ca chn cng
(0 = vo, 1 = ra)
Thanh ghi P1OUT: cha mc logic ca u ra
(1 = a ra in p cao, 0 = a ra in p thp)

18

8/5/2013

Bi thc hnh s 1 (GPIO)


Lab 1: Nhp nhy mt trong cc LED ni vi
cc tn hiu P1.0 & P1.6 (1 = sng, 0 = tt)
Thanh ghi P1DIR =
Thanh ghi P1OUT =
To tr bng phn mm, c th s dng hm c
sn ca IDE __delay_cycles(s chu k)

19

Bi thc hnh s 1 (GPIO)

Lab 1:
Nhy LED1 hoc LED2
Thay i s chu k

20

10

8/5/2013

Bi thc hnh s 2 (Clock)


Cn phn bit cc khi nim: Clock source
v clock signal
Clock source l ngun cung cp dao ng u
vo cho module to xung nhp
Clock signal l xung nhp c to ra u ra

21

Bi thc hnh s 2 (Clock)


C s l thuyt
(ti liu
MSP430x2xx
Family Users
Guide,
chng Basic
Clock Module)

22

11

8/5/2013

Bi thc hnh s 2 (Clock)


Clock sources:
Thch anh (Crystal)
Dao ng ngoi (External clock)
Dao ng ni: DCO (tn s cao), VLO (tn s thp)

Clock signals:
MCLK: dng cho CPU v h thng
SMCLK: dng cho cc ngoi vi
ACLK: dng cho cc ngoi vi

MSP430 cn chnh sn mt s tn s dao


ng ni ph bin nh 1MHz, 8MHz, 12MHz,
16MHz
23

Bi thc hnh s 2 (Clock)

Lab 2: Thay i
clock ca bi
thc hnh s 1
8MHz
16MHz

24

12

8/5/2013

Thank you !!!

MLab Embedded Solutions


www.mlab.com.vn

25

13

You might also like