A power tool including a braking and control circuit. The braking and control circuit includes a microcontroller-based control means circuit. The microcontroller assures control of switch means, such as triacs, switches and relays, and ensures that braking is effectuated regardless of the phase in the power cycle of the alternating current. Also, the microcontroller is programmable so that the braking and control circuit accommodates different braking conditions for different power tools and accommodates combinations of braking conditions for the same power tool. Further, the microcontroller is programmable to configure the braking and control circuit so that the braking force applied to the motor and the stopping time of the motor are regulated and adjustable. This may be accomplished by outputting a control signal so that the switch means skips cycles in the alternating current or by otherwise adjusting the operation of the switch means.