I have a clock signal of 90 khz and need to read the data.
So far I have not been able to get my code quick enough to read the data.
Is it possible to branch from the Arduino's code to an assembler routine and back to the Arduino's code.
The psudeo code is somethin like this
Wait till clock low for 100 ms
jump to assembler routine
loop 20 times
on clock falling edge read data
if data = 1
result = result +1
else
shift left result
end loop
end assember routine
serial.print(result)