Hey
Actually he too needed suggestion as previously posted. He wasn’t too sure whether CB is the best idea so he was waiting for better suggestions.
Regards
Search found 28 matches
- Mon Jan 26, 2026 12:57 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
- Mon Jan 26, 2026 12:14 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hi
Thanks Martin for the reply and I shall check this out. I came across an issue wherein supposed I give the same input port A4 two high pulse trigger before the first cycle gets complete. The second one’s input is not taken.
Is there any simple get around to this ?
Thanks Martin for the reply and I shall check this out. I came across an issue wherein supposed I give the same input port A4 two high pulse trigger before the first cycle gets complete. The second one’s input is not taken.
Is there any simple get around to this ?
- Sun Jan 25, 2026 4:02 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hi
Actually I could try this out because as per my experience goes there won’t be too many trigger instances. 5 could help out.
Could I have some guidance or examples on how to implement circular buffers ?
Thanks a million for the help.
Regards
Actually I could try this out because as per my experience goes there won’t be too many trigger instances. 5 could help out.
Could I have some guidance or examples on how to implement circular buffers ?
Thanks a million for the help.
Regards
- Sun Jan 25, 2026 3:07 am
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hi Yes, like what happens on input A will reflect on output A after 3 seconds. My delay period would be fixed. The thing is the triggers arriving before the first one is completed isn’t fixed, it depends on the grade that my camera would detect and signal the PLC. Most cases it would be like what ha...
- Sat Jan 24, 2026 9:55 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hello,
The signal would be high for approx 300ms. It is a pulse trigger which controls a 12v push pull solenoid, so when a pulse is give the solenoid would go forward and when its low the solenoid goes back to its place.
Regards
The signal would be high for approx 300ms. It is a pulse trigger which controls a 12v push pull solenoid, so when a pulse is give the solenoid would go forward and when its low the solenoid goes back to its place.
Regards
- Sat Jan 24, 2026 8:12 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hey Really sorry for this as it’s something that I realised when putting this in practice. So it goes like this: I managed to make count variable numbers like when I press button A, the LED lights after 3 seconds and shuts off at about 3.3seconds since the button is pressed. Like a 300ms pulse is gi...
- Sat Jan 24, 2026 5:40 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Good day I have implemented the logic into my board. The program works fine like it should. Although there is one small concern, when I make the respective port say A4 high, such as switch it on two times (say 1s apart), the respective output port B5 will only pulse one time after 5 seconds (I’ve se...
- Fri Jan 23, 2026 6:51 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hi
A small doubt….
Since the ISR is continuously running in the background it keeps incrementing the counter. So now if the switch is pressed (become high) my counter value would already be above the if statements value.
So wouldn’t that turn on the LED instantly ?
A small doubt….
Since the ISR is continuously running in the background it keeps incrementing the counter. So now if the switch is pressed (become high) my counter value would already be above the if statements value.
So wouldn’t that turn on the LED instantly ?
- Fri Jan 23, 2026 12:20 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hi
Yes exactly. I do not see the LED illuminate like it should in fast mode as well as the counters increment really quick like in thousands per second (real time).
When I used blocking delay the simulation was working well but looks like in this case, testing it in hardware would be better ?
Yes exactly. I do not see the LED illuminate like it should in fast mode as well as the counters increment really quick like in thousands per second (real time).
When I used blocking delay the simulation was working well but looks like in this case, testing it in hardware would be better ?
- Fri Jan 23, 2026 9:26 am
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 66
- Views: 4349
Re: Implementing a non blocking delay
Hello
I saw your code and understood what you explain. Do you mean to say that I should test it on hardware to see how it actually does ? By programming into the PIC16F88 and testing it out ?
Simulation does cause confusion since my PC would be much faster.
I saw your code and understood what you explain. Do you mean to say that I should test it on hardware to see how it actually does ? By programming into the PIC16F88 and testing it out ?
Simulation does cause confusion since my PC would be much faster.