sudarshann
Junior Member level 2
Hi friends,
I have been braking my head the entire day to solve this simple problem.
1) 1 digital input low/high (will be continuous say if its low then it can be low for days and vice versa)
2)output needs to be high for n seconds and should be low when the input changes.
if I need to do with a mcu I would have done in minutes but i need to do without mcu and at the cheapest cost. I have been trying mono stable, bi stable combinations and serveral other logics but still not solution. can anyone help me providing a simple solution.
the code for the mcu is as simple as below but I need to do it with a logic circuit please help.
void main()
{
int last_state = 0;
input = Read_Input();
if( last_state != input )
{
last_state = input;
Set_Output(1);
delay(1000);
Set_Output(0);
}
}
I have been braking my head the entire day to solve this simple problem.
1) 1 digital input low/high (will be continuous say if its low then it can be low for days and vice versa)
2)output needs to be high for n seconds and should be low when the input changes.
if I need to do with a mcu I would have done in minutes but i need to do without mcu and at the cheapest cost. I have been trying mono stable, bi stable combinations and serveral other logics but still not solution. can anyone help me providing a simple solution.
the code for the mcu is as simple as below but I need to do it with a logic circuit please help.
void main()
{
int last_state = 0;
input = Read_Input();
if( last_state != input )
{
last_state = input;
Set_Output(1);
delay(1000);
Set_Output(0);
}
}