Mbed prototyping board: RS422 pulse generator (can be used as encoder simulator