|
|
Information
| 说明: |
建议参照本版块置顶帖内容输入必要信息 |
| 芯片型号: |
TL7218A |
| 驱动SDK版本: |
tl platform SDK 3.9.0 |
Please help me.
I want to use the spi_master_read function. My code:
uint8_t buffer[12];
...
gpio_set_low_level(GSPI_CS);
delay_us(100); // slave need delay
spi_master_read(GSPI_MODULE, buffer, sizeof(buffer));
spi_master_write(GSPI_MODULE, buffer, sizeof(buffer)); // test only
gpio_set_high_level(GSPI_CS);
I expect to see on MOSI during transmission what I see on MISO during reception. But this is not the case, only the first byte is received.
This can be seen in the screenshot. This can be seen in the screenshot
|
-
SPI Exchange
|