Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Leonliang
Level 2
Level 2
First like received 5 likes given 10 replies posted

Hello 英飞凌

Hello infineon

关于TC3XX系列uC有几个疑问想咨询,感谢你的时间

I have a few questions about the TC3XX series uC and would like to inquire. Thank you for your time

1、在TC3XX的safety manual中第5.51条安全机制 ESM[SW]:EVADC:VAREF_PLAUSIBILITY,在描述中提到,“This check shall be executed at least once per driving cycle or better cyclically after a predefined time or number of conversions”

1. In the safety manual of TC3XX, Article 5.51 Safety Mechanism ESM [SW]: EVADC: VAREF_ PLUSIBILITY, mentioned in the description, 'This check shall be executed at least once per driving cycle or better cyclically after a predefined time or number of conversions'

Leonliang_0-1694072300591.png

问题是:如果我们有一些比较重要的信号,比如电机相电流采样值,考虑到相电流总是变化且三相和需要为0,假设我们每个驾驶循环执行一次check,即在上电初始化时完成,这样会存在风险吗?或者说这样会导致这条安全机制的诊断覆盖率下降吗?

The question is: If we have some important signals, such as the sampling value of the motor phase current, considering that the phase current always changes and the three-phase sum needs to be 0, assuming that we perform a check once per driving cycle, which is completed during power on initialization, will there be any risks? Or will this lead to a decrease in the diagnostic coverage of this security mechanism?

2、其次,考虑到我们的通道0和通道1都已经被占用了,我们设想的是,使用alias 功能将CH1变为CH29,在正常工作时,CH1保持预期采样功能定期读取ADC信号(比如1ms读一次),然后定义一个check周期(比如40ms)去完成比较,这意味着我们需要在运行期间重新配置寄存器。

2. Secondly, considering that both channel 0 and channel 1 have already been occupied, we envision using the alias function to change CH1 to CH29. During normal operation, CH1 maintains the expected sampling function to periodically read ADC signals (such as once every 1ms), and then defines a check cycle (such as 40ms) to complete the comparison. This means that we need to reconfigure the registers during runtime.

问题是:在运行期间以一定周期(比如40ms)重新配置寄存器会带来什么风险,是可接受的吗?

The question is: Is it acceptable to reconfigure registers during a certain period of time (such as 40ms) during runtime?

0 Likes
1 Solution
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Leonliang ,

理论上是可以,我觉得那为什么不直接设置CH29的触发源,就无需定期的配置ALIAS寄存器了。

BR,

Jeremy

View solution in original post

6 Replies
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi
1) 假设我们每个驾驶循环执行一次check,即在上电初始化时完成,这样会存在风险吗?或者说这样会导致这条安全机制的诊断覆盖率下降吗?
-- 我认为是,所以可以采用预定时间或转换次数后循环执行一次检查。
2)我建议你直接采用safety manual给出的建议操。

2023-09-08_14h58_37.png

BR,
Jeremy

0 Likes
Leonliang
Level 2
Level 2
First like received 5 likes given 10 replies posted

Hi

2)我建议你直接采用safety manual给出的建议操作

--由于设计之初未考虑这块,所以当前不好变动。我的问题仍然是“在运行期间以一定周期(比如40ms)重新配置寄存器会带来什么风险,是可接受的吗?”

谢谢

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Leonliang ,

我不知道我是否完全理解你的意思,CH1正常工作时是定期(比如1ms读一次)采用连接其上的模拟信号,然后使用alias 功能,使得另一个request source (周期为:40ms)触发CH1, 但实际采样的是CH29上面的信号Vmts,而为了完成这个目的,你需要定期的配置ALIAS寄存器,我的理解对吗?

BR,

Jeremy

0 Likes
Leonliang
Level 2
Level 2
First like received 5 likes given 10 replies posted

是的是的,请问这样合适吗?

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Leonliang ,

理论上是可以,我觉得那为什么不直接设置CH29的触发源,就无需定期的配置ALIAS寄存器了。

BR,

Jeremy

Leonliang
Level 2
Level 2
First like received 5 likes given 10 replies posted

是的你说的是对的,但是正如我所说,基于目前已有的设计不好变更