lec1-6-MoreIO

lec1-6-MoreIO - WPI ECE2801 Foundations of Embedded Systems...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
WPI ECE2801 Foundations of Embedded Systems Lecture 6: More Basic I/O using the MSP430F449
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 6 Review: Digital I/O Six independent, individually configurable digital I/O ports, P1 thru P6 Each port is 8 bits wide Each pin of each port can be configured individually as either input or output Each pin of each port can be individually read or written to Ports 1 and 2 are interruptible, ports 3,4,5,6 are non-interruptible. Each port is controlled by 4 byte-addressable registers. PxDIR, PxIN, PxOUT, PxSEL Three other byte-addressable registers for interruptible I/O ports P1 and P2. The LEDs control in demo.c
Background image of page 2
Lecture 6 LEDs Control Four LEDs L0, L1, L2, L3 are connected to P2.4, P2.5, P2.6, P2.7. Set P2.4-7 as output ( P2DIR =b’xxxx1111’, P2SEL =b’xxxx0000’) Place a low (logic 0) output on a bit of P2OUT will light up the corresponding LED. ( P2OUT
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

lec1-6-MoreIO - WPI ECE2801 Foundations of Embedded Systems...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online