theinfamousbob
Member
I've built a small tank-tread robot with a 68HC11E2 chip, and am having some problems reading sensors. My motor outputs work fine, but the 'bot will only read one sensor, on the LSB line. I know both sensors work, because I can switch and it reads the other sensor on the LSB. When the 68HC11 boots in single-chip mode (like it's set to do right now), Port C (which I'm trying to use) defaults to all inputs. I'm just not sure why I can't read anything other than the LSB. My code is reading the entire byte, not just a bit. I'm using sbasic to write the code, which right now is set to trigger the left motor for the left sensor and the right motor for the right sensor. Any ideas/experiences?
-Infamous
-Infamous