Locale Icon
English
EngineerZone
EngineerZone
嵌入式安全与1-Wire
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
  • 产品和应用

    产品和应用

    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS专区
    • 生物/电化学/磁场/温度传感器专区
    • 接口和隔离专区

     

    • Power 中文专区
    • ADUC微处理器专区
    • 时钟与定时
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区

     

    • 嵌入式安全与1-Wire
    • Trinamic 运动控制和电机驱动
    • 能源存储系统(ESS)和电池管理系统(BMS)
    • 边缘人工智能SOC
    • 通用SOC/MCU
    • GMSL

     

    查看全部
  • 教育中心

    教育中心

    • 资源库
    • 技术支持参考库
    • 在线研讨会
  • 活动中心

    活动中心

    • 论坛社群活动
    • 论坛激励活动
嵌入式安全与1-Wire
  • 中文社区
嵌入式安全与1-Wire
文档 使用DS2480b芯片时,按照写流程写数据,当写0xe3数据时,识别为了“Set Command Mode”命令,使其0xe3数据无法写入到芯片内,是芯片的bug吗?
  • 问答
  • 讨论
  • 文档
  • 成员
  • 标签
  • Cancel
  • 文档
  • DS18B20+: FAQ
  • +DS18B20+PAR: FAQ
  • +DS18B20/GG8: FAQ
  • DS18B20/T&R-W: FAQ
  • +DS18S20+: FAQ
  • +DS2401: FAQ
  • +DS2431+: FAQ
  • DS2431P+T&R: FAQ
  • +DS2480B+: FAQ
  • -DS2480B: FAQ
    • DS2480B上电后需要多久MCU才可以通过UART接口和DS2480B进行通讯?
    • DS2480B如何驱动多个DS18B20或1-wire 器件,同时进行温度转换或大电流操作时有什么方案?
    • DS2480B的POL引脚在设置后多久生效?
    • DS2480B编程脉冲时间默认长度不够,如何调节脉冲时间?
    • 使用DS2480b芯片时,按照写流程写数据,当写0xe3数据时,识别为了“Set Command Mode”命令,使其0xe3数据无法写入到芯片内,是芯片的bug吗?
    • 如果DS2480B上电后接收到一个非预期的命令(比如F0),是否会导致DS2480B进入一个不确定状态后挂起?
    • 如果是两个DS2480B的one wire引脚连一起,串口分别接不同设备,是否可以有一个设备作为one wire的从设备使用呢?
  • +DS2482-100: FAQ
  • DS2484: FAQ
  • +DS2484Q+T: FAQ
  • +DS2488Q+: FAQ
  • +DS24B33Q+U: FAQ
  • +DS2502+: FAQ
  • +DS2502-E48: FAQ
  • DS2502: FAQ
  • DS2502P+T&R: FAQ
  • +DS2505+: FAQ
  • +DS28C36AQ+T: FAQ
  • +DS28E01-100+: FAQ
  • DS28E05: FAQ
  • +DS28E05P+: FAQ
  • +DS28E07+: FAQ
  • DS28E07: FAQ
  • +DS28E15: FAQ
  • DS28E17: FAQ
  • +DS28E17Q+T: FAQ
  • +DS28E38G+T: FAQ
  • +DS28E38Q+T: FAQ
  • +MAX31820MCR+: FAQ
  • MAX31850: FAQ
  • +MAX31850EATB+: FAQ
  • +MAX31850KATB+: FAQ
  • +MAX66300-24XEVKIT#: FAQ
  • 在2015年购买的DS2431P+读取内部的存储器数据全部为0x00,但最近购买的一批内部数据不是0x00,是不是Maxim更改了初始值?
  • 在一根电缆上带有11个DS18B20,长度为80米,利用AN244推荐的电路设计1-Wire主机,第一次能够正常读取,以后就会出现温度异常,请问如何解决?
  • 嵌入式安全与1-Wire 标签
  • 我们有一批DS2502编程写错了,请问还可以修改过来吗?有什么办法能够使这些产品继续使用?
  • 通用产品DS2431P+T的地址为0086H和0087H的寄存器的内容为制造商ID,那么这两个寄存器的初始值是什么

使用DS2480b芯片时,按照写流程写数据,当写0xe3数据时,识别为了“Set Command Mode”命令,使其0xe3数据无法写入到芯片内,是芯片的bug吗?

 

这种情况的确存在,对于这种情况的处理是: 如果发送的数据和切换到命令模式的命令(E3)相同时,要重复发送这个字节,这样就是告诉DS2480B要将0xE3作为数据处理而不是切换模式,下面的示例程序供您参考:

int OWBlock(unsigned char *tran_buf, int tran_len)
{
   unsigned char sendpacket[320];
   unsigned char sendlen=0,pos,i;

   // check for a block too big
   if (tran_len > 160)
      return FALSE;

   // construct the packet to send to the DS2480B
   // check for correct mode
   if (UMode != MODSEL_DATA)
   {
      UMode = MODSEL_DATA;
      sendpacket[sendlen++] = MODE_DATA;
   }

   // add the bytes to send
   pos = sendlen;
   for (i = 0; i < tran_len; i++)
   {
      sendpacket[sendlen++] = tran_buf[i];

      // duplicate data that looks like COMMAND mode
      if (tran_buf[i] == MODE_COMMAND)
         sendpacket[sendlen++] = tran_buf[i];             //重复发送和命令相同的字节

   }

   // flush the buffers
   FlushCOM();

   // send the packet
   if (WriteCOM(sendlen,sendpacket))
   {
      // read back the response
      if (ReadCOM(tran_len,tran_buf) == tran_len)
         return TRUE;
   }

   // an error occured so re-sync with DS2480B
   DS2480B_Detect();

   return FALSE;
}
 

 

Tags: DS2480B 嵌入式安全与1-Wire KA-01690
  • Share
  • History
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • ADI Community User Forum Terms of Use
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • ADI Community User Forum Terms of Use
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved