A powered surgical stapler is disclosed. The stapler includes a housing, an endoscopic portion extending distally from the housing and defining a first longitudinal axis, a
drive motor disposed at least partially within a housing and a firing rod disposed in mechanical cooperation with the
drive motor. The firing rod is rotatable by the motor about the first longitudinal axis extending therethrough. The stapler also includes an end
effector disposed adjacent a
distal portion of the endoscopic portion. The end
effector is in mechanical cooperation with the firing rod so that the firing rod drives a surgical function of the end
effector. The stapler further includes a
control system having a plurality of sensors coupled to the
drive motor, the firing rod, the loading unit and the end effector, the plurality of sensors configured to detect operating parameters thereof. The
control system also includes a
microcontroller coupled to the plurality of sensors and being configured to determine operating status of the powered surgical stapler as a function of the detected operating parameters.