How to count the rising edge count of the waveform?

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

cross mob
Charlie9527
Level 2
Level 2
5 questions asked 10 sign-ins 5 replies posted

Hi

There is a square waveform and I want to count the rising edge.

Because the rising edge may caused 2000 times every second, if use irq method, the RTOS may do a lot of context switch, and I think it may waster too much.

Does the AURIX platform have any function to count the rising edge?

Can IOM be used for this case?

 

Thanks a lot.

0 Likes
1 Solution
Charlie9527
Level 2
Level 2
5 questions asked 10 sign-ins 5 replies posted

A submodule named TIEM(TIM Input Event Mode) in TIM can count the edge.

 

View solution in original post

0 Likes
1 Reply
Charlie9527
Level 2
Level 2
5 questions asked 10 sign-ins 5 replies posted

A submodule named TIEM(TIM Input Event Mode) in TIM can count the edge.

 

0 Likes