Main Page | File List | Globals

dio.c File Reference

#include <msp430x16x.h>

Include dependency graph for dio.c:

Include dependency graph

Go to the source code of this file.

Functions

void init_dio (void)


Function Documentation

void init_dio void   ) 
 

P1 Usage
PinFunctionDirectionSelect
P1.0FDType
P1.1FDType
P1.2FDType
P1.3FDType
P1.4FDType
P1.5FDType
P1.6FDType
P1.7FDType

P2 Usage
PinFunctionDirectionSelect
P2.0FDType
P2.1FDType
P2.2FDType
P2.3FDType
P2.4FDType
P2.5FDType
P2.6FDType
P2.7FDType

P3 Usage
PinFunctionDirectionSelect
P3.0FDType
P3.1FDType
P3.2FDType
P3.3FDType
P3.4FDType
P3.5FDType
P3.6FDType
P3.7FDType

P4 Usage
PinFunctionDirectionSelect
P4.0FDType
P4.1FDType
P4.2FDType
P4.3FDType
P4.4FDType
P4.5FDType
P4.6FDType
P4.7FDType

P5 Usage
PinFunctionDirectionSelect
P5.0DType
P5.1FDType
P5.2FDType
P5.3FDType
P5.4FDType
P5.5FDType
P5.6FDType
P5.7FDType

P6 Usage
PinFunctionDirectionSelect
P6.0FDType
P6.1FDType
P6.2FDType
P6.3FDType
P6.4FDType
P6.5FDType
P6.6FDType
P6.7FDType

Definition at line 47 of file dio.c.

Referenced by init_bsp().

00047                     {
00062   P1DIR = 0x00;
00063 
00078   P2DIR = 0x70;
00079 
00080 
00095   P3SEL = 0xF0; // Select pins 3.4-3.7 as serial port pins 
00096   P3DIR = 0x5F; // Make both serial TX pins (3.4 and 3.6) outputs.   
00097   P3OUT = 0x0F;   // 1 for full rate, 0 for divide by 8 
00098 
00113   P4SEL = 0x0F;
00114   P4DIR=0xF0;
00115 
00130   P5DIR=0xFF;
00131   P5OUT=0xFF;   // do NOT use bit 4 (set to 0) as it will kill speed sensors. 
00132 
00147   P6SEL = 0xFF; // select all of the P6/analog pins as alternate function 
00148   P6DIR=0x00;
00149 }


Generated on Fri Nov 3 14:40:12 2006 for hwiflib by  doxygen 1.3.9.1