English
Language : 

TLV5639C Datasheet, PDF (14/17 Pages) Texas Instruments – 2.7 V TO 5.5 V LOW POWER 12-BIT DIGITAL-TO-ANALOG CONVERTERS WITH INTERNAL REFERENCE AND POWER DOWN
TLV5639C, TLV5639I
2.7 V TO 5.5 V LOW POWER 12-BIT DIGITAL-TO-ANALOG
CONVERTERS WITH INTERNAL REFERENCE AND POWER DOWN
SLAS189 – MARCH 1999
APPLICATION INFORMATION
; 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 62h, dac_ctrl
clrc INTM
; enable interrupts
; loop forever!
next
idle
b
next
–––––––––– Interrupt Service Routines––––––––––
INT1:
ret
; do nothing and return
INT23: ret
; do nothing and return
TIM_ISR:
; timer interrupt handler
add #1h ; increment accumulator
sacl 60h
out 60h, dac_data ; write to DAC
clrc intm
; re-enable interrupts
ret
; return from interrupt
.END
14
• POST OFFICE BOX 655303 DALLAS, TEXAS 75265