Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
This is the Device SPI register;
This is the halcogen part;
And the last one this is the code
#include "sys_common.h" #include "sys_core.h" #include "spi.h" /* USER CODE BEGIN (1) */ /* USER CODE END */ /** @fn void main(void) * @brief Application main function * @note This function is empty by default. * * This function is called after startup. * The user can use this function to implement the application. */ /* USER CODE BEGIN (2) */ uint16 TX_Data[] = {0xF7D0}; uint16 RX_Data[] = {}; /* USER CODE END */ int main(void) { /* USER CODE BEGIN (3) */ spiDAT1_t dataconfig1_t; dataconfig1_t.CS_HOLD = FALSE; dataconfig1_t.WDEL = TRUE; dataconfig1_t.DFSEL = SPI_FMT_0; dataconfig1_t.CSNR = 0xFE; spiInit(); spiSendData(spiREG1, &dataconfig1_t, 16, &TX_Data); spiSendAndGetData(spiREG1, &dataconfig1_t, 16, &TX_Data, &RX_Data); while(1) { }; /* USER CODE END */ return 0; }
so nothing happen in the DAC part. Can anyone help me ?