source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/tlcs900-toshiba/zup_f16_ex/tmp91cy22.h@ 363

Last change on this file since 363 was 363, checked in by ykominami, 5 years ago

add tags/jsp-1.4.4-full-UTF8

  • Property svn:executable set to *
File size: 16.4 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.