Other Parts Discussed in Thread: HALCOGEN,
Dear All,
As the title says, I want to implement SPI communication in the TMS570 devkit. Could you please confirm if what I am doing is correct?
1.Driver INIT
- Halcogen -> TMS570LS3137ZWT Tab -> Driver Enable -> Enable SPI3 driver
2. SPI3 settings (8bit transmission)
- SPI3 Global Tab -> check Master Mode and Internal Clock
- SPI3 Data Formats Tab -> Data Format0 Charlen 8 settings
- SPI3 Port Tab -> SOMI output, SIMO input, CLK output, ENA input, SCS[0] output settings
3. IRQ settings
- TMS570LS3137ZWT Tab -> VIM channel 32-63 Tab -> 38:MIBSPI3 Level 1 Enable
4. Operation
- SPI Data Sending: spiInit(); -> spiEnableNotification(spiREG3, (uint32)((uint32)1U << 8U)); -> spiSendData(spiREG3, &dataconfig1, sizeof(cpuMessagebuf)/2, cpuMessagebuf);
- SPI Data Receive: Read data by executing mibspi3LowLevelInterrupt() -> spiNotification() -> spiGetData().
Is this how it works?
I will wait for advice from experts.
Best Regards,
IBLEE.