Other Parts Discussed in Thread: SYSCONFIG,
Tool/software:
Hi,
I working on TCAN2451-Q1 SBC Chip, just configured the SPI lines in sysconfig , with active low chip select and the bitrate configured is 500kHZ. My first target is to read the Device id register and also to read SPI Config register from SBC chip. While i am reading from the Chip, the simple code is attached here
GPIO_writePin(SPI_CS_GPIO_PIN, 0);
DEVICE_DELAY_US(500);
data_address = ((0x04 << 1) | 0x00);
SPI_writeDataNonBlocking(SPID_BASE, data_address);
DEVICE_DELAY_US(500);
GPIO_writePin(SPI_CS_GPIO_PIN, 1);
while(SPI_isBusy(SPID_BASE));
Sbc_out = SPI_readDataNonBlocking(SPID_BASE);
I am getting the Sbc_out value as 0x6043, and even if i read the register for SPI_Config which is 0x09, i am getting the same output value.
Can you please suggest if any init sequence for initially to be followed and read the SBC SPI lines.
Please note that from hardware side VCC1 and VCC2 is ON





