how do i latch comparator output?
 A continuous comparator will output either a 1 or a 0 any time a high or low signal is applied to its input and will change quickly when the inputs are updated. However, many applications only require comparator outputs at certain instances, such as in A/D converters and memory. 