Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2850 dpurdie 1
/******************************************************************************/
2
/* Legacy Linker Command File                                                 */
3
/* Not recommended for use in new projects.                                   */
4
/* Please use the device specific cmd file                                    */
5
/******************************************************************************/
6
 
7
/******************************************************************************/
8
/* msp430f123.cmd                                                             */
9
/*    - Linker Command File for defintions in the header file                 */
10
/*    Please do not change !                                                  */
11
/*                                                                            */
12
/******************************************************************************/
13
 
14
 
15
/************************************************************
16
* STANDARD BITS
17
************************************************************/
18
/************************************************************
19
* STATUS REGISTER BITS
20
************************************************************/
21
/************************************************************
22
* PERIPHERAL FILE MAP
23
************************************************************/
24
/************************************************************
25
* SPECIAL FUNCTION REGISTER ADDRESSES + CONTROL BITS
26
************************************************************/
27
IE1                = 0x0000;
28
IFG1               = 0x0002;
29
IE2                = 0x0001;
30
IFG2               = 0x0003;
31
ME2                = 0x0005;
32
/************************************************************
33
* WATCHDOG TIMER
34
************************************************************/
35
WDTCTL             = 0x0120;
36
/************************************************************
37
* DIGITAL I/O Port1/2
38
************************************************************/
39
P1IN               = 0x0020;
40
P1OUT              = 0x0021;
41
P1DIR              = 0x0022;
42
P1IFG              = 0x0023;
43
P1IES              = 0x0024;
44
P1IE               = 0x0025;
45
P1SEL              = 0x0026;
46
P2IN               = 0x0028;
47
P2OUT              = 0x0029;
48
P2DIR              = 0x002A;
49
P2IFG              = 0x002B;
50
P2IES              = 0x002C;
51
P2IE               = 0x002D;
52
P2SEL              = 0x002E;
53
/************************************************************
54
* DIGITAL I/O Port3
55
************************************************************/
56
P3IN               = 0x0018;
57
P3OUT              = 0x0019;
58
P3DIR              = 0x001A;
59
P3SEL              = 0x001B;
60
/************************************************************
61
* USART
62
************************************************************/
63
/************************************************************
64
* USART 0
65
************************************************************/
66
U0CTL              = 0x0070;
67
U0TCTL             = 0x0071;
68
U0RCTL             = 0x0072;
69
U0MCTL             = 0x0073;
70
U0BR0              = 0x0074;
71
U0BR1              = 0x0075;
72
U0RXBUF            = 0x0076;
73
U0TXBUF            = 0x0077;
74
/************************************************************
75
* Timer A3
76
************************************************************/
77
TAIV               = 0x012E;
78
TACTL              = 0x0160;
79
TACCTL0            = 0x0162;
80
TACCTL1            = 0x0164;
81
TACCTL2            = 0x0166;
82
TAR                = 0x0170;
83
TACCR0             = 0x0172;
84
TACCR1             = 0x0174;
85
TACCR2             = 0x0176;
86
/************************************************************
87
* Basic Clock Module
88
************************************************************/
89
DCOCTL             = 0x0056;
90
BCSCTL1            = 0x0057;
91
BCSCTL2            = 0x0058;
92
/*************************************************************
93
* Flash Memory
94
*************************************************************/
95
FCTL1              = 0x0128;
96
FCTL2              = 0x012A;
97
FCTL3              = 0x012C;
98
/************************************************************
99
* Comparator A
100
************************************************************/
101
CACTL1             = 0x0059;
102
CACTL2             = 0x005A;
103
CAPD               = 0x005B;
104
/************************************************************
105
* Interrupt Vectors (offset from 0xFFE0)
106
************************************************************/
107
/************************************************************
108
* End of Modules
109
************************************************************/