This looks like a pretty simple computer program right? Maybe a while loop, a delay and writing some data to an output port?