Quote:
|
Originally Posted by emusteve
Mark's post has the greatest similarity to mine in code structure. I wonder why PrintByte worked for him, but using PORTA to transfer a value to another variable doesn't seem to?
Steve
|
I originally ran:
Code:
unsigned char port_a;
port_a = PORTA & 0x0f; /* mask off unused bits */
PrintByte(port_a);
to more closely emulate what you were doing. I simplified it to the minimum number of lines before posting.
This works as well, so it isn't an assignment problem.