Hi,
I need to read all input pins form the C.x pins with one command using a 20M2.
I found in the manual, that there is a command like:
Let b1 = pins & %110000000 (found on page 113 of the manual basic commands)
I also found on page 18 of the manual basic commands
Let b1 = pinsB
Is it possible to use also this for pinsC?
Let b1 = pinsC ?
Furthermore I found in the forum post: Accessing portC on 14M?? an discussion,
which ended up with using
Peek 07, b1, ; read the PortC register into byte variable b1. ....
I assume that 07 is the address of pportC0..7?
Which one is now the correct one / can be used ?
Thanks in advance
kind regards
alabatros
P.S: I searched the forum, but wasn't able to find a related questions / answe
I need to read all input pins form the C.x pins with one command using a 20M2.
I found in the manual, that there is a command like:
Let b1 = pins & %110000000 (found on page 113 of the manual basic commands)
I also found on page 18 of the manual basic commands
Let b1 = pinsB
Is it possible to use also this for pinsC?
Let b1 = pinsC ?
Furthermore I found in the forum post: Accessing portC on 14M?? an discussion,
which ended up with using
Peek 07, b1, ; read the PortC register into byte variable b1. ....
I assume that 07 is the address of pportC0..7?
Which one is now the correct one / can be used ?
Thanks in advance
kind regards
alabatros
P.S: I searched the forum, but wasn't able to find a related questions / answe
Last edited: