Appendix E Initialization Routine - Epson S1C17M20 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 svd3_handler
.long pport_handler
.long int06_handler
.long clg_handler
.long rtca_handler
.long t16_0_handler
.long uart3_0_handler
.long t16_1_handler
.long spia_0_handler
.long i2c_handler
.long t16b_0_handler
.long t16b_1_handler
.long uart3_1_handler
.long snda_handler
.long remc3_handler
.long int13_handler
.long rfc_0_handler
.long rfc_1_handler
.long t16_2_handler
.long spia_1_handler
.long t16_3_handler
.long adc12a_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, 0x41b0
; Flash read wait cycle
Xld.a
%r0, 0x00
ld.b
[%r1], %r0
; ===== Main routine =========================================
...
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
; 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
; [0x41b0] <= 0x00
Seiko Epson Corporation
APPENDIX E INITIALIZATION ROUTINE
interrupt
source
reset
unalign
NMI
-
SVD3
PPORT
-
CLG
RTCA
T16 ch0
UART3 ch0
T16 ch1
SPIA ch0
I2C
T16B ch0
T16B ch1
UART3 ch1
SNDA
REMC3
-
RFC ch0
RFC ch1
T16 ch2
SPIA ch1
T16 ch3
ADC12A
-
-
-
-
-
-
...(1)
...(2)
...(3)
...(4)
...(5)
AP-E-1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m25S1c17m21S1c17m22S1c17m23S1c17m24

Table of Contents