Have you tried change "single" to free in adc.bas?
In Attiny841 I use
[code:1:f9cf63c633]Admuxa = &B0010_1011' Differential
Adcsra = &B1111_0101' 'Auto Trigger enable (Bit5)
Adcsrb = 0 'Free Running mode
W1 = Adc
If W1.9 = 1 Then W1 = W1 Or &HFE00 'for negative values
[/code:1:f9cf63c633]
No interrupts.
↧