The TIM filter mode

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

cross mob
Jamber
Level 3
Level 3
25 replies posted 50 sign-ins First like received

Hi, 

I have some question about the filter mode of TIM.

1. The up/down counter mode with rising edge, after F_OUT reaches High level, does the FLT_CNT decremented?

Up_Down_Counter.bmp

2. The Hold counter mode with rising edge, after F_OUT reaches High level, how does the FLT_CNT reset? If the cnt can't be reset, does it means the filter only can work one time?

Hold_Counter.bmp

Best Regards

Jamber

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

Hi @Jamber 
1) Does the FLT_CNT decremented?
-- No, I'm afraid not, unless a falling edge occurs.
2) If the cnt can't be reset, does it means the filter only can work one time?
-- For the FLT, it only can detect the rising edge but also the falling edge, it can reset the FLT_CNT when a low level reaches the filer parameters. In other words, it seems like an opposite mechanism versus detecting the rising edge.
BR,
Jeremy

View solution in original post

0 Likes
6 Replies
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received
The filter counter register FLT_CNT is incremented when the signal level on F_IN_SYNC is unequal to the signal level on F_OUT 

 

I think the FLT_CNT will stop increment after F_OUT = F_IN_SYNC and not reset to 0.

0 Likes
Jamber
Level 3
Level 3
25 replies posted 50 sign-ins First like received

Hi, dw

Thank you for your reply. 

If the FLT_CNT act as your think, the Filter can only work one time. I don't think it's reasonable.

Best Regards

Jamber

0 Likes
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Hi Jamber,

I have checked the Bosch user manual page 162, there is same description.

0 Likes
Jamber
Level 3
Level 3
25 replies posted 50 sign-ins First like received

Hi, dw

Thanks, I see the Bosch's usermanual, samely, there is no explicite description about the FLT_CNT's behavior after F_OUT output.

Best Regards

Jamber

0 Likes
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Yes Jamber.

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

Hi @Jamber 
1) Does the FLT_CNT decremented?
-- No, I'm afraid not, unless a falling edge occurs.
2) If the cnt can't be reset, does it means the filter only can work one time?
-- For the FLT, it only can detect the rising edge but also the falling edge, it can reset the FLT_CNT when a low level reaches the filer parameters. In other words, it seems like an opposite mechanism versus detecting the rising edge.
BR,
Jeremy

0 Likes