I have a problem running DAC60508 MRTET.
I have been sitting for several days and I have no signal at the output :-(
These are the configuration bits I send:
uint8_t ID[] = { 0x01 , 0x00, 0x00 };
uint8_t SYNC[] = { 0x02 , 0x00, 0xFF };
uint8_t CONFIG[] = { 0x03 , 0x00, 0x00 };
uint8_t GAIN_[] = { 0x04 , 0x00, 0xFF };
uint8_t TRIGGER[] = { 0x05 , 0x00, 0x0A };
uint8_t BRDCAST[] = { 0x06 , 0x00, 0x00 };
uint8_t STATUS[] = { 0x07 , 0x00, 0x00 };
This is the SPI configuration:
hspi1.Instance = SPI1;
hspi1.Init.Mode = SPI_MODE_MASTER;
hspi1.Init.Direction = SPI_DIRECTION_2LINES;
hspi1.Init.DataSize = SPI_DATASIZE_8BIT;
hspi1.Init.CLKPolarity = SPI_POLARITY_LOW;
hspi1.Init.CLKPhase = SPI_PHASE_2EDGE;
hspi1.Init.NSS = SPI_NSS_SOFT;
hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_256;
hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB;
hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
hspi1.Init.CRCPolynomial = 7;
hspi1.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE;
hspi1.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
Where is the problem?
Thank you!
Andrew