Hi Vasili, On 04/10/2021 07.19, vsurducan wrote:
But if you need to precise control the RDY_OUT time, that seems impossible in a long main loop which is also large jitter generator ( using the USB_serial for instance) . Imagine that RDY_IN varies between say 100us to 100ms and RDY_OUT must stay high a precise time until user reset it. The RDY_OUT control has to be moved in the ISR, but then no delay will be allowed to catch the rising edge...an interruptĀ timer delay must be implemented.
Yes, for this situation a one-shot timer seems the appropriate solution: set RDY_OUT in the IOC ISR and start the one-shot timer, reset RDY_OUT in the timer ISR.
BTW Microchip has a document TB3122 which may be of help. Success, Rob. -- *Rob H*amerling, Vianen, NL -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/6e371e4b-1a29-75b1-2c19-f06aee01e3c3%40gmail.com.