在写代码过程中发现无法读取数据,对I2C信号进行抓取后发现在数据
写入后一直没有发送停止位,我调用的是“CyUSBSerial.h”中给出的接口,将停止位进行使能,但是不知为何没有发送停止位,时钟处于下拉状态
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
直接用TI的sample代码(不编译)有问题吗?
1>------ Build started: Project: dlpc347x, Configuration: Debug Win32 ------
1>dlpc34xx.c
1>dlpc347x_internal_patterns.c
1>dlpc_common.c
1>cypress_i2c.c
1>dlpc347x_samples.c
1>Generating Code...
1>dlpc347x.vcxproj -> C:\DLP_Products\DLPC3478\ti.com\DLPC-API-1.10_TIDLP\build\vs2017\Debug\dlpc347x.exe
1>C:\DLP_Products\DLPC3478\ti.com\DLPC-API-1.10_TIDLP\build\vs2017\dlpc347x\..\..\..\third_party\cyusbserial\cyusbserial.dll
TI测试的是基于VS的,
QT从理论上肯定行,但是需要调试和测试。
我的意识是一步一步来。
请把QT的完整projectfile贴出来一起调试,或者您按照I2C协议调试,咨询一下在QT forum:
我们直接测试这个是没有问题的,您使用VS进一步封装出现问题,可能是VS兼容性问题,请联系Microsoft工程师比较熟悉。
1>------ Build started: Project: dlpc347x, Configuration: Debug Win32 ------
1>dlpc34xx.c
1>dlpc347x_internal_patterns.c
1>dlpc_common.c
1>cypress_i2c.c
1>dlpc347x_samples.c
1>Generating Code...
1>dlpc347x.vcxproj -> C:\DLP_Products\DLPC3478\ti.com\DLPC-API-1.10_TIDLP\build\vs2017\Debug\dlpc347x.exe
1>C:\DLP_Products\DLPC3478\ti.com\DLPC-API-1.10_TIDLP\build\vs2017\dlpc347x\..\..\..\third_party\cyusbserial\cyusbserial.dll