Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20684

Share your working BASCOM-AVR code here : ATXMEGA: Output a triangle wave from XRAM over DMA to DAC B : REPLY

$
0
0
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]

Viewing all articles
Browse latest Browse all 20684

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>