Over current protection and short circuit protection