Hello,
Can some one please help me understand the highlighted line of code in the timer A interrupt routine. Does the shift mean that the right most bit is tranmitted to the PC. If so how does that happen( is put out on the p1.1 pin?)
__interrupt void Timer_A (void)
{
CCR0 += Bitime; // Add Offset to CCR0
if ( BitCnt == 0) // If all bits TXed, disable interrupt
CCTL0 &= ~ CCIE ;
else
{
CCTL0 |= OUTMOD2; // TX Space
if (TXByte & 0x01)
CCTL0 &= ~ OUTMOD2; // TX Mark
TXByte = TXByte >> 1;
BitCnt --;
}
}
Thanks in advance