ELAN microcontroller (EMC) EM78P173N routine