Microcontroller in smart card directly controls machine, runs control program