kotsam
Member level 1
Bitwise check
Hey Guys
i have problem and i hope that someone can help for solving it ,
the problem is that i need to compare the pic input with char (8bytes) lets say that i have RB1,RB2,RB3 confguired as input; how can i compare the status of them with char first three bits , i thought about shift but the problem how can i combine RB1,RB2,RB3 in the char and compare them; i hope tha explained my self clearly but if not imagine that you have dip switch connect it to the pic and you need to compare results with internal char .
thanks
Hey Guys
i have problem and i hope that someone can help for solving it ,
the problem is that i need to compare the pic input with char (8bytes) lets say that i have RB1,RB2,RB3 confguired as input; how can i compare the status of them with char first three bits , i thought about shift but the problem how can i combine RB1,RB2,RB3 in the char and compare them; i hope tha explained my self clearly but if not imagine that you have dip switch connect it to the pic and you need to compare results with internal char .
thanks