I am setting a midpoint of a ADC read and watching the ADC to see if it goes above that midpoint. If so a 16 bit counter is incremented once. (Then I wait for a zero and exit blah, blah, blah.)
When I assembly it I get a error message at the adiw instruction "error: syntax error, unexpected INTEGER, expecting REGISTER or REGDEF". What does that mean and where am I screwing up?
; IS_A_ONE: adiw r24:23,1 ;increment the frequency counter A_ONE_LOOP: rcall READ_ADC lds TEMP, 0x0064 ;get stored MSD midpoint from RAM cp TEMP, LIMITH brsh A_ONE_LOOP ;wait for LIMITH to go below midpoint (=0) ret ;