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

BASCOM-AVR : xmega and adc compare function : REPLY

$
0
0
Hello, in the DAT file of e.g. ATXMEGA128A1 you can find following register: [b:8018c84dcb]ADCA_CMP[/b:8018c84dcb] In this register you load the threshold. Then you need to change the ADC interrupt in INTCTRL register from default CONVERSION COMPLETE (00) to Compare Result Below Threshold (01) or Compare Result Above Threshold (11) For ADC A Channel 0 iis this [b:8018c84dcb]ADCA_CH0_INTCTRL[/b:8018c84dcb] Then the ADC A Channel 0 Interrupt (ADCA_CH0) is reacting on threshold. MAK3

Viewing all articles
Browse latest Browse all 20562

Trending Articles



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