Home > other >  max5494
max5494

Time:11-20

With spi write how max5494 single-step scientific writing, run at full speed cannot write data?

CodePudding user response:

Run at full speed to delay 1 ms, I do not know why?
Supposedly has determined the wait?
I=100;
I=i<6,=I/256 b1, b2=I % 256;
SPI_CS1=0;

While (SPI_I2S_GetFlagStatus (SPI1, SPI_I2S_FLAG_TXE)==RESET);//? I2e??? ¨ mu? SPI + e?????? Ee?? O? Who? : · ¢? I? O '??? Plus or minus e??????

SPI_I2S_SendData (SPI1, 0 x01);//I ¨ yiaeespix · 1 ¢? IO??? Ey? Y
//retry=0;

While (SPI_I2S_GetFlagStatus (SPI1, SPI_I2S_FLAG_TXE)==RESET);//? I2e??? ¨ mu? SPI + e?????? Ee?? O? Who? : · ¢? I? O '??? Plus or minus e??????
Delay_ms (1);
SPI_I2S_SendData (SPI1, b1);//I ¨ yiaeespix · 1 ¢? IO??? Ey? Y
While (SPI_I2S_GetFlagStatus (SPI1, SPI_I2S_FLAG_TXE)==RESET);//? I2e??? ¨ mu? SPI + e?????? Ee?? O? Who? : · ¢? I? O '??? Plus or minus e??????
Delay_ms (1);
SPI_I2S_SendData (SPI1, b2);//I ¨ yiaeespix · 1 ¢? IO??? Ey? Y
While (SPI_I2S_GetFlagStatus (SPI1, SPI_I2S_FLAG_TXE)==RESET);//? I2e??? ¨ mu? SPI + e?????? Ee?? O? Who? : · ¢? I? O '??? Plus or minus e??????
//while (SPI_I2S_GetFlagStatus (SPI1, SPI_I2S_FLAG_TXE)==RESET);//mu e 'yey? Y?? '?? Present??
Delay_ms (1);
SPI_CS1=1;
  • Related