PULSE IN A SUBRUTINE WITH FC7
Posted: Fri Feb 09, 2018 1:28 am
Hello to all!
In a FC7 code for a MCU, sometimes there is a need to have an accurate digital pulse(in the area of microseconds) in an output pin with defined duty cycle.How can I realize that without use delay command, to avoid command execution time delays? Also how can I use a part of code as subrutine that I can call many times in a code loop? In my case , I would like to scan 30 input pins of MCU one after one (with defined interval time) for HIGH or LOW , and have at the same time that input states to 1 output pin as serial pulses with as soon as possible lower delay time. Thanks.
In a FC7 code for a MCU, sometimes there is a need to have an accurate digital pulse(in the area of microseconds) in an output pin with defined duty cycle.How can I realize that without use delay command, to avoid command execution time delays? Also how can I use a part of code as subrutine that I can call many times in a code loop? In my case , I would like to scan 30 input pins of MCU one after one (with defined interval time) for HIGH or LOW , and have at the same time that input states to 1 output pin as serial pulses with as soon as possible lower delay time. Thanks.