登录
首页 » Com Port » 本程序是i2c总线读写一个字节的程序。在写过程序中,不一定非要检测i2c的应答位,可以直接延时过去就行,但是在读过程中必须给应答信号,读完发停止位,一定确认所发...

本程序是i2c总线读写一个字节的程序。在写过程序中,不一定非要检测i2c的应答位,可以直接延时过去就行,但是在读过程中必须给应答信号,读完发停止位,一定确认所发...

于 2022-02-02 发布 文件大小:1.85 kB
0 145
下载积分: 2 下载次数: 1

代码说明:

本程序是i2c总线读写一个字节的程序。在写过程序中,不一定非要检测i2c的应答位,可以直接延时过去就行,但是在读过程中必须给应答信号,读完发停止位,一定确认所发的信号都发上了。否则在连续地址读的过程中可能不会出错,但是在随机度过程中就会出错,我的程序就是在给停止信号时没有给上,24cxx一直在输出数据,结果读出错。找着问题后我的程序只加入了一条命令便完全正常。-i2c bus read and write a byte procedures. The written procedure, not necessarily require the detection i2c-response, and can directly past trip delay, but the process must be read to the response signal, stopped at reading, we recognize the signals are on the fat. Otherwise, the address read for the course could not go wrong, but the randomness of the process would be a mistake, I was in the process to stop for no signal, 24cxx in output data, read errors. I discovered the problem after the procedure just joined the order of a completely normal.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是通过COM口对声波触摸屏控制卡进行仿真测试的程序的源码. BCB...
    这是通过COM口对声波触摸屏控制卡进行仿真测试的程序的源码. BCB-through COM ports on acoustic touch screen control card for simulation testing procedures for the source. BCB
    2023-08-23 10:15:04下载
    积分:1
  • 楼宇自控系统 希望对各位有用
    楼宇自控系统 希望对各位有用-Building Automation System hope useful to you!
    2022-10-15 10:10:03下载
    积分:1
  • 使用WINDOWS API接口,已封装成WINAPI动态库,可直接使用
    使用WINDOWS API接口,已封装成WINAPI动态库,可直接使用-use Windows API interface, Packaging has become WINAPI DLL can be used directly
    2022-02-16 00:26:08下载
    积分:1
  • 串行通信C语言代码,用于DOS下编程,比较完整
    串行通信C语言代码,用于DOS下编程,比较完整-serial communication C language code for DOS programming, a more comprehensive
    2023-07-26 01:40:03下载
    积分:1
  • 采用VC6的API函数编写串口程序,实现串口传输数据。
    采用VC6的API函数编写串口程序,实现串口传输数据。-using the API function VC6 prepared serial procedures to achieve serial transmission of data.
    2023-06-03 13:55:03下载
    积分:1
  • 项目描述:是一个串行端口记录工具。它听的…
    项目描述: slsnif is a serial port logging utility. It listens to the specified serial port and logs all data going through this port in both directions. Serial line sniffer是一个串行端口记录工具。它监听指定的串行端口并记录所有通过这个端口的两个方向的数据。 来源:http://freshmeat.net slsnif是一个串行端口日志工具。它监听特殊的串口,记录所有通过这具串口的两个方向的数据。 类别: Development Status: 5 - Production/StableEnvironment: Console (Text Based)Intended Audience: DevelopersLicense: GNU General Public License (GPL)Operating System: LinuxProgramming Language: CTopic: Communications, Debuggers -Project Description : slsnif is a serial port logging utility. It listens to the specified serial port and logs all data going through this port in both directions. Serial line sniffers is a serial port records tools. It eavesdropping designated serial port and record all through the ports of the two directions of data. Source : http://freshmeat.net slsnif is a serial port log tools. It eavesdropping special serial ports, a record of all serial passage with the two directions of data.
    2022-04-30 16:50:17下载
    积分:1
  • This paper introduces a new use of serial communications DSP remote online progr...
    本文介绍了一种新的使用串行通信进行DSP远程在线编程方法。对设计中的主要技术:DSP与PC机的串口通信、Flash编程以及DSP自引导等进行了详细介绍。结合TI公司的TMS320VC33处理器,阐述了具体的实现方法-This paper introduces a new use of serial communications DSP remote online programming method. On the design of the main techniques: DSP and PC-serial communication, Flash programming as well as the DSP, such as self-guided introduction in detail. Combination of TI
    2023-03-24 13:00:03下载
    积分:1
  • getmywish结合visual basic60和msdn帮助,编写了一个两个串口的受到发送程序,该程序在win98,win2000,winxp下调试通过,希...
    getmywish结合visual basic60和msdn帮助,编写了一个两个串口的受到发送程序,该程序在win98,win2000,winxp下调试通过,希望和大家工勉-getmywish combine visual and VARIANT basic60 help prepared a two Serial sent by the program, which in win98, WIN2000. Debugging under winxp passed, and we hope that the Mian
    2022-04-24 02:41:46下载
    积分:1
  • 使用VC.NET编写串口通信程序,是很好的串口调试软件
    使用VC.NET编写串口通信程序,是很好的串口调试软件-Use VC.NET write serial communication program is a very good serial debugging software
    2022-12-19 08:20:04下载
    积分:1
  • kirl decoder prepared with the serial communication program, which can be displa...
    用kirl c51编写的串口通讯程序,该程序可以在编辑器上显示串口数据 -kirl decoder prepared with the serial communication program, which can be displayed on the editor serial data
    2022-03-02 03:41:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载