找回密码
 立即注册

微信扫码登录

查看: 10|回复: 0

[SPI] GSPI master read problem

[复制链接]

1

主题

0

回帖

15

积分

英勇黄铜

积分
15
发表于 4 小时前 | 显示全部楼层 |阅读模式 来自 欧洲
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

SPI Exchange
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 |沪公网安备31011502403548号 )

GMT+8, 2026-4-1 11:12 , Processed in 0.096260 second(s), 26 queries .

Powered by Discuz! 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

快速回复 返回顶部 返回列表