FW-229. enable and disable interrupt when access state variable.+ some modification.