How To Setup MSP430 Ports

How To Setup MSP430 Ports - How To Setup MSP430 Ports. The...

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

View Full Document Right Arrow Icon
How To Setup MSP430 Ports. .. The most straightforward form of input/output of the MSP430 is through the digital input/output ports. The following table summarizes the control registers for ports P1, P2, P3, and P4 of the MSP430F2274: PxDIR Port Px Direction Clearing a bit configures a pin as an input while setting a bit configures a pin for output. PxREN Port Px Resistor Enable Setting a bit activates an internal pull-up/pull-down resistor on a pin. The corresponding bit in the PxOUT register selects pull-up if set to one or pull-down if set to zero. PxSEL Port Px Selection Clearing a bit configures a pin as a digital input/output (GPIO), while setting a bit selects an alternative function. *PxIE Port Px Interrupt Enable Setting a bit enables an interrupt when the input pin changes. *PxIES Port Px Interrupt Edge Select Interrupts can be generated on either a positive edge (low to high) or negative edge (high to low) change of an input pin. *PxIFG
Background image of page 1

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

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

Page1 / 3

How To Setup MSP430 Ports - How To Setup MSP430 Ports. The...

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

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