Trying to get my head around the new facilities on the X2 chips, if any PIN can be I/O then is it possible to do this ?
dirsc = %00000000 ' all inputs
readtemp12 c.1,w1 ' save in b0 and b1
i.e having upto 32 temperature recorders ( on 40X2 ) !
The PE doesn't throw a syntax error, and I've not got a chip to try it on (yet) !
Bit confused because it doesn't object to this either !
dirsc = %00000000 ' all inputs
readtemp12 99,w1 ' save in b0 and b1
but does to this ( which I would expect )!
dirsc = %00000000 ' all inputs
readtemp12 c.9,w1 ' save in b0 and b1
With:- ( the port pin number is out of range strange error message ? )
readtemp12 c.9,w1 ' save in b0 and b1
^
Error: This command requires the pin number (X.Y) not the variable (pinX.Y)!
Another point I noticed is that an extra byte is used for ports a,b,d for those who need to optimize code .
Also it passes :-
readtemp12 7,w1
Which I guess ( maybe ) is using port D ( the X1 input ports) ?
PE version 5.2.4 and tried on laptop aswell .
Any thoughts ?
Cheers Martin
dirsc = %00000000 ' all inputs
readtemp12 c.1,w1 ' save in b0 and b1
i.e having upto 32 temperature recorders ( on 40X2 ) !
The PE doesn't throw a syntax error, and I've not got a chip to try it on (yet) !
Bit confused because it doesn't object to this either !
dirsc = %00000000 ' all inputs
readtemp12 99,w1 ' save in b0 and b1
but does to this ( which I would expect )!
dirsc = %00000000 ' all inputs
readtemp12 c.9,w1 ' save in b0 and b1
With:- ( the port pin number is out of range strange error message ? )
readtemp12 c.9,w1 ' save in b0 and b1
^
Error: This command requires the pin number (X.Y) not the variable (pinX.Y)!
Another point I noticed is that an extra byte is used for ports a,b,d for those who need to optimize code .
Also it passes :-
readtemp12 7,w1
Which I guess ( maybe ) is using port D ( the X1 input ports) ?
PE version 5.2.4 and tried on laptop aswell .
Any thoughts ?
Cheers Martin