Disclosed is a surgical instrument that includes a battery assembly, a handle assembly, and a shaft assembly where the battery assembly and the shaft assembly are configured to mechanically and electrically connect to the handle assembly. The battery assembly includes a control circuit configured to generate a digital waveform. The handle assembly includes a first stage circuit configured to receive the digital waveform, convert the digital waveform into an analog waveform, and amplify the analog waveform. The shaft assembly includes a second stage circuit coupled to the first stage circuit to receive, amplify, and apply the analog waveform to a load.