Quote Originally Posted by oneohthree View Post
Would it be smarter if I just transmit two bits back because I only need the address bits on the other side anyway. That would not involve any bit changing just sending two bits. Also, would there be any reason why the microcontroller would not pick up anything on the other side or do it intermittently even though I am sending the same thing repeatedly? Also, if I were to do that how could, could I just reencode the code that was received and then send only the 4/8 bits that are part of the address?
Well, what I'm getting at is that you're only receiving X number of possible numbers which means that you're only going to send out X number of possible number. You could replace all that bit changing business with something like:
If X = 10 then X = 15...
Yes, it would probably be a bit more complicated than that, but you could 'name' all of your numbers (i.e. const warning=10 const alert=12 tracking=14 and so on) so you could more easily keep track of everything.