1 |
141 |
olivier.gi |
/*===========================================================================*/
|
2 |
|
|
/* Copyright (C) 2001 Authors */
|
3 |
|
|
/* */
|
4 |
|
|
/* This source file may be used and distributed without restriction provided */
|
5 |
|
|
/* that this copyright statement is not removed from the file and that any */
|
6 |
|
|
/* derivative work contains the original copyright notice and the associated */
|
7 |
|
|
/* disclaimer. */
|
8 |
|
|
/* */
|
9 |
|
|
/* This source file is free software; you can redistribute it and/or modify */
|
10 |
|
|
/* it under the terms of the GNU Lesser General Public License as published */
|
11 |
|
|
/* by the Free Software Foundation; either version 2.1 of the License, or */
|
12 |
|
|
/* (at your option) any later version. */
|
13 |
|
|
/* */
|
14 |
|
|
/* This source is distributed in the hope that it will be useful, but WITHOUT*/
|
15 |
|
|
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
16 |
|
|
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
|
17 |
|
|
/* License for more details. */
|
18 |
|
|
/* */
|
19 |
|
|
/* You should have received a copy of the GNU Lesser General Public License */
|
20 |
|
|
/* along with this source; if not, write to the Free Software Foundation, */
|
21 |
|
|
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
|
22 |
|
|
/* */
|
23 |
|
|
/*===========================================================================*/
|
24 |
|
|
/* MEMORY DEFINITION FILE */
|
25 |
|
|
/*---------------------------------------------------------------------------*/
|
26 |
|
|
/* */
|
27 |
|
|
/* Author(s): */
|
28 |
|
|
/* - Olivier Girard, olgirard@gmail.com */
|
29 |
|
|
/* */
|
30 |
|
|
/*---------------------------------------------------------------------------*/
|
31 |
|
|
/* $Rev: 19 $ */
|
32 |
|
|
/* $LastChangedBy: olivier.girard $ */
|
33 |
|
|
/* $LastChangedDate: 2009-08-04 23:47:15 +0200 (Tue, 04 Aug 2009) $ */
|
34 |
|
|
/*===========================================================================*/
|
35 |
|
|
|
36 |
|
|
/*---------------------------------------------------------------------------*/
|
37 |
|
|
/* SFR */
|
38 |
|
|
/*---------------------------------------------------------------------------*/
|
39 |
|
|
.set IE1, 0x0000
|
40 |
|
|
.set IE1_HI, 0x0001
|
41 |
|
|
.set IFG1, 0x0002
|
42 |
|
|
.set IFG1_HI, 0x0003
|
43 |
|
|
.set CPU_ID_LO, 0x0004
|
44 |
|
|
.set CPU_ID_HI, 0x0006
|
45 |
154 |
olivier.gi |
.set CPU_NR, 0x0008
|
46 |
141 |
olivier.gi |
|
47 |
|
|
/*---------------------------------------------------------------------------*/
|
48 |
|
|
/* GPIOs */
|
49 |
|
|
/*---------------------------------------------------------------------------*/
|
50 |
|
|
.set P1IN, 0x0020
|
51 |
|
|
.set P1OUT, 0x0021
|
52 |
|
|
.set P1DIR, 0x0022
|
53 |
|
|
.set P1IFG, 0x0023
|
54 |
|
|
.set P1IES, 0x0024
|
55 |
|
|
.set P1IE, 0x0025
|
56 |
|
|
.set P1SEL, 0x0026
|
57 |
|
|
|
58 |
|
|
.set P2IN, 0x0028
|
59 |
|
|
.set P2OUT, 0x0029
|
60 |
|
|
.set P2DIR, 0x002A
|
61 |
|
|
.set P2IFG, 0x002B
|
62 |
|
|
.set P2IES, 0x002C
|
63 |
|
|
.set P2IE, 0x002D
|
64 |
|
|
.set P2SEL, 0x002E
|
65 |
|
|
|
66 |
|
|
.set P3IN, 0x0018
|
67 |
|
|
.set P3OUT, 0x0019
|
68 |
|
|
.set P3DIR, 0x001A
|
69 |
|
|
.set P3SEL, 0x001B
|
70 |
|
|
|
71 |
|
|
.set P4IN, 0x001C
|
72 |
|
|
.set P4OUT, 0x001D
|
73 |
|
|
.set P4DIR, 0x001E
|
74 |
|
|
.set P4SEL, 0x001F
|
75 |
|
|
|
76 |
|
|
.set P5IN, 0x0030
|
77 |
|
|
.set P5OUT, 0x0031
|
78 |
|
|
.set P5DIR, 0x0032
|
79 |
|
|
.set P5SEL, 0x0033
|
80 |
|
|
|
81 |
|
|
.set P6IN, 0x0034
|
82 |
|
|
.set P6OUT, 0x0035
|
83 |
|
|
.set P6DIR, 0x0036
|
84 |
|
|
.set P6SEL, 0x0037
|
85 |
|
|
|
86 |
|
|
/*---------------------------------------------------------------------------*/
|
87 |
|
|
/* BASIC CLOCK MODULE */
|
88 |
|
|
/*---------------------------------------------------------------------------*/
|
89 |
|
|
.set BCSCTL1, 0x0057
|
90 |
|
|
.set BCSCTL2, 0x0058
|
91 |
|
|
|
92 |
|
|
/*---------------------------------------------------------------------------*/
|
93 |
|
|
/* WATCHDOG TIMER */
|
94 |
|
|
/*---------------------------------------------------------------------------*/
|
95 |
|
|
.set WDTCTL, 0x0120
|
96 |
|
|
|
97 |
|
|
/*---------------------------------------------------------------------------*/
|
98 |
|
|
/* HARDWARE MULTIPLIER */
|
99 |
|
|
/*---------------------------------------------------------------------------*/
|
100 |
|
|
.set MPY, 0x0130
|
101 |
|
|
.set MPYS, 0x0132
|
102 |
|
|
.set MAC, 0x0134
|
103 |
|
|
.set MACS, 0x0136
|
104 |
|
|
.set OP2, 0x0138
|
105 |
|
|
.set RESLO, 0x013A
|
106 |
|
|
.set RESHI, 0x013C
|
107 |
|
|
.set SUMEXT, 0x013E
|
108 |
|
|
|
109 |
|
|
/*---------------------------------------------------------------------------*/
|
110 |
|
|
/* TIMER A */
|
111 |
|
|
/*---------------------------------------------------------------------------*/
|
112 |
|
|
.set TACTL, 0x0160
|
113 |
|
|
.set TAR, 0x0170
|
114 |
|
|
.set TACCTL0, 0x0162
|
115 |
|
|
.set TACCR0, 0x0172
|
116 |
|
|
.set TACCTL1, 0x0164
|
117 |
|
|
.set TACCR1, 0x0174
|
118 |
|
|
.set TACCTL2, 0x0166
|
119 |
|
|
.set TACCR2, 0x0176
|
120 |
|
|
.set TAIV, 0x012E
|
121 |
|
|
|
122 |
|
|
/*---------------------------------------------------------------------------*/
|
123 |
|
|
/* DATA MEMORY MAPPING */
|
124 |
|
|
/*---------------------------------------------------------------------------*/
|
125 |
|
|
.set DMEM_BASE, PER_SIZE
|
126 |
|
|
|
127 |
|
|
.set DMEM_200, (DMEM_BASE+0x00)
|
128 |
|
|
.set DMEM_201, (DMEM_BASE+0x01)
|
129 |
|
|
.set DMEM_202, (DMEM_BASE+0x02)
|
130 |
|
|
.set DMEM_203, (DMEM_BASE+0x03)
|
131 |
|
|
.set DMEM_204, (DMEM_BASE+0x04)
|
132 |
|
|
.set DMEM_205, (DMEM_BASE+0x05)
|
133 |
|
|
.set DMEM_206, (DMEM_BASE+0x06)
|
134 |
|
|
.set DMEM_207, (DMEM_BASE+0x07)
|
135 |
|
|
.set DMEM_208, (DMEM_BASE+0x08)
|
136 |
|
|
.set DMEM_209, (DMEM_BASE+0x09)
|
137 |
|
|
.set DMEM_20A, (DMEM_BASE+0x0A)
|
138 |
|
|
.set DMEM_20B, (DMEM_BASE+0x0B)
|
139 |
|
|
.set DMEM_20C, (DMEM_BASE+0x0C)
|
140 |
|
|
.set DMEM_20D, (DMEM_BASE+0x0D)
|
141 |
|
|
.set DMEM_20E, (DMEM_BASE+0x0E)
|
142 |
|
|
.set DMEM_20F, (DMEM_BASE+0x0F)
|
143 |
|
|
|
144 |
|
|
.set DMEM_210, (DMEM_BASE+0x10)
|
145 |
|
|
.set DMEM_211, (DMEM_BASE+0x11)
|
146 |
|
|
.set DMEM_212, (DMEM_BASE+0x12)
|
147 |
|
|
.set DMEM_213, (DMEM_BASE+0x13)
|
148 |
|
|
.set DMEM_214, (DMEM_BASE+0x14)
|
149 |
|
|
.set DMEM_215, (DMEM_BASE+0x15)
|
150 |
|
|
.set DMEM_216, (DMEM_BASE+0x16)
|
151 |
|
|
.set DMEM_217, (DMEM_BASE+0x17)
|
152 |
|
|
.set DMEM_218, (DMEM_BASE+0x18)
|
153 |
|
|
.set DMEM_219, (DMEM_BASE+0x19)
|
154 |
|
|
.set DMEM_21A, (DMEM_BASE+0x1A)
|
155 |
|
|
.set DMEM_21B, (DMEM_BASE+0x1B)
|
156 |
|
|
.set DMEM_21C, (DMEM_BASE+0x1C)
|
157 |
|
|
.set DMEM_21D, (DMEM_BASE+0x1D)
|
158 |
|
|
.set DMEM_21E, (DMEM_BASE+0x1E)
|
159 |
|
|
.set DMEM_21F, (DMEM_BASE+0x1F)
|
160 |
|
|
|
161 |
|
|
.set DMEM_220, (DMEM_BASE+0x20)
|
162 |
|
|
.set DMEM_221, (DMEM_BASE+0x21)
|
163 |
|
|
.set DMEM_222, (DMEM_BASE+0x22)
|
164 |
|
|
.set DMEM_223, (DMEM_BASE+0x23)
|
165 |
|
|
.set DMEM_224, (DMEM_BASE+0x24)
|
166 |
|
|
.set DMEM_225, (DMEM_BASE+0x25)
|
167 |
|
|
.set DMEM_226, (DMEM_BASE+0x26)
|
168 |
|
|
.set DMEM_227, (DMEM_BASE+0x27)
|
169 |
|
|
.set DMEM_228, (DMEM_BASE+0x28)
|
170 |
|
|
.set DMEM_229, (DMEM_BASE+0x29)
|
171 |
|
|
.set DMEM_22A, (DMEM_BASE+0x2A)
|
172 |
|
|
.set DMEM_22B, (DMEM_BASE+0x2B)
|
173 |
|
|
.set DMEM_22C, (DMEM_BASE+0x2C)
|
174 |
|
|
.set DMEM_22D, (DMEM_BASE+0x2D)
|
175 |
|
|
.set DMEM_22E, (DMEM_BASE+0x2E)
|
176 |
|
|
.set DMEM_22F, (DMEM_BASE+0x2F)
|
177 |
|
|
|
178 |
|
|
.set DMEM_230, (DMEM_BASE+0x30)
|
179 |
|
|
.set DMEM_231, (DMEM_BASE+0x31)
|
180 |
|
|
.set DMEM_232, (DMEM_BASE+0x32)
|
181 |
|
|
.set DMEM_233, (DMEM_BASE+0x33)
|
182 |
|
|
.set DMEM_234, (DMEM_BASE+0x34)
|
183 |
|
|
.set DMEM_235, (DMEM_BASE+0x35)
|
184 |
|
|
.set DMEM_236, (DMEM_BASE+0x36)
|
185 |
|
|
.set DMEM_237, (DMEM_BASE+0x37)
|
186 |
|
|
.set DMEM_238, (DMEM_BASE+0x38)
|
187 |
|
|
.set DMEM_239, (DMEM_BASE+0x39)
|
188 |
|
|
.set DMEM_23A, (DMEM_BASE+0x3A)
|
189 |
|
|
.set DMEM_23B, (DMEM_BASE+0x3B)
|
190 |
|
|
.set DMEM_23C, (DMEM_BASE+0x3C)
|
191 |
|
|
.set DMEM_23D, (DMEM_BASE+0x3D)
|
192 |
|
|
.set DMEM_23E, (DMEM_BASE+0x3E)
|
193 |
|
|
.set DMEM_23F, (DMEM_BASE+0x3F)
|
194 |
|
|
|
195 |
|
|
.set DMEM_240, (DMEM_BASE+0x40)
|
196 |
|
|
.set DMEM_241, (DMEM_BASE+0x41)
|
197 |
|
|
.set DMEM_242, (DMEM_BASE+0x42)
|
198 |
|
|
.set DMEM_243, (DMEM_BASE+0x43)
|
199 |
|
|
.set DMEM_244, (DMEM_BASE+0x44)
|
200 |
|
|
.set DMEM_245, (DMEM_BASE+0x45)
|
201 |
|
|
.set DMEM_246, (DMEM_BASE+0x46)
|
202 |
|
|
.set DMEM_247, (DMEM_BASE+0x47)
|
203 |
|
|
.set DMEM_248, (DMEM_BASE+0x48)
|
204 |
|
|
.set DMEM_249, (DMEM_BASE+0x49)
|
205 |
|
|
.set DMEM_24A, (DMEM_BASE+0x4A)
|
206 |
|
|
.set DMEM_24B, (DMEM_BASE+0x4B)
|
207 |
|
|
.set DMEM_24C, (DMEM_BASE+0x4C)
|
208 |
|
|
.set DMEM_24D, (DMEM_BASE+0x4D)
|
209 |
|
|
.set DMEM_24E, (DMEM_BASE+0x4E)
|
210 |
|
|
.set DMEM_24F, (DMEM_BASE+0x4F)
|
211 |
|
|
|
212 |
|
|
.set DMEM_250, (DMEM_BASE+0x50)
|
213 |
|
|
.set DMEM_251, (DMEM_BASE+0x51)
|
214 |
|
|
.set DMEM_252, (DMEM_BASE+0x52)
|
215 |
|
|
.set DMEM_253, (DMEM_BASE+0x53)
|
216 |
|
|
.set DMEM_254, (DMEM_BASE+0x54)
|
217 |
|
|
.set DMEM_255, (DMEM_BASE+0x55)
|
218 |
|
|
.set DMEM_256, (DMEM_BASE+0x56)
|
219 |
|
|
.set DMEM_257, (DMEM_BASE+0x57)
|
220 |
|
|
.set DMEM_258, (DMEM_BASE+0x58)
|
221 |
|
|
.set DMEM_259, (DMEM_BASE+0x59)
|
222 |
|
|
.set DMEM_25A, (DMEM_BASE+0x5A)
|
223 |
|
|
.set DMEM_25B, (DMEM_BASE+0x5B)
|
224 |
|
|
.set DMEM_25C, (DMEM_BASE+0x5C)
|
225 |
|
|
.set DMEM_25D, (DMEM_BASE+0x5D)
|
226 |
|
|
.set DMEM_25E, (DMEM_BASE+0x5E)
|
227 |
|
|
.set DMEM_25F, (DMEM_BASE+0x5F)
|
228 |
|
|
|
229 |
|
|
.set DMEM_260, (DMEM_BASE+0x60)
|
230 |
|
|
.set DMEM_261, (DMEM_BASE+0x61)
|
231 |
|
|
.set DMEM_262, (DMEM_BASE+0x62)
|
232 |
|
|
.set DMEM_263, (DMEM_BASE+0x63)
|
233 |
|
|
.set DMEM_264, (DMEM_BASE+0x64)
|
234 |
|
|
.set DMEM_265, (DMEM_BASE+0x65)
|
235 |
|
|
.set DMEM_266, (DMEM_BASE+0x66)
|
236 |
|
|
.set DMEM_267, (DMEM_BASE+0x67)
|
237 |
|
|
.set DMEM_268, (DMEM_BASE+0x68)
|
238 |
|
|
.set DMEM_269, (DMEM_BASE+0x69)
|
239 |
|
|
.set DMEM_26A, (DMEM_BASE+0x6A)
|
240 |
|
|
.set DMEM_26B, (DMEM_BASE+0x6B)
|
241 |
|
|
.set DMEM_26C, (DMEM_BASE+0x6C)
|
242 |
|
|
.set DMEM_26D, (DMEM_BASE+0x6D)
|
243 |
|
|
.set DMEM_26E, (DMEM_BASE+0x6E)
|
244 |
|
|
.set DMEM_26F, (DMEM_BASE+0x6F)
|
245 |
|
|
|
246 |
|
|
.set DMEM_300, (DMEM_BASE+0x100)
|
247 |
|
|
|
248 |
|
|
/*---------------------------------------------------------------------------*/
|
249 |
|
|
/* PROGRAM MEMORY MAPPING */
|
250 |
|
|
/*---------------------------------------------------------------------------*/
|
251 |
|
|
.set PMEM_LENGTH, PMEM_SIZE
|