Silicon Laboratories Stepper Machine Manual do Utilizador Página 33

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 40
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 39 40

Comentários a estes Manuais

Sem comentários