The author encountered a problem with a microcontroller system in which the +5-V supply voltage did not decay to 0…