EasyManua.ls Logo

Renesas V850 Series - Page 167

Renesas V850 Series
186 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
170
ld.w [sp],r1
add 4,sp
jr _int_AD0 -- A/D converter CH0
.extern V_RESET
.extern V_U
.extern V_V
.extern V_W
.extern V_ETC
.extern V_MOTOR
.extern V_AD0
/****************************************************************************** /
/* Interrupt jump table */
/****************************************************************************** /
.section ".vect_RESET",text
Mov #V_RESET,r1
Jmp [r1]
.section ".id_NO",text
.byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
.section ".vect_U",text
add -4,sp
st.w r1,[r3]
mov #V_U,r1
jmp [r1]
.section ".vect_V",text
Add -4,sp
st.w r1,[r3]
mov #V_V,r1
jmp [r1]
.section ".vect_W",text
Add -4,sp
st.w r1,[r3]
mov #V_W,r1
jmp [r1]
.section ".vect_ETC",text
Add -4,sp
st.w r1,[r3]
mov #V_ETC,r1
jmp [r1]
.section ".vect_MOTOR",text
Add -4,sp
st.w r1,[r3]

Table of Contents