After doing some reading, I found the Logical Operator function will do exactly what I need.
After grabbing the data from PORTA, I
resulta = PORTA & %00001111' Returns 8-bit binary result for right four bits
resultb = PORTA & %00110000 ' Returns 8-bit binary result for bits 4 and 5
Just took a bit of reading, but have it working now.
John


Reply With Quote

Bookmarks