vinodstanur
Advanced Member level 3
- Joined
- Oct 31, 2009
- Messages
- 751
- Helped
- 114
- Reputation
- 234
- Reaction score
- 114
- Trophy points
- 1,333
- Location
- Kerala (INDIA)
- Activity points
- 7,054
How to write ISR in assembly?
I just wrote it as below but not working...Could any one help me?
I just wrote it as below but not working...Could any one help me?
PHP:
.include "msp430g2x31.inc"
org 0xf800
start:
mov #0x280,r1
mov #23168,&WDTCTL
mov #0xfee9, &TACTL
mov.b #0xff,&P1DIR
mov.b #0,&P1OUT
eint
mov.b #1,&P1OUT
gg:
jmp gg
isr:
xor.b #1,&P1OUT
and #0xfffe,&TACTL
reti
reti
org 0xfff0 ;timer_a2 vector
dw isr
org 0xfffe ;reset vector
dw 0xf800
Last edited: