Appendix D Initialization Routine - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

Appendix D: Initialization Routine
This section lists typical vector tables and initialization routines.
boot.s
.org
0x8000
.section .rodata
; ======================================================================
;
Vector table
; ======================================================================
.long BOOT
.long unalign_handler
.long nmi_handler
.long int03_handler
.long p0_handler
.long p1_handler
.long swt_handler
.long ct_handler
.long t8osc1_handler
.long int09_handler
.long int0a_handler
.long t16e_handler
.long t8f_handler
.long t16_0_handler
.long t16_1_handler
.long t16_2_handler
.long uart_handler
.long remc_handler
.long spi_handler
.long i2c_handler
.long int14_handler
.long int15_handler
.long int16_handler
.long int17_handler
.long int18_handler
.long int19_handler
.long int1a_handler
.long int1b_handler
.long int1c_handler
.long int1d_handler
.long int1e_handler
.long int1f_handler
; ======================================================================
;
Program code
; ======================================================================
.text
.align 1
BOOT:
; ===== Initialize ===========================================
; ----- Stack pointer --------------------
Xld.a
%sp, 0x7c0
; ----- Memory controller ----------------
Xld.a
%r1, 0x5320
; ROM
Xld.a
%r0, 0x04
ld.b
[%r1], %r0
S1C17001 TECHNICAL MANUAL
; interrupt
vector
; number
offset
; 0x00
0x00
; 0x01
0x04
; 0x02
0x08
; 0x03
0x0c
; 0x04
0x10
; 0x05
0x14
; 0x06
0x18
; 0x07
0x1c
; 0x08
0x20
; 0x09
0x24
; 0x0a
0x28
; 0x0b
0x2c
; 0x0c
0x30
; 0x0d
0x34
; 0x0e
0x38
; 0x0f
0x3c
; 0x10
0x40
; 0x11
0x44
; 0x12
0x48
; 0x13
0x4c
; 0x14
0x50
; 0x15
0x54
; 0x16
0x58
; 0x17
0x5c
; 0x18
0x60
; 0x19
0x64
; 0x1a
0x68
; 0x1b
0x6c
; 0x1c
0x70
; 0x1d
0x74
; 0x1e
0x78
; 0x1f
0x7c
; MISC register base address
; 1 cycle access
; [0x5320] <= 0x04
EPSON

APPENDIX D INITIALIZATION ROUTINE

interrupt
source
reset
unalign
NMI
-
P0 port
P1 port
SWT
CT
T8OSC1
-
-
T16E
T8F
T16 ch0
T16 ch1
T16 ch2
UART
REMC
SPI
I2C
-
-
-
-
-
-
-
-
-
-
-
-
. . . (1)
. . . (2)
. . . (3)
. . . (4)
. . . (5)
335

Advertisement

Table of Contents
loading

Table of Contents