Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hello all i want to Connect TMS570LS1224 launchpad as spi1 master with microchip dspic33ev256GM106 starter kit as spi slave
I enabled SPI1 driver in SPI1 Global: i enabled master mode and internal clock
In SPI1Data Format: i put 100000 hz baudrate
With 0 polarity and 0 phase
In SPI1Port i enabled SIMO ,MOSI,CLK,CS[0] and ENA as SPI functional
And the other CS[1-5] as GIO
Then generate code I followed spi example code
My first question
1) is it true what i did above?
2) do i need to include these lines in my code?
spiDAT1_t dataconfig1_t;
dataconfig1_t.CS_HOLD = true;
dataconfig1_t.WDEL = true;
dataconfig1_t.DFSEL = SPI_FMT_0 ;
dataconfig1_t.CSNR = 0xFE;