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.
您好!
我在 I2C 部分中发现了 HalCoGen 和 TMS570LS3137的 TRM 之间明显的差异。
当您将光标悬停在开漏复选框上时、会出现一个弹出窗口、显示"Enable open DRAIN output"、我认为这意味着如果您选中该复选框、它将被启用。 生成的代码将1放入 PDR 寄存器中。 但是、当您查看 TRM (spnu499C - 2018年3月、第1606页)时、会发现1 -开漏功能已禁用。
什么是正确的、HalCoGen 还是 TRM?
此致
Andy
尊敬的 Andy:
向 I2CPDR 写入"1"是为了启用开漏功能。