update simple button function for MCU(AT89S52)