Page 1
CÂU LẠC BỘ NGHIÊN CỨU KHOA HỌC KHOA ĐIỆN-ĐIỆN TỬ
ĐH BÁCH KHOA TP. HỒ CHÍ MINH
Page 2
1
• MCUs & MSP430G2553
2
• C programming & IDE CCS v5.2
3
• GPIO in MSP430
4
• Discussion & Homework
Page 3
Page 4
Requirement:
a. Blink a LED every 1s
b. Turn on a led when button is pushed
c. Timer, ADC, UART, Interrupt, SPI, I2C…
d. ….
Solution: Micro Controller Unit
- Integrated circuits
- Programmable
Page 5
Core:
8b, 16b,
32b,64b
GPIO
Timer
ADC
UART
SPI
…
µP:
MSP430, 8051,PIC,ARM,…
Peripherals
µC:
MSP430, LPC1114,
PIC16F887, …
Page 6
- Simple: hardware & software
- Enough: price , peripherals,…
- Developing <-> TI Vietnam
• 16kB Flash
• 512B RAM
• 2 Timer_A3’s
• 8 Ch. Comp_A+
• 8 Ch. ADC10
• USCI
Page 7
Page 8
Page 9
Package:
• TSSOP: 20 Pin, 28 Pin
• PDIP: 20 Pin
• QFN: 32 Pin
Low Supply-Voltage Range
o 1.8 V to 3.6 V
Ultra-Low Power Consumption
16-Bit RISC Architecture, 62.5-ns Instruction Cycle Time
Basic Clock Module Configurations
o Internal Frequencies up to 16 MHz With Four Calibrated Frequency
o Internal Very-Low-Power Low-Frequency (LF) Oscillator
o 32-kHz Crystal
o External Digital Clock Source
Page 10
Page 11
Embedded Emulation
6-pin eZ430
Connector
Part and Socket
Crystal Pads
Power Connector
Reset Button
LEDs and Jumpers
P1.0 & P1.6
P1.3 Button
Chip
Pinouts
USB Emulator
Connection
Page 12
MCU
Debugger
Debugger
MCU
Page 13
Page 14
I want…
Programming in C Compiler
Page 15
Page 16