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

    Join Date
    Apr 2019
    Posts
    55
    Helped
    0 / 0
    Points
    317
    Level
    3

    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?

    •   AltAdvertisement

        
       

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

    Join Date
    Apr 2010
    Posts
    1,904
    Helped
    406 / 406
    Points
    12,537
    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?



    •   AltAdvertisement

        
       

  3. #3
    Super Moderator
    Points: 77,106, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,623
    Helped
    3560 / 3560
    Points
    77,106
    Level
    67

    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.



    •   AltAdvertisement

        
       

  4. #4
    Member level 3
    Points: 317, Level: 3

    Join Date
    Apr 2019
    Posts
    55
    Helped
    0 / 0
    Points
    317
    Level
    3

    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,792, Level: 23
    d123's Avatar
    Join Date
    Jun 2015
    Posts
    1,726
    Helped
    402 / 402
    Points
    9,792
    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?



    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 5
    Points: 24,065, Level: 37
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,617
    Helped
    1021 / 1021
    Points
    24,065
    Level
    37

    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?



--[[ ]]--