Chapter 10

advertisement
2.4 RBX430-1
Topics to Cover…



MSP430F2274
RBX430-1 Development Board
Interfaces





ADC10
Ports
USART
I2c
Peripherals





Timer_A/B
Watchdog
FRAM
Switches
Speaker
BYU CS 124
RBX430
2
Ultra-low Power + High-Performance






0.1µA power down
0.8µA standby mode
250µA / 1MIPS
<1µs clock start-up
Zero-power BOR
<50nA pin leakage
BYU CS 124





RBX430
Modern 16-bit RISC CPU
1K to 128KB+ ISP Flash
14- to 100-pin options
Intelligent peripherals boost
performance
Embedded emulation
3
MSP430F2274
MSP430 Typical Applications
Handheld Measurement
 Air Flow measurement
 Alcohol meter
 Barometer
 Data loggers
 Emission/Gas analyser
 Humidity measurement
 Temperature
measurement
 Weight scales
Medical Instruments
 Blood pressure meter
 Blood sugar meter
 Breath measurement
 EKG system
BYU CS 124
Utility Metering
Home environment
 Gas Meter
 Air conditioning
 Water Meter
 Control unit
 Heat Volume Counter
 Thermostat
 Heat Cost Allocation
 Boiler control
 Electricity Meter
 Shutter control
 Meter reading system (RF)  Irrigation system
 White goods
Sports equipment
(Washing machine,..)
 Altimeter
 Bike computer
Misc
 Diving watches
 Smart card reader
 Taxi meter
Security
 Smart Batteries
 Glass break sensors
 Door control
 Smoke/fire/gas detectors
RBX430
4
MSP430F2274
IMPORTANT!!!
Beware of static electricity, don't touch the components directly.
Never disconnect a target board from the USB programmer if still
plugged into the computer or from the battery unit with jumper on.
Otherwise you destroy the board!
BYU CS 124
RBX430
5
Development Board
Computrol Facilities
BYU CS 124
RBX430
6
Development Board
Printed Circuit Boards
BYU CS 124
RBX430
7
Development Board
Apply Solder Paste
BYU CS 124
RBX430
8
Development Board
Robots Place Parts
BYU CS 124
RBX430
9
Development Board
Discrete Parts Added
BYU CS 124
RBX430
10
Development Board
Flow Soldered
BYU CS 124
RBX430
11
Development Board
276 Solder Bath
BYU CS 124
RBX430
12
Development Board
Final Inspection
BYU CS 124
RBX430
13
Development Board
MSP430F2274
BYU CS 124
RBX430
14
Development Board
RBX430-1 Development Board
External Power
Ferrite RAM
8-bit Port
External Battery
Real-time Clock
w/crystal
LaunchPad
USB Hookup
Accelerometer
MSP430F2274
Potentiometers
Power Source
Digital
Thermometer
Headphone
Jack
Speaker
BYU CS 124
Servo Hookups
160 x 160
Pixel LCD
Push Buttons
RBX430
LEDs
15
Development Board
RBX430-1 Hookups
J15 Header
(External 6VDC)
J8 Header
(Ports)
J9 Header
(8-bit I/O)
J16 Header
Servo Power
(Rev E only)
J1 Header
(External Battery)
J2-J5 Header
(Servos)
J7 Header
(Strain relief end)
Cross-over Cable
(Rev D only)
J12 Header
(Enable RTC)
USB Cable
J6 GND to Vcc
BYU CS 124
RBX430 Power Switch
(EXT, BAT, USB)
Use USB to Program Board
RBX430
J3 Header
(Disable Speaker)
16
Development Board
RBX430-1 Pin-outs
Pin Description
I/O
Name
Board Description
31
32
33
34
35
36
37
38
P1.0 (TACLK/ADC10CLK)
P1.1 (TA0)
P1.2 (TA1)
P1.3 (TA2)
P1.4 (SMCLK/TCK)
P1.5 (TA0/TMS)
P1.6 (TA1/TDI)
P1.7 (TA2/TD0/TDI)
I
I
I
I
I
I
O
O
SW1
SW2
SW3
SW4
INT1
INTA
SVO1
SVO2
SW_1
SW_2
SW_3
SW_4
ADXL345 INT1
AUX INT
Servo #1 (J2)
Servo #2 (J3)
8
9
10
29
30
3
6
5
P2.0 (ACLK/A0/OAxx)
P2.1 (SMCLK/A1/OAxx)
P2.2 (TA0/A2/OAxx)
P2.3 (TA1/A3)
P2.4 (TA2/A4)
P2.5
XIN/P2.6
XOUT/P2.7
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
LCD_DB0
LCD_DB1
LCD_DB2
LCD_DB3
LCD_DB4
LCD_DB5
LCD_DB6
LCD_DB7
11
12
13
14
25
26
27
28
P3.0 (UCB0STE/A5)
P3.1 (UCB0SIMO/UCB0SDA)
P3.2 (UCB0SOMI/UCB0SCL)
P3.3 (UCB0CLK)
P3.4 (UCA0TXD/UCA0SIMO)
P3.5 (UCA0RXD/UCA0SOMI)
P3.6 (A6/OAxx)
P3.7 (A7/OAxx)
O
I/O
O
O
O
I
I
I
LCD_A0
SDA
SCL
LCD_RW
TX/D5
RX
RPOT
LPOT
LCD_A0
i2c Data
I2c Clock
LCD_RW
TXD0 / LED_5 (Green)
RXD0
Right Potentiometer
Left Potentiometer
17
18
19
20
21
22
23
24
P4.0 (TB0)
P4.1 (TB1)
P4.2 (TB2)
P4.3 (TB0/A12/OAxx)
P4.4 (TB1/A13/OAxx)
P4.5 (TB2/A14/OAxx)
P4.6 (TBOUTH/A15/OAxx)
P4.7 (TBZCLK)
O
O
O
O
O
O
O
O
D1
D2/SVO3
D3/SVO4
D4
Q1
U5
D6
LCD_E
LED_1 (Green)
LED_2 (Orange) / Servo #3 (J4)
LED_3 (Yellow) / Servo #4 (J5)
LED_4 (Red)
LCD_Backlight
Speaker
LED_6 (Red)
LCD_E
BYU CS 124
Function
J7
J8
J9
LCD
3
4
5
6
Push button
Switches
TA1 – PWM
TA2 – PWM
LCD_DB0
LCD_DB1
LCD_DB2
LCD_DB3
LCD_DB4
LCD_DB5
LCD_DB6
LCD_DB7
RBX430
J6
Servos
26
25
24
23
22
21
20
19
160 x 160
Pixel LCD
i2c
i2c
I2c Communication
FRAM, RTC,
Temp,
7
28
8
Accelerometer, I/O
TX 
RX 
A6 – A/D
A7 – A/D
TB1 – PWM
TB2 – PWM
TB1 – PWM
TB2 – PFM
9
10
11
12
27
6
6
1Potentiometers
8
11
LEDs
13
14
15
16
LCD Backlight
Speaker
10
17
Computer Peripherals
Computer Peripherals/Interfaces

A computer peripheral is an electronic device connected
to the CPU via a computer interface.





Printer
LCD
Disk
Real-time Clock
A computer interface is an electronic device that
connects the CPU with a computer peripheral.





Serial Port
Parallel Port
A/D or D/A Convertor
Voltage Amplifier
JTAG or Spy-by-wire
BYU CS 124
RBX430
18
Interfaces / Peripherals
RBX430-1 Interfaces / Peripherals

A/D Converter (ADC10)










Potentiometers (Left & Right)
Thermistor (10k )
Operational Amps (OA0-3)
Ports (P1-P4)






LEDs
Switches
LCD
LCD Backlight
Servos
Speaker






USART – Universal Serial
Asynchronous Rx/Tx
SPI – Serial Peripheral
Interface
IrDA – Infrared Data
i2c – Inter-Integrated Circuit


Digitally Controlled Oscillator (DCO)
Very Low Frequency Oscillator (VLO)
4.5v AC Line Power

4.5v DC Battery Power
BYU CS 124
PWM LEDs
PWM Servos
PWM Speaker
USCI A/B

Power Module

Timers A/B
RBX430



FRAM (8k)
3 Axis Accelerometer
RTC (w/battery backup)
Temperature Sensor
8-bit I/O Parallel Port
Watchdog+
19
Peripheral Interface
ADC10
High-performance 10-bit
analog-to-digital conversions
• More than 200k samples/sec
• Programmable sample & hold
• Initiation by software or Timer_A
• 8 external input channels
• Selectable voltage reference
(1.5v or 2.5v)
• Internal storage
BYU CS 124
RBX430
20
Peripheral Interface
Ports - Digital I/O
Independently programmable individual I/Os
Port1
Port3
Port2
Port4
Function Select Register PxSEL
yes
yes
Interrupt Edge Select Register PxIES
yes
no
Interrupt Enable Register PxIE
yes
no
Interrupt Flag Register PxIFG
yes
no
Direction Register PxDIR
yes
yes
Output Register PxOUT
yes
yes
yes
yes
• 4 ports (P1 – P4)
• Each has 8 I/O pins
• Each pin can be
configured as input or
output
• P1 and P2 pins can be
configured to assert an
interrupt request
BYU CS 124
Input Register PxIN
7
6
RBX430
5
4
3
2
1
0
21
Peripheral Interface
USART - Serial Port
The Universal Synchronous/Asynchronous Receive/Transmit
peripheral interface supports
two serial modes with
one hardware module
• UART
• SPI (Synchronous Peripheral
Interface)
• IrDA
• I2C (Inter-Integrated Circuit)
• Double-buffered
• Baud-rate generator
BYU CS 124
RBX430
22
Peripheral Interface
i2c – Inter-Integrated Circuit

Inter-Integrated Circuit




2-wire serial interface (Serial data SDA, Serial clock SCL)
master/slave (slaves have unique 7-bit address)
100-400 kbit/sec (relatively slow)
Slave
acknowledgment
Master provides clock
Stop
condition
Start
condition
BYU CS 124
Read SDA
Write SDA
RBX430
SDA stable
SDA may change
23
Peripherals
A computer peripheral is a auxiliary device that
connects to and works with a computer.
A peripheral expands the computer's capabilities but
does not form part of the core computer architecture.
Peripheral
Timer_A/B
Timer_A/B are 16-bit
timer/counters with three
capture/compare registers
• Capture external signals
• Compare PWM mode
• SCCI latch for
asynchronous
communication
BYU CS 124
RBX430
25
Peripheral
Watchdog Timer
WDT module performs a
controlled system restart
after a software problem
occurs
• Can serve as an interval timer
(generates interrupts)
• WDT Control register is
password protected
• Note: Powers-up active
BYU CS 124
RBX430
26
Peripheral
FRAM (Ferrite RAM)

Ferro-electric Non-volatile RAM







i2c serial bus, address 0x50
8192 x 8 bits
100 times faster than flash using half
the power
Ultra-fast writes
Unlimited R/W cycles (1014 = 100
Trillion)
Immune to magnetic fields – no iron!
Addresses 21st century macro trends




BYU CS 124
Wireless
Low Power
Security
Endurance
RBX430
27
Peripheral
MSP430F2274
Switches
BYU CS 124
RBX430
28
Peripheral
MSP430F2274
Speaker
BYU CS 124
RBX430
29
BYU CS 124
RBX430
30
Download