UIC00B stepping non stop and finally MPLAB IDE hang
Posted: Fri Mar 29, 2013 3:22 pm
Hi,
When I step through my code, I noticed that when come to bit shifting (data >> = 1), the UIC00B will step non-stop and finally hang.
Refer my code below.
Do you encounter the same thing? Please give some advice how to solve this.
When I step through my code, I noticed that when come to bit shifting (data >> = 1), the UIC00B will step non-stop and finally hang.
Refer my code below.
Do you encounter the same thing? Please give some advice how to solve this.
- CODE: SELECT_ALL_CODE
void OWWriteByte(int data)
{
int i = 0;
// Loop to write each bit in the byte, LS-bit first
for (i= 0; i < 8; i++)
{
OWWriteBit(data & 0x01);
// shift the data byte for the next bit
data >> = 1;
}
}