How to use symbol, and Readadc with X2 parts ?

jojojo

Senior Member
Code:
Do
ReadAdc A.0, b0
Debug
Loop

'Works fine, obvious.
'***********************
Symbol Voie1=A.0
Do
ReadAdc Voie1, b0
Debug
Loop

No error message, but not reading !
'*********************************
Symbol Voie1=PinA.0        'No error here
Do
ReadAdc Voie1, b0          'but error here ...
Debug
Loop
It seems specific when using ADC reading, on X2 parts.
Have anybody an explanation ?

Thanks.
 
Top