Sorry I missed this one :oops:
[quote:d97ab09ca3]Replacing Varptr(dacb_ch0datal) with Varptr(daca_ch0datal)[/quote:d97ab09ca3]
:?
I guess I have to look further as well.
Are you using the latest version 2.0.7.8 ?
back track, make a simple program to get the DACA to put out an analog voltage for testing, to verify hardware
[code:1:d97ab09ca3]$regfile = "xm128a1def.dat"
$crystal = 32000000 '32MHz
$hwstack = 128
$swstack = 128
$framesize = 256
'setup the DACA using porta.2
Config Daca = Enabled , Io0 = Enabled , Channel = Single , Reference = Int1v , Interval = 64 , Refresh = 64
Start Daca
Dim Lcd_contrast As Word 'will use DAC to control LCD contrast (Vo)
Lcd_contrast = 4095
Daca0 = Lcd_contrast '1 V output on porta.2[/code:1:d97ab09ca3]
↧