1. 1The 8051 Microcontroller andEmbedded SystemsCHAPTER 16Motor Control: Relay,PWM, DC and StepperMotors 2. RELAYS AND OPTOISOLATORS A relay is an electrically controllable…