APPENDIX A PROGRAM LIST
; | OFF | Blink every 120 ms |
; |-------|--------------------|
; | ON | Blink every 60 ms |#
; +----------------------------+
; # A reset is generated by WDT at a 50% chance of occurrence when SW is
turned on.
; In that case, LED1 blinks every 120 ms even if SW is turned on.
;
;
; <RESET source and LED2>
;
; +------------------------+
; | RESET Source | LED2 |
; | | (P21) |
; |----------------|-------|
; | Other than WDT | OFF |
; |----------------|-------|
; | WDT | ON |
; +------------------------+
;
;
;<<I/O port settings>>
;
; Input: P43
; Output: P00-P03, P20-P23, P30-P33, P40-P42, P44-P47, P120-P123, P130
; # All unused ports are set as the output mode.
;
;*****************************************************************************
;=============================================================================
;
; Vector
table
;
;=============================================================================
XVCT CSEG AT
0000H
DW
RESET_START
;(00)
RESET
DW
RESET_START
;(02)
--
DW
RESET_START
;(04)
--
DW
RESET_START
;(06)
INTLVI
DW
RESET_START
;(08)
INTP0
DW
INTERRUPT_P1 ;(0A)
INTP1
DW
RESET_START
;(0C)
INTTMH1
DW
RESET_START
;(0E)
INTTM000
DW
RESET_START
;(10)
INTTM010
DW
RESET_START
;(12)
INTAD
DW
RESET_START
;(14)
--
DW
RESET_START
;(16)
INTP2
DW
RESET_START
;(18)
INTP3
DW
RESET_START
;(1A)
INTTM80
DW
RESET_START
;(1C)
INTSRE6
DW
RESET_START
;(1E)
INTSR6
DW
RESET_START
;(20)
INTST6
;=============================================================================
;
;
Define the RAM
;
;=============================================================================
Application Note U18847EJ1V0AN
25