Appendix E Initialization Routine - Epson S1C17M01 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

Appendix E Initialization Routine

The following 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 svd_handler
.long pport_handler
.long clg_handler
.long rtca_handler
.long t16_0_handler
.long uart_handler
.long t16_1_handler
.long spia_0_handler
.long i2c_handler
.long t16_2_handler
.long t16_3_handler
.long t16_4_handler
.long spia_1_handler
.long lcd8a_handler
.long rfc_handler
.long amrc_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, 0x0fc0
; ----- Memory controller ----------------
Xld.a
%r1, 0x41b0
; Flash read wait cycle
Xld.a
%r0, 0x00
ld.b
[%r1], %r0
; ===== Main routine =========================================
...
S1C17M01 TECHNICAL MANUAL
(Rev. 1.2)
; 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
; FLASHC register address
; 0x00 = No wait or 0x01 = 1 wait
; [0x41b0] <= 0x00
Seiko Epson Corporation
APPENDIX E INITIALIZATION ROUTINE
interrupt
source
reset
unalign
NMI
-
SVD
PPORT
CLG
RTCA
T16 ch0
UART
T16 ch1
SPIA ch0
I2C
T16 ch2
T16 ch3
T16 ch4
SPIA ch1
LCD8A
RFC
AMRC
-
-
-
-
-
-
-
-
-
-
-
-
...(1)
...(2)
...(3)
...(4)
...(5)
AP-E-1

Advertisement

Table of Contents
loading

Table of Contents