+ 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,785, Level: 27
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,938
    Helped
    416 / 416
    Points
    12,785
    Level
    27

    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: 81,186, Level: 69
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    16,464
    Helped
    3736 / 3736
    Points
    81,186
    Level
    69

    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: 10,066, Level: 24
    d123's Avatar
    Join Date
    Jun 2015
    Posts
    1,761
    Helped
    407 / 407
    Points
    10,066
    Level
    24

    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,863, Level: 38
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,763
    Helped
    1055 / 1055
    Points
    24,863
    Level
    38

    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?



--[[ ]]--