i have a problem with some lines of code.
If i want to store a input e.g. pinb2 in an array, the compiler finished only with error 102.
some code snip:
Code: Select all
SS = An 'is low
SCK = An 'is low
for Bitload = 31 to 0 step -1
SCK = aus 'is high
Delay_ms(2)
InBits_Miso[bitload] = MISO 'get high or low from pin B2
Delay_ms(2)
SCK = An ' is low
next Bitload
InBits_Miso is a Bit-Array of 32 elements
MISO is a input-pin of the ATmega32
see the picture for more code snip
someone an idea or i have overlooked something ?