Silicon Laboratories Stepper Machine User Manual Page 33

  • Download
  • Add to my manuals
  • Print
  • Page
    / 40
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 32
AN428
Rev. 0.6 33
// of this transfer
STO = 1; // Send STOP to terminate transfer
SMB_BUSY = 0; // Free SMBus interface
}
break;
default:
FAIL = 1; // Indicate failed transfer
// and handle at end of ISR
break;
}
if (FAIL) // If the transfer failed,
{
SMB0CF &= ~0x80; // Reset communication
SMB0CF |= 0x80;
STA = 0;
STO = 0;
ACK = 0;
FAIL = 0;
SMB_BUSY = 0; // Free SMBus
}
SI = 0; // Clear interrupt flag
}
//-----------------------------------------------------------------------------
// Timer2 Interrupt Service Routine (ISR)
//-----------------------------------------------------------------------------
//
// A Timer2 interrupt indicates an SMBus SCL low timeout.
// The SMBus is disabled and re-enabled if a timeout occurs.
Page view 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 39 40

Comments to this Manuals

No comments