I have to build a block acting like a monostable with programmable duration: ____________ | | ________ In: _|___ -->| |----> Out: _| |____ | | Clk: --|> | duration ------------- / \ | | duration
Which solutions is better:
a) Connect In to asyncronous preset and to D input ports of a flip-flop that starts a counter, when counter reachs end it resets this flip flop;
_____________ In ----|Pre Clr|__________________________ | | | ________________ | --|D | | Counter |---- End count | Q|------ | | | |---^----------- Clk ----> | | | | | | | -------------- | ---------------------------
b) Connect In to the CLOCK input of a flip flop with its D input wired to Vcc;
______________ ___ | Clr|__________________________ | | | ________________ | -----|D | | Counter |---- End count | Q|------ | | | |---^----------- In ----> | | | | | -------------- | Clk ---------------------------
Thank you in advance