Datasheet
www.ti.com
repeat(#3h)
data(0084h) = *AR7+ ; copy the NMI vector
AR7 = #00240h
repeat(#35)
data(00C0h) = *AR7+ ; copy INT0, INT1,
* initialize waitstates:
DP = #00000h ; point to page zero
IFR = #1 ; reset any old interrupt on pin INT0
@IMR | = #01 ; allow INT0
SXM=#0 ; no sign extension
* enable global interrupt (this is even required, if no IRQ routine is used
* by this program because the debugger needs to do its backgroud interrupts)
INTM = #0 ; enable global IRQ
*Setup up registers
Ready: BK=#21 ;circular addressing
AR7=#sinevals ;Point to sine table
DP=#sinevals ;point to correct Data Page
*Loop to repeatedly send Sine Wave
ReSend:
dgoto ReSend ;delayed goto (saves cycles)
port(#0)= *AR7+%
.end
39
SLAU032C– February 2001– Revised April 2011 Software
Submit Documentation Feedback
Copyright © 2001–2011, Texas Instruments Incorporated