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

cross mob
lock attach
Attachments are accessible only for community members.
UrPl_1236626
Level 4
Level 4
10 likes given First solution authored 50 replies posted

Hi,

for given example project attached below, up counter appears not to take in account the first rising edge on the count input, scope shot attached.

How to fix this?

BR Uros

CntSetup.pngCntOutput.png

0 Likes
2 Replies
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @UrPl_1236626,

 

I have configured the 'DESER_SMPCNT' counter for period = 4, compare = 1. This means at every 5 pulses the compare will be generated for Pin_1. The scope snapshot is as follows:

Raj_JC_0-1643804969450.png

 

Can you please let me know the exact issue, you are facing?

Thank you

Best Regards

Raj Chaudhari

0 Likes

Hi Raj,

please use our initial project with the code.

Problem is that with compare = 0, and period =<whatever big> , the counter does not increment on the first rising edge on the count input, as you may see from our scope shot, but on the 2nd.

This problem is when counter is started --- we are not interested in anything else than the start here.

BR Uros

0 Likes