A simulator is software that runs on a PC and allows the microcontroller code to be simulated (run) on the…