No, I'm afraid it is not that simple. You are going to have to note how many samples the signal is high, then how many low and so on to the end of the signal. Each sample is 0.5uS so when you know how many samples the signal was low/high you can calculate how long it was in that state. Then all () you have to do is to write the code that will output a signal to match those timings.Is it possible to convert a CSV file into code? I am trying to replicate a signal from another microcontroller and output the same signal from the Arduino.