Hmm, got me thinking now.
If i only wanted to look at RC0 , RC1 & RC2, i have now changed the TRISC to read:
Is this correct?Code:TRISC = %00000111 ' Set PORTC (0-2 input) rest Outputs
Also, would any change need to be done for this line? What does the $07 mean?
What would you suggest i put in the CASE ELSE statement. A return back to Main? It may be worth puttin in this statement to capture any other event.Code:MaskSwitch=PORTC & $07
Thank you.
Bookmarks