Subversion Repositories pentevo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1186 savelij 1
		ifndef	__reg6230inc	; avoid multiple inclusion
2
__reg6230inc	equ	1
3
 
4
		save
5
		listing	off		; no listing over this file
6
 
7
;****************************************************************************
8
;*                                                                          *
9
;*   AS 1.42 - File REG6230.INC                                             *
10
;*                                                                          *
11
;*   contains SFR and Bit Definitions for ST6230/6232                       *
12
;*                                                                          *
13
;*   Source: ST62T30B/E30B Data Sheet, Rev. 2.7, October 2003               *
14
;*           ST62T32B/E32B Data Sheet, Rev. 2.5, September 1998             *
15
;*                                                                          *
16
;****************************************************************************
17
 
18
;----------------------------------------------------------------------------
19
; Memory Addresses
20
 
21
RAMSTART	sfr	0000h		; Start Address Internal RAM
22
		; area 00h..3fh maps to two banks
23
		; area 40h..7fh is ROM read window
24
RAMEND		sfr	00bfh		; End Address Internal RAM
25
 
26
EESTART		sfr	0000h		; Start Address EEPROM (2 banks shared with RAM)
27
EEEND		sfr	003fh		; End     "        "
28
 
29
ROMSTART	label	0080h		; Start Address Internal ROM
30
ROMEND		label	1fffh		; End     "        "     ROM
31
 
32
;----------------------------------------------------------------------------
33
; Interrupt Vectors
34
 
35
ADC_vect	label	0ff0h		; A/D End Of Conversion, shared with...
36
TIMER_vect	label	0ff0h		; Timer Underflow, shared with...
37
UART_vect	label	0ff0h		; UART Tx/Rx Interrupt
38
ARTIMER_vect	label	0ff2h		; AR Timer Overflow/Capture
39
PORTD_vect	label	0ff4h		; Ext. Interrupt Port D, shared with...
40
PORTB_vect	label	0ff4h		; Ext. Interrupt Port B
41
SPI_vect	label	0ff6h		; SPI Interrupt, shared with...
42
PORTA_vect	label	0ff6h		; Ext. Interrupt Port A
43
PORTC_vect	label	0ffch		; Ext. Interrupt Port C, shared with...
44
NMI_vect	label	0ffch		; Non Maskable Interrupt
45
RESET_vect	label	0ffeh		; RESET
46
 
47
;----------------------------------------------------------------------------
48
; GPIO
49
 
50
		include	"gpio.inc"
51
		__defgpio "A",0c0h
52
		__defgpio "B",0c1h
53
		__defgpio "C",0c2h
54
		__defgpio "D",0c3h
55
 
56
;----------------------------------------------------------------------------
57
; CPU
58
 
59
		include	"ior.inc"
60
 
61
DRBR		sfr	0cbh		; Data RAM Bank Register
62
DRBR4		bit	4,DRBR		;  Map RAM Page 2
63
DRBR3		bit	3,DRBR		;  Map RAM Page 1
64
DRBR1		bit	1,DRBR		;  Map EEPROM Page 1
65
DRBR0		bit	0,DRBR		;  Map EEPROM Page 0
66
 
67
IPR		sfr	0dah		; Interrupt Polarity Register
68
PortD		bit	3,IPR		;  Port D Interrupt Polarity
69
PortC		bit	2,IPR		;  Port C Interrupt Polarity
70
PortA		bit	1,IPR		;  Port A Interrupt Polarity
71
PortB		bit	0,IPR		;  Port B Interrupt Polarity
72
 
73
EECTL		sfr	0dfh		; EEPROM Control Register
74
E2OFF		bit	6,EECTL		;  Stand-by Enable Bit
75
E2PAR1		bit	3,EECTL		;  Parallel Start Bit
76
E2PAR2		bit	2,EECTL		;  Parallel Mode En
77
E2BUSY		bit	1,EECTL		;  EEPROM Busy Bit
78
E2ENA		bit	0,EECTL		;  EEPROM Enable Bit
79
 
80
;----------------------------------------------------------------------------
81
; Clock System
82
 
83
OSCR		sfr	0dbh
84
OSCOFF		bit	0,OSCR		; Main Oscillator Turn-Off
85
 
86
;----------------------------------------------------------------------------
87
; Watchdog
88
 
89
		include	"wdg.inc"
90
DWDR		sfr	WDGR		; alternate name in older data sheets
91
 
92
;----------------------------------------------------------------------------
93
; Analog/Digital Converter
94
 
95
		include	"adc.inc"
96
CLSEL		bit	2,ADCR		; Clock Selection
97
 
98
;----------------------------------------------------------------------------
99
; Timer 1
100
 
101
		include	"timer.inc"
102
		__deftimer 0d2h,""
103
TOUT		bit	5,TSCR		;  Timer Output Control
104
DOUT		bit	4,TSCR		;  Data Output
105
 
106
;----------------------------------------------------------------------------
107
; Auto Reload Timer
108
 
109
		include "artim16.inc"
110
 
111
;----------------------------------------------------------------------------
112
; UART
113
 
114
		include	"uart.inc"
115
DAT9		bit	0,UARTCR	;  Alias for Parity/Data Bit 8
116
 
117
;----------------------------------------------------------------------------
118
; SPI
119
 
120
		include	"spi.inc"
121
 
122
		restore
123
		endif			; __reg6230inc