Silicon Laboratories Stepper Machine Manual do Utilizador Página 25

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 40
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 24
AN428
Rev. 0.6 25
// since the mask is all ones
I2C_ByteWrite(curr.Reg_Addr, curr.Reg_Val);
} else {
//do a read-modify-write
curr_chip_val = I2C_ByteRead(curr.Reg_Addr);
clear_curr_val = curr_chip_val & ~curr.Reg_Mask;
clear_new_val = curr.Reg_Val & curr.Reg_Mask;
combined = clear_new_val | clear_curr_val;
I2C_ByteWrite(curr.Reg_Addr, combined);
}
}
}
// check LOS alarm for the xtal input
// on IN1 and IN2 (and IN3 if necessary) -
// change this mask if using inputs on IN4, IN5, IN6
reg = I2C_ByteRead(218) & LOS_MASK;
while(reg != 0){
reg = I2C_ByteRead(218) & LOS_MASK;
}
I2C_ByteWrite(49, I2C_ByteRead(49) & 0x7F); //FCAL_OVRD_EN = 0
I2C_ByteWrite(246, 2); //soft reset
I2C_ByteWrite(241, 0x65); //DIS_LOL = 0
// wait for Si5338 to be ready after calibration (ie, soft reset)
counter = 0;
while(counter < SI5338_DELAY) { counter++; }
counter = 0;
while(counter < SI5338_DELAY) { counter++; }
//make sure the device locked by checking PLL_LOL and SYS_CAL
reg = I2C_ByteRead(218) & LOCK_MASK;
while(reg != 0){
reg = I2C_ByteRead(218) & LOCK_MASK;
Vista de página 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 39 40

Comentários a estes Manuais

Sem comentários