Datasheet
www.ti.com
TLV5639C
TLV5639I
SLAS189C – MARCH 1999 – REVISED JANUARY 2004
; File: RAMP.ASM
; Function: ramp generation with TLV5639
; Processors: TMS320C203
; { 1999 Texas Instruments
;---------- I/O and memory mapped regs ---------------
.include regs.asm
dac_data
.equ
0084h
dac_ctrl
.equ
0085h
;------------- vectors -------------------------------
.ps
0h
b
start
b
INT1
b
INT23
b
TIM_ISR
----------Main Program----------
.ps
1000h
.entry
start:
ldp
#0
; set data page to 0
; disable interrupts
setc
INTM
; disable maskable interrupts
splk
#0ffffh, IFR
splk
#0004h, IMR
; set up the timer
splk
#0000h, 60h
splk
#0042h, 61h
out
61h, PRD
out
60h, TIM
splk
#0c2fh, 62h
out
62h, TCR
splk
#0011h, 62h ; set up the DAC
; SPD=1 (FAST mode) and ; REF1=1 (2.048 V internal ref enable)
out
14