请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TDA4VM-Q1 您好、专家、
除以零可能导致数据异常。 因此、客户需要检测错误并处理异常。
一旦发生了除零,我们是否有任何寄存器可供检查,或者有任何方法可检查它?
我在这里看到了基普、请大家发表一些评论。 客户需要 更多详细信息。 请提供您的意见。 谢谢。
此致、
张弗雷迪
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.
您好、专家、
您好、Fredy、
参考 Cortex-R5技术参考手册 r1p2 (arm.com)、SCTLR 中的 DZ 位可被置位、以便 在发生零分频时生成一个未定义指令异常。
请注意 、某些编译 器使用__aeabi_uidivmod API 进行除法运算、此 API 会检查除数的值、如果该值设置为0、则会忽略除法运算。
此致、
KB