1 | /*
|
---|
2 | * TOPPERS/JSP Kernel
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
4 | * Just Standard Profile Kernel
|
---|
5 | *
|
---|
6 | * Copyright (C) 2006-2010 by Witz Corporation, JAPAN
|
---|
7 | *
|
---|
8 | * The above copyright holders grant permission gratis to use,
|
---|
9 | * duplicate, modify, or redistribute (hereafter called use) this
|
---|
10 | * software (including the one made by modifying this software),
|
---|
11 | * provided that the following four conditions (1) through (4) are
|
---|
12 | * satisfied.
|
---|
13 | *
|
---|
14 | * (1) When this software is used in the form of source code, the above
|
---|
15 | * copyright notice, this use conditions, and the disclaimer shown
|
---|
16 | * below must be retained in the source code without modification.
|
---|
17 | *
|
---|
18 | * (2) When this software is redistributed in the forms usable for the
|
---|
19 | * development of other software, such as in library form, the above
|
---|
20 | * copyright notice, this use conditions, and the disclaimer shown
|
---|
21 | * below must be shown without modification in the document provided
|
---|
22 | * with the redistributed software, such as the user manual.
|
---|
23 | *
|
---|
24 | * (3) When this software is redistributed in the forms unusable for the
|
---|
25 | * development of other software, such as the case when the software
|
---|
26 | * is embedded in a piece of equipment, either of the following two
|
---|
27 | * conditions must be satisfied:
|
---|
28 | *
|
---|
29 | * (a) The above copyright notice, this use conditions, and the
|
---|
30 | * disclaimer shown below must be shown without modification in
|
---|
31 | * the document provided with the redistributed software, such as
|
---|
32 | * the user manual.
|
---|
33 | *
|
---|
34 | * (b) How the software is to be redistributed must be reported to the
|
---|
35 | * TOPPERS Project according to the procedure described
|
---|
36 | * separately.
|
---|
37 | *
|
---|
38 | * (4) The above copyright holders and the TOPPERS Project are exempt
|
---|
39 | * from responsibility for any type of damage directly or indirectly
|
---|
40 | * caused from the use of this software and are indemnified by any
|
---|
41 | * users or end users of this software from any and all causes of
|
---|
42 | * action whatsoever.
|
---|
43 | *
|
---|
44 | * THIS SOFTWARE IS PROVIDED "AS IS." THE ABOVE COPYRIGHT HOLDERS AND
|
---|
45 | * THE TOPPERS PROJECT DISCLAIM ANY EXPRESS OR IMPLIED WARRANTIES,
|
---|
46 | * INCLUDING, BUT NOT LIMITED TO, ITS APPLICABILITY TO A PARTICULAR
|
---|
47 | * PURPOSE. IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS AND THE
|
---|
48 | * TOPPERS PROJECT BE LIABLE FOR ANY TYPE OF DAMAGE DIRECTLY OR
|
---|
49 | * INDIRECTLY CAUSED FROM THE USE OF THIS SOFTWARE.
|
---|
50 | *
|
---|
51 | * ä¸è¨è使¨©è
|
---|
52 | ã¯ï¼ä»¥ä¸ã® (1)ã(4) ã®æ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§
|
---|
53 | * ã¢ï¼æ¬ã½ããã¦ã§ã¢ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹å¤ã»
|
---|
54 | * åé
|
---|
55 | å¸ï¼ä»¥ä¸ï¼å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
56 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®è使¨©
|
---|
57 | * 表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼ã¹
|
---|
58 | * ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
59 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿ç¨
|
---|
60 | * ã§ããå½¢ã§åé
|
---|
61 | å¸ããå ´åã«ã¯ï¼åé
|
---|
62 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
63 | ã
|
---|
64 | * ãã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è使¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿
|
---|
65 | * 証è¦å®ãæ²è¼ãããã¨ï¼
|
---|
66 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿ç¨
|
---|
67 | * ã§ããªãå½¢ã§åé
|
---|
68 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®ããããã®æ¡ä»¶ãæºãããã¨ï¼
|
---|
69 | * (a) åé
|
---|
70 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
71 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½
|
---|
72 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
73 | * (b) åé
|
---|
74 | å¸ã®å½¢æ
|
---|
75 | ãï¼å¥ã«å®ããæ¹æ³ã«ãã£ã¦ï¼TOPPERSããã¸ã§ã¯ãã«å ±
|
---|
76 | * åãããã¨ï¼
|
---|
77 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæå®³
|
---|
78 | * ãããï¼ä¸è¨è使¨©è
|
---|
79 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
80 | 責ãããã¨ï¼ã¾ãï¼
|
---|
81 | * æ¬ã½ããã¦ã§ã¢ã®ã¦ã¼ã¶ã¾ãã¯ã¨ã³ãã¦ã¼ã¶ããã®ãããªãçç±ã«åºã¥
|
---|
82 | * ãè«æ±ãããï¼ä¸è¨è使¨©è
|
---|
83 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
84 | 責ãããã¨ï¼
|
---|
85 | *
|
---|
86 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨è使¨©è
|
---|
87 | ãã
|
---|
88 | * ã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ç¹å®ã®ä½¿ç¨ç®çã«å¯¾ã
|
---|
89 | * ãé©åæ§ãå«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®å©ç¨
|
---|
90 | * ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæå®³ã«é¢ãã¦ãï¼ãã®è²¬ä»»ãè²
|
---|
91 | * ããªãï¼
|
---|
92 | *
|
---|
93 | * @(#) $Id: tmp91cy22.h,v 1.1 2006/04/10 08:19:25 honda Exp $
|
---|
94 | */
|
---|
95 |
|
---|
96 | /*
|
---|
97 | * ç¹æ®æ©è½ã¬ã¸ã¹ã¿é¢é£ã®å®ç¾©ï¼TMP91CY22ç¨ï¼
|
---|
98 | */
|
---|
99 |
|
---|
100 | #ifndef _TMP91CY22_H_
|
---|
101 | #define _TMP91CY22_H_
|
---|
102 |
|
---|
103 | /*
|
---|
104 | * å²è¾¼ã¿çªå·ã®å®ç¾©
|
---|
105 | */
|
---|
106 | #define INT_NO_RST_SW0 1 /* ãªã»ãã/SWI 0 å½ä»¤ */
|
---|
107 | #define INT_NO_SW1 2 /* SWI 1 å½ä»¤ */
|
---|
108 | #define INT_NO_UNDEF_SW2 3 /* æªå®ç¾©å½ä»¤å®è¡éå/SWI 2 å½ä»¤ */
|
---|
109 | #define INT_NO_SW3 4 /* SWI 3 å½ä»¤ */
|
---|
110 | #define INT_NO_SW4 5 /* SWI 4 å½ä»¤ */
|
---|
111 | #define INT_NO_SW5 6 /* SWI 5 å½ä»¤ */
|
---|
112 | #define INT_NO_SW6 7 /* SWI 6 å½ä»¤ */
|
---|
113 | #define INT_NO_SW7 8 /* SWI 7 å½ä»¤ */
|
---|
114 | #define INT_NO_NMI 9 /* NMI */
|
---|
115 | #define INT_NO_WD 10 /* ã¦ã©ããããã°ã¿ã¤ã */
|
---|
116 | #define INT_NO_0 11 /* INT0 */
|
---|
117 | #define INT_NO_1 12 /* INT1 */
|
---|
118 | #define INT_NO_2 13 /* INT2 */
|
---|
119 | #define INT_NO_3 14 /* INT3 */
|
---|
120 | #define INT_NO_4 15 /* INT4 */
|
---|
121 | #define INT_NO_5 16 /* INT5 */
|
---|
122 | #define INT_NO_6 17 /* INT6 */
|
---|
123 | #define INT_NO_7 18 /* INT7 */
|
---|
124 | #define INT_NO_8 19 /* INT8 */
|
---|
125 | #define INT_NO_TA0 20 /* 8ãããã¿ã¤ã0 */
|
---|
126 | #define INT_NO_TA1 21 /* 8ãããã¿ã¤ã1 */
|
---|
127 | #define INT_NO_TA2 22 /* 8ãããã¿ã¤ã2 */
|
---|
128 | #define INT_NO_TA3 23 /* 8ãããã¿ã¤ã3 */
|
---|
129 | #define INT_NO_TA4 24 /* 8ãããã¿ã¤ã4 */
|
---|
130 | #define INT_NO_TA5 25 /* 8ãããã¿ã¤ã5 */
|
---|
131 | #define INT_NO_TA6 26 /* 8ãããã¿ã¤ã6 */
|
---|
132 | #define INT_NO_TA7 27 /* 8ãããã¿ã¤ã7 */
|
---|
133 | #define INT_NO_TB00 28 /* 16ãããã¿ã¤ã00 */
|
---|
134 | #define INT_NO_TB01 29 /* 16ãããã¿ã¤ã01 */
|
---|
135 | #define INT_NO_TB10 30 /* 16ãããã¿ã¤ã10 */
|
---|
136 | #define INT_NO_TB11 31 /* 16ãããã¿ã¤ã11 */
|
---|
137 | #define INT_NO_TBOF0 32 /* 16ãããã¿ã¤ã0ãªã¼ãã¼ããã¼ */
|
---|
138 | #define INT_NO_TBOF1 33 /* 16ãããã¿ã¤ã1ãªã¼ãã¼ããã¼ */
|
---|
139 | #define INT_NO_RX0 34 /* ã·ãªã¢ã«åä¿¡0 */
|
---|
140 | #define INT_NO_TX0 35 /* ã·ãªã¢ã«éä¿¡0 */
|
---|
141 | #define INT_NO_RX1 36 /* ã·ãªã¢ã«åä¿¡1 */
|
---|
142 | #define INT_NO_TX1 37 /* ã·ãªã¢ã«éä¿¡1 */
|
---|
143 | #define INT_NO_SBI 38 /* ã·ãªã¢ã«ãã¹ã¤ã³ã¿ãã§ã¼ã¹ */
|
---|
144 | #define INT_NO_RTC 39 /* æè¨ç¨ã¿ã¤ã */
|
---|
145 | #define INT_NO_AD 40 /* AD夿çµäº */
|
---|
146 | #define INT_NO_TC0 41 /* ãã¤ã¯ãDMAçµäº0 */
|
---|
147 | #define INT_NO_TC1 42 /* ãã¤ã¯ãDMAçµäº1 */
|
---|
148 | #define INT_NO_TC2 43 /* ãã¤ã¯ãDMAçµäº2 */
|
---|
149 | #define INT_NO_TC3 44 /* ãã¤ã¯ãDMAçµäº3 */
|
---|
150 |
|
---|
151 | /*
|
---|
152 | * SFRã¢ãã¬ã¹å®ç¾©
|
---|
153 | */
|
---|
154 | /*
|
---|
155 | * ãã¼ãã¬ã¸ã¹ã¿
|
---|
156 | */
|
---|
157 | #define TADR_SFR_P0 0x0000
|
---|
158 | #define TADR_SFR_P1 0x0001
|
---|
159 | #define TADR_SFR_P0CR 0x0002
|
---|
160 | #define TADR_SFR_P1CR 0x0004
|
---|
161 | #define TADR_SFR_P1FC 0x0005
|
---|
162 | #define TADR_SFR_P2 0x0006
|
---|
163 | #define TADR_SFR_P3 0x0007
|
---|
164 | #define TADR_SFR_P2CR 0x0008
|
---|
165 | #define TADR_SFR_P2FC 0x0009
|
---|
166 | #define TADR_SFR_P3CR 0x000a
|
---|
167 | #define TADR_SFR_P3FC 0x000b
|
---|
168 | #define TADR_SFR_P4 0x000c
|
---|
169 | #define TADR_SFR_P5 0x000d
|
---|
170 | #define TADR_SFR_P4CR 0x000e
|
---|
171 | #define TADR_SFR_P4FC 0x000f
|
---|
172 | #define TADR_SFR_P6 0x0012
|
---|
173 | #define TADR_SFR_P7 0x0013
|
---|
174 | #define TADR_SFR_P6CR 0x0014
|
---|
175 | #define TADR_SFR_P6FC 0x0015
|
---|
176 | #define TADR_SFR_P7CR 0x0016
|
---|
177 | #define TADR_SFR_P7FC 0x0017
|
---|
178 | #define TADR_SFR_P8 0x0018
|
---|
179 | #define TADR_SFR_P9 0x0019
|
---|
180 | #define TADR_SFR_P8CR 0x001a
|
---|
181 | #define TADR_SFR_P8FC 0x001b
|
---|
182 | #define TADR_SFR_P9CR 0x001c
|
---|
183 | #define TADR_SFR_P9FC 0x001d
|
---|
184 | #define TADR_SFR_PA 0x001e
|
---|
185 | #define TADR_SFR_PACR 0x0020
|
---|
186 | #define TADR_SFR_PAFC 0x0021
|
---|
187 | #define TADR_SFR_ODE 0x002f
|
---|
188 |
|
---|
189 | /*
|
---|
190 | * å²è¾¼ã¿ã¬ã¸ã¹ã¿
|
---|
191 | */
|
---|
192 | #define TADR_SFR_DMA0V 0x0080
|
---|
193 | #define TADR_SFR_DMA1V 0x0081
|
---|
194 | #define TADR_SFR_DMA2V 0x0082
|
---|
195 | #define TADR_SFR_DMA3V 0x0083
|
---|
196 | #define TADR_SFR_INTCLR 0x0088
|
---|
197 | #define TADR_SFR_DMAR 0x0089
|
---|
198 | #define TADR_SFR_DMAB 0x008a
|
---|
199 | #define TADR_SFR_IIMC 0x008c
|
---|
200 | #define TADR_SFR_INTE0AD 0x0090
|
---|
201 | #define TADR_SFR_INTE12 0x0091
|
---|
202 | #define TADR_SFR_INTE34 0x0092
|
---|
203 | #define TADR_SFR_INTE56 0x0093
|
---|
204 | #define TADR_SFR_INTE78 0x0094
|
---|
205 | #define TADR_SFR_INTETA01 0x0095
|
---|
206 | #define TADR_SFR_INTETA23 0x0096
|
---|
207 | #define TADR_SFR_INTETA45 0x0097
|
---|
208 | #define TADR_SFR_INTETA67 0x0098
|
---|
209 | #define TADR_SFR_INTETB0 0x0099
|
---|
210 | #define TADR_SFR_INTETB1 0x009a
|
---|
211 | #define TADR_SFR_INTETB01V 0x009b
|
---|
212 | #define TADR_SFR_INTES0 0x009c
|
---|
213 | #define TADR_SFR_INTES1 0x009d
|
---|
214 | #define TADR_SFR_INTSBIRTC 0x009e
|
---|
215 | #define TADR_SFR_INTETC01 0x00a0
|
---|
216 | #define TADR_SFR_INTETC23 0x00a1
|
---|
217 |
|
---|
218 | /*
|
---|
219 | * ãããã»ã¬ã¯ã/ã¦ã§ã¤ãã³ã³ããã¼ã©ã¬ã¸ã¹ã¿
|
---|
220 | */
|
---|
221 | #define TADR_SFR_B0CS 0x00c0
|
---|
222 | #define TADR_SFR_B1CS 0x00c1
|
---|
223 | #define TADR_SFR_B2CS 0x00c2
|
---|
224 | #define TADR_SFR_B3CS 0x00c3
|
---|
225 | #define TADR_SFR_BEXCS 0x00c7
|
---|
226 | #define TADR_SFR_MSAR0 0x00c8
|
---|
227 | #define TADR_SFR_MAMR0 0x00c9
|
---|
228 | #define TADR_SFR_MSAR1 0x00ca
|
---|
229 | #define TADR_SFR_MAMR1 0x00cb
|
---|
230 | #define TADR_SFR_MSAR2 0x00cc
|
---|
231 | #define TADR_SFR_MAMR2 0x00cd
|
---|
232 | #define TADR_SFR_MSAR3 0x00ce
|
---|
233 | #define TADR_SFR_MAMR3 0x00cf
|
---|
234 |
|
---|
235 | /*
|
---|
236 | * ã¯ããã¯ã®ã¢/ã¯ããã¯éååè·¯ã¬ã¸ã¹ã¿
|
---|
237 | */
|
---|
238 | #define TADR_SFR_SYSCR0 0x00e0
|
---|
239 | #define TADR_SFR_SYSCR1 0x00e1
|
---|
240 | #define TADR_SFR_SYSCR2 0x00e2
|
---|
241 | #define TADR_SFR_EMCCR0 0x00e3
|
---|
242 | #define TADR_SFR_EMCCR1 0x00e4
|
---|
243 | #define TADR_SFR_DFMCR0 0x00e8
|
---|
244 | #define TADR_SFR_DFMCR1 0x00e9
|
---|
245 |
|
---|
246 | /*
|
---|
247 | * 8bitã¿ã¤ãAã¬ã¸ã¹ã¿
|
---|
248 | */
|
---|
249 | #define TADR_SFR_TA01RUN 0x0100
|
---|
250 | #define TADR_SFR_TA0REG 0x0102
|
---|
251 | #define TADR_SFR_TA1REG 0x0103
|
---|
252 | #define TADR_SFR_TA01MOD 0x0104
|
---|
253 | #define TADR_SFR_TA1FFCR 0x0105
|
---|
254 | #define TADR_SFR_TA23RUN 0x0108
|
---|
255 | #define TADR_SFR_TA2REG 0x010a
|
---|
256 | #define TADR_SFR_TA3REG 0x010b
|
---|
257 | #define TADR_SFR_TA23MOD 0x010c
|
---|
258 | #define TADR_SFR_TA3FFCR 0x010d
|
---|
259 | #define TADR_SFR_TA45RUN 0x0110
|
---|
260 | #define TADR_SFR_TA4REG 0x0112
|
---|
261 | #define TADR_SFR_TA5REG 0x0113
|
---|
262 | #define TADR_SFR_TA45MOD 0x0114
|
---|
263 | #define TADR_SFR_TA5FFCR 0x0115
|
---|
264 | #define TADR_SFR_TA67RUN 0x0118
|
---|
265 | #define TADR_SFR_TA6REG 0x011a
|
---|
266 | #define TADR_SFR_TA7REG 0x011b
|
---|
267 | #define TADR_SFR_TA67MOD 0x011c
|
---|
268 | #define TADR_SFR_TA7FFCR 0x011d
|
---|
269 |
|
---|
270 | /*
|
---|
271 | * 16bitã¿ã¤ãBã¬ã¸ã¹ã¿
|
---|
272 | */
|
---|
273 | #define TADR_SFR_TB0RUN 0x0180
|
---|
274 | #define TADR_SFR_TB0MOD 0x0182
|
---|
275 | #define TADR_SFR_TB0FFCR 0x0183
|
---|
276 | #define TADR_SFR_TB0RG0L 0x0188
|
---|
277 | #define TADR_SFR_TB0RG0H 0x0189
|
---|
278 | #define TADR_SFR_TB0RG1L 0x018a
|
---|
279 | #define TADR_SFR_TB0RG1H 0x018b
|
---|
280 | #define TADR_SFR_TB0CP0L 0x018c
|
---|
281 | #define TADR_SFR_TB0CP0H 0x018d
|
---|
282 | #define TADR_SFR_TB0CP1L 0x018e
|
---|
283 | #define TADR_SFR_TB0CP1H 0x018f
|
---|
284 | #define TADR_SFR_TB1RUN 0x0190
|
---|
285 | #define TADR_SFR_TB1MOD 0x0192
|
---|
286 | #define TADR_SFR_TB1FFCR 0x0193
|
---|
287 | #define TADR_SFR_TB1RG0L 0x0198
|
---|
288 | #define TADR_SFR_TB1RG0H 0x0199
|
---|
289 | #define TADR_SFR_TB1RG1L 0x019a
|
---|
290 | #define TADR_SFR_TB1RG1H 0x019b
|
---|
291 | #define TADR_SFR_TB1CP0L 0x019c
|
---|
292 | #define TADR_SFR_TB1CP0H 0x019d
|
---|
293 | #define TADR_SFR_TB1CP1L 0x019e
|
---|
294 | #define TADR_SFR_TB1CP1H 0x019f
|
---|
295 |
|
---|
296 | /*
|
---|
297 | * ã·ãªã¢ã«I/O(UART/I2Cãã¹/SIO)ã¬ã¸ã¹ã¿
|
---|
298 | */
|
---|
299 | #define TADR_SFR_SC0BUF 0x0200
|
---|
300 | #define TADR_SFR_SC0CR 0x0201
|
---|
301 | #define TADR_SFR_SC0MOD0 0x0202
|
---|
302 | #define TADR_SFR_BR0CR 0x0203
|
---|
303 | #define TADR_SFR_BR0ADD 0x0204
|
---|
304 | #define TADR_SFR_SC0MOD1 0x0205
|
---|
305 | #define TADR_SFR_SIRCR 0x0207
|
---|
306 | #define TADR_SFR_SC1BUF 0x0208
|
---|
307 | #define TADR_SFR_SC1CR 0x0209
|
---|
308 | #define TADR_SFR_SC1MOD0 0x020a
|
---|
309 | #define TADR_SFR_BR1CR 0x020b
|
---|
310 | #define TADR_SFR_BR1ADD 0x020c
|
---|
311 | #define TADR_SFR_SC1MOD1 0x020d
|
---|
312 | #define TADR_SFR_SBI0CR1 0x0240
|
---|
313 | #define TADR_SFR_SBI0DBR 0x0241
|
---|
314 | #define TADR_SFR_I2C0AR 0x0242
|
---|
315 | #define TADR_SFR_SBI0CR2 0x0243
|
---|
316 | #define TADR_SFR_SBI0BR0 0x0244
|
---|
317 | #define TADR_SFR_SBI0BR1 0x0245
|
---|
318 |
|
---|
319 | /*
|
---|
320 | * 10ãããADCã¬ã¸ã¹ã¿
|
---|
321 | */
|
---|
322 | #define TADR_SFR_ADREG04L 0x02a0
|
---|
323 | #define TADR_SFR_ADREG04H 0x02a1
|
---|
324 | #define TADR_SFR_ADREG15L 0x02a2
|
---|
325 | #define TADR_SFR_ADREG15H 0x02a3
|
---|
326 | #define TADR_SFR_ADREG26L 0x02a4
|
---|
327 | #define TADR_SFR_ADREG26H 0x02a5
|
---|
328 | #define TADR_SFR_ADREG37L 0x02a6
|
---|
329 | #define TADR_SFR_ADREG37H 0x02a7
|
---|
330 | #define TADR_SFR_ADMOD0 0x02b0
|
---|
331 | #define TADR_SFR_ADMOD1 0x02b1
|
---|
332 |
|
---|
333 | /*
|
---|
334 | * ã¦ã©ããããã°ã¿ã¤ãã¬ã¸ã¹ã¿
|
---|
335 | */
|
---|
336 | #define TADR_SFR_WDMOD 0x0300
|
---|
337 | #define TADR_SFR_WDCR 0x0301
|
---|
338 |
|
---|
339 | /*
|
---|
340 | * æè¨ç¨ã¿ã¤ãã¬ã¸ã¹ã¿
|
---|
341 | */
|
---|
342 | #define TADR_SFR_RTCCR 0x0310
|
---|
343 |
|
---|
344 | /*
|
---|
345 | * SFRbitãã¹ã¯å®ç¾©
|
---|
346 | */
|
---|
347 | /*
|
---|
348 | * å²è¾¼ã¿ã¬ã¸ã¹ã¿
|
---|
349 | */
|
---|
350 | /* åªå
|
---|
351 | é ä½è¨å®ã¬ã¸ã¹ã¿ */
|
---|
352 | #define TBIT_INTM_L 0x07
|
---|
353 | #define TBIT_INTC_L 0x08
|
---|
354 | #define TBIT_INTM_H 0x70
|
---|
355 | #define TBIT_INTC_H 0x80
|
---|
356 | /* å²è¾¼ã¿ã¯ãªã¢å¶å¾¡ã¬ã¸ã¹ã¿ */
|
---|
357 | /* ã¯ãªã¢ãã¯ã¿(ãã¤ã¯ãDMAèµ·åãã¯ã¿) */
|
---|
358 | #define TBIT_INT0_CLR 0x0a /* INT0 */
|
---|
359 | #define TBIT_INT1_CLR 0x0b /* INT1 */
|
---|
360 | #define TBIT_INT2_CLR 0x0c /* INT2 */
|
---|
361 | #define TBIT_INT3_CLR 0x0d /* INT3 */
|
---|
362 | #define TBIT_INT4_CLR 0x0e /* INT4 */
|
---|
363 | #define TBIT_INT5_CLR 0x0f /* INT5 */
|
---|
364 | #define TBIT_INT6_CLR 0x10 /* INT6 */
|
---|
365 | #define TBIT_INT7_CLR 0x11 /* INT7 */
|
---|
366 | #define TBIT_INT8_CLR 0x12 /* INT8 */
|
---|
367 | #define TBIT_TA0_CLR 0x13 /* 8ãããã¿ã¤ã0 */
|
---|
368 | #define TBIT_TA1_CLR 0x14 /* 8ãããã¿ã¤ã1 */
|
---|
369 | #define TBIT_TA2_CLR 0x15 /* 8ãããã¿ã¤ã2 */
|
---|
370 | #define TBIT_TA3_CLR 0x16 /* 8ãããã¿ã¤ã3 */
|
---|
371 | #define TBIT_TA4_CLR 0x17 /* 8ãããã¿ã¤ã4 */
|
---|
372 | #define TBIT_TA5_CLR 0x18 /* 8ãããã¿ã¤ã5 */
|
---|
373 | #define TBIT_TA6_CLR 0x19 /* 8ãããã¿ã¤ã6 */
|
---|
374 | #define TBIT_TA7_CLR 0x1a /* 8ãããã¿ã¤ã7 */
|
---|
375 | #define TBIT_TB00_CLR 0x1b /* 16ãããã¿ã¤ã00 */
|
---|
376 | #define TBIT_TB01_CLR 0x1c /* 16ãããã¿ã¤ã01 */
|
---|
377 | #define TBIT_TB10_CLR 0x1d /* 16ãããã¿ã¤ã10 */
|
---|
378 | #define TBIT_TB11_CLR 0x1e /* 16ãããã¿ã¤ã11 */
|
---|
379 | #define TBIT_TBOF0_CLR 0x1f /* 16ãããã¿ã¤ã0ãªã¼ãã¼ããã¼ */
|
---|
380 | #define TBIT_TBOF1_CLR 0x20 /* 16ãããã¿ã¤ã1ãªã¼ãã¼ããã¼ */
|
---|
381 | #define TBIT_RX0_CLR 0x21 /* ã·ãªã¢ã«åä¿¡0 */
|
---|
382 | #define TBIT_TX0_CLR 0x22 /* ã·ãªã¢ã«éä¿¡0 */
|
---|
383 | #define TBIT_RX1_CLR 0x23 /* ã·ãªã¢ã«åä¿¡1 */
|
---|
384 | #define TBIT_TX1_CLR 0x24 /* ã·ãªã¢ã«éä¿¡1 */
|
---|
385 | #define TBIT_SBI_CLR 0x25 /* ã·ãªã¢ã«ãã¹ã¤ã³ã¿ãã§ã¼ã¹ */
|
---|
386 | #define TBIT_RTC_CLR 0x26 /* æè¨ç¨ã¿ã¤ã */
|
---|
387 | #define TBIT_AD_CLR 0x27 /* AD夿çµäº */
|
---|
388 |
|
---|
389 | /*
|
---|
390 | * 8bitã¿ã¤ãã¬ã¸ã¹ã¿
|
---|
391 | */
|
---|
392 | /* RUNã¬ã¸ã¹ã¿ */
|
---|
393 | #define TBIT_TA0RUN 0x01
|
---|
394 | #define TBIT_TA1RUN 0x02
|
---|
395 | #define TBIT_TA01PRUN 0x04
|
---|
396 | #define TBIT_I2TA01 0x08
|
---|
397 | #define TBIT_TA0RDE 0x80
|
---|
398 | /* ã¢ã¼ãã¬ã¸ã¹ã¿ */
|
---|
399 | #define TBIT_TA0CLK 0x03
|
---|
400 | #define TBIT_TA0CLK0 0x00
|
---|
401 | #define TBIT_TA0CLK1 0x01
|
---|
402 | #define TBIT_TA0CLK4 0x02
|
---|
403 | #define TBIT_TA0CLK16 0x03
|
---|
404 | #define TBIT_TA1CLK 0x0c
|
---|
405 | #define TBIT_TA1CLK0 0x00
|
---|
406 | #define TBIT_TA1CLK1 0x04
|
---|
407 | #define TBIT_TA1CLK16 0x08
|
---|
408 | #define TBIT_TA1CLK256 0x0c
|
---|
409 | #define TBIT_PWM 0x30
|
---|
410 | #define TBIT_PWM26 0x10
|
---|
411 | #define TBIT_PWM27 0x20
|
---|
412 | #define TBIT_PWM28 0x30
|
---|
413 | #define TBIT_TA01M 0xc0
|
---|
414 | #define TBIT_TA01M8 0x00
|
---|
415 | #define TBIT_TA01M16 0x40
|
---|
416 | #define TBIT_TA01MPPG 0x80
|
---|
417 | #define TBIT_TA01MPWM 0xc0
|
---|
418 |
|
---|
419 | /*
|
---|
420 | * ã·ãªã¢ã«I/Oã¬ã¸ã¹ã¿
|
---|
421 | */
|
---|
422 | /* ã¢ã¼ãã¬ã¸ã¹ã¿0 */
|
---|
423 | #define TBIT_SIOSC 0x03
|
---|
424 | #define TBIT_SIOSCT 0x00
|
---|
425 | #define TBIT_SIOSCBRG 0x01
|
---|
426 | #define TBIT_SIOSCFSYS 0x02
|
---|
427 | #define TBIT_SIOSCSCLK 0x03
|
---|
428 | #define TBIT_SIOSM 0x0c
|
---|
429 | #define TBIT_SIOSMIO 0x00
|
---|
430 | #define TBIT_SIOSMU7 0x04
|
---|
431 | #define TBIT_SIOSMU8 0x08
|
---|
432 | #define TBIT_SIOSMU9 0x0c
|
---|
433 | #define TBIT_SIOWU 0x10
|
---|
434 | #define TBIT_SIORXE 0x20
|
---|
435 | #define TBIT_SIOCTSE 0x40
|
---|
436 | #define TBIT_SIOTB8 0x80
|
---|
437 | /* å¶å¾¡ã¬ã¸ã¹ã¿ */
|
---|
438 | #define TBIT_SIOIOC 0x01
|
---|
439 | #define TBIT_SIOSCLKS 0x02
|
---|
440 | #define TBIT_SIOFERR 0x04
|
---|
441 | #define TBIT_SIOPERR 0x08
|
---|
442 | #define TBIT_SIOOERR 0x10
|
---|
443 | #define TBIT_SIOPE 0x20
|
---|
444 | #define TBIT_SIOEVEN 0x40
|
---|
445 | #define TBIT_SIORB8 0x80
|
---|
446 | /* ãã¼ã¬ã¼ãã³ã³ããã¼ã© */
|
---|
447 | #define TBIT_SIOBRS 0x0f
|
---|
448 | #define TBIT_SIOBRCK 0x30
|
---|
449 | #define TBIT_SIOBRCK0 0x00
|
---|
450 | #define TBIT_SIOBRCK2 0x10
|
---|
451 | #define TBIT_SIOBRCK8 0x20
|
---|
452 | #define TBIT_SIOBRCK32 0x30
|
---|
453 | #define TBIT_SIOBRADD 0x40
|
---|
454 | #define TBIT_SIOBRK 0x0f
|
---|
455 | /* ã¢ã¼ãã¬ã¸ã¹ã¿1 */
|
---|
456 | #define TBIT_SIOFDPX 0x40
|
---|
457 | #define TBIT_SIOI2S 0x80
|
---|
458 |
|
---|
459 | #endif /* _TMP91CY22_H_ */
|
---|
460 |
|
---|