Code:
Dim Temp as Byte Temp = PORTB
If the required pins are not masked, then all the PORT will be read, and a wrong value will be read depending on what state the `not scaned' pins are. If you mask a part of a PORT, then you only read the pins you have masked.
I found a thread which is very useful when it comes to mask pins of a PORT. Follow this link to see how masking can be done.
http://www.protonbasic.co.uk/showthr...011#post454011
Joseph


Menu
Recent Articles


Using PDS with SPI GLCD based on ST7565R Controller
Graphic LCDs based on the ST7565 are cheaper then GLCDs with other controllers. SPI requires only four pins. If the circuit