Epson S1C17624 Technical Manual page 359

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

Appendix D 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 p0_handler
.long p1_handler
.long swt_handler
.long ct_rtc_handler
.long t8osc1_handler
.long svd_handler
.long lcd_t16a2_0_handler
.long t16e_0_handler
.long t8f_0_1_handler
.long t16_0_handler
.long t16_1_handler
.long t16_2_handler
.long uart_0_handler
.long i2cs_uart_1_handler
.long spi_0_handler
.long i2cm_handler
.long remc_handler
.long t16a2_1_handler
.long adc10_handler
.long rfc_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
;Xld.a
%sp, 0x1fc0
; ----- Memory controller ----------------
Xld.a
%r1, 0x5320
; FLASHC
Xld.a
%r0, 0x04
ld.b
[%r1], %r0
; ===== Main routine =========================================
...
S1C17624/604/622/602/621 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
; S1C17622/602
; S1C17624/604
; MISC register base address
; 1 cycle access
; [0x5320] <= 0x04
Seiko epson Corporation
aPPenDiX D iniTialiZaTiOn ROuTine
interrupt
source
reset
unalign
NMI
-
P0 port
P1 port
SWT
CT/RTC
T8OSC1
SVD
LCD/T16A2 ch0
T16E ch0
T8F ch0/ch1
T16 ch0
T16 ch1
T16 ch2
UART ch0
I2CS/UART ch1
SPI ch0
I2CM
REMC
T16A2 ch1
ADC10
RFC
-
-
-
-
-
-
-
-
...(1)
...(2)
...(3)
...(4)
...(5)
aP-D-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents