+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Newbie level 3
    Points: 46, Level: 1

    Join Date
    Apr 2019
    Posts
    4
    Helped
    0 / 0
    Points
    46
    Level
    1

    Synchronize comparator output with a clock

    I have a comparator which has a certain output for a microcontroller reset which i want to synchronize with the system clock so that it rises only when the edge of the clock rises and not earlier, what would be the easiest way to realize that?

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 5
    Points: 12,423, Level: 26
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,889
    Helped
    405 / 405
    Points
    12,423
    Level
    26

    Re: Synchronize comparator output with a clock

    whatabout a clocked D-FF with D input from comparator out and clock from your source?



    •   AltAdvertisment

        
       

  3. #3
    Super Moderator
    Points: 73,692, Level: 66
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    14,957
    Helped
    3404 / 3404
    Points
    73,692
    Level
    66

    Re: Synchronize comparator output with a clock

    Hi,

    there are ready to buy comparators with internal latched or clocked ouptuts.
    Two examples:
    * latched: MAX961
    * clocked: HMC874

    You need to provide a more detailed specification

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisment

        
       

  4. #4
    Newbie level 3
    Points: 46, Level: 1

    Join Date
    Apr 2019
    Posts
    4
    Helped
    0 / 0
    Points
    46
    Level
    1

    Re: Synchronize comparator output with a clock

    I'm designing it as an integrated circuit. I have tried a D-FF but it seems that's not delivering the required output

    Click image for larger version. 

Name:	flipflop.PNG 
Views:	8 
Size:	25.5 KB 
ID:	152585

    That's the simulation result, the output seems to be somehow affected by the clock, i can't the see the fault though

    Click image for larger version. 

Name:	flipflop_sim.PNG 
Views:	7 
Size:	89.3 KB 
ID:	152586



  5. #5
    Advanced Member level 5
    Points: 9,522, Level: 23
    d123's Avatar
    Join Date
    Jun 2015
    Posts
    1,682
    Helped
    397 / 397
    Points
    9,522
    Level
    23

    Re: Synchronize comparator output with a clock

    Hi,

    Would an AND gate/ANDing clock signal and comparator high signal to the microcontroller reset pin work?



    •   AltAdvertisment

        
       

  6. #6
    Advanced Member level 5
    Points: 23,052, Level: 36
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,407
    Helped
    978 / 978
    Points
    23,052
    Level
    36

    Re: Synchronize comparator output with a clock

    Well, that doesn't look right. And what do you mean "the output seems to be somehow affected by the clock"? It's SUPPOSED to be affected by the clock! Can you look at the outputs of I5, I7 and I4 and see if those are behaving properly?



--[[ ]]--