Serial communication program, master and slave and circuit diagram