-
Thread
STM32F103RFT6 I2C2 keine Funktion
Peripheral Disable */ I2C2->CR1 &= ~I2C_CR1_PE; /* 7. Timing konfigurieren */ I2C2->CR2 = 36; // APB1 MHz I2C2->CCR = 180; // 100kHz @36MHz I2C2->TRISE = 37; // laut Datenblatt /* 8. Peripheral Enable */ I2C2->CR1 |= I2C_CR1_PE; /* 9. Dummy Read
I2C_Direction_Transmitter); while (!(m_pI2C->SR1 & I2C_SR1_ADDR)); volatile uint32_t tmp; tmp = m_pI2C->SR1; tmp = m_pI2C->SR2; (void)tmp; while (!(m_pI2C->SR1 & I2C_SR1_TXE)); m_pI2C->DR = addr; while (!(m_pI2C->SR1 & I2C_SR1_BTF)); m_pI2C->DR =
-
Thread
c# Lade- Entladeprogramm für Akkus
i] + j; tmp[j] = fifo[(fifo_wr[i] + j)%256]; } int crc = sub_crc_byte(tmp, len + 3); if ((crc & 255) == tmp
{ for (int j = 0; j < tmp.Length; j++) { //listBox4.Items.Add(j.ToString() + "__" + tmp[j].ToString());