I have a bit-addressable var (ibase) that I am loading with a value and then rotating--placing the msb on an I/O pin (SData). The SData pin never changes--it stays high. What am I doing wrong? Thanks!
for(i=0;i<8;i++) { SClock = 0; SData = ibase^7; ibase = _irol_(ibase,1); delay(); SClock = 1; timer0_delay(5); }
Not really throwing punches; I expressed my gratitude to all--you too. Obviously, I am a neophyte on the HL side of embedded programming, or I would not have asked such an (for you) elementary question. I didn't just take the OPs suggestion and paste it, but also wanted to know _how_ it worked. The reason that I said that I thought the classes reference was gratutitous, was that my inexperience was implicit in such a fundamental question. Of course I need to learn more. Anyway, thanks again for a more complete explanation--it all helps!