I've a simple question. I'm trying to send a 32-bit word serial on an AT89C1051U. I'm trying to use a for loop and send the LSB each time, and then shift to the right every iteration. This, in theory, would allow me to send each bit no problem. Here's the code I tried, but I kept getting array problems.
for(n=0; n<32; n++) { p3 = y; y >>= 1; }
"But you forgot to tell why you think this code is having "array problems"." That would be the "Subscript on non-array" message he gets at compile time by trying to access an unsigned long using array subscripting. "What's this code's expected behaviour" Did you actually read this thread?