This preview has intentionally blurred sections. Sign up to view the full version.
Unformatted text preview: PXSel 0 =digital I/O or 1 = other function . 0 = usually default PXRen 0 = pullup resistor disabled 1 = enabled PXIE enable interrupts for the port PXIN reads data from port x configured as input PXIN write data to port x configured as output Example: C program and Assembly program – to turn a LED on and off – delay between the 2 states In C program LED is located in Bit 1 using the MSP 430 small launchpad In Assembly program LED is located in Bit 2 using the MSP 430 Lab launchpad A In C: In Assembly:...
View Full Document
- Spring '11
- Assembly Language, Input/output, i/o ports, octal Buffer 74LS244