{'fraction_non_alphanumeric': 0.016624040920716114, 'fraction_numerical': 0.0, 'mean_word_length': 4.5928571428571425, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Device and method for reverse polarity protection

An apparatus for providing protection for an electrical circuit comprises a P-channel MOSFET; a protection diode coupled to a drain of the P-channel MOSFET and to a load; and a charge pump coupled to a gate of the P-channel MOSFET. In a normal mode, the charge pump receives a voltage from a voltage regulator and is configured to multiply the voltage and reverses the polarity of the voltage for a supply to the gate of the MOSFET. In a reverse battery mode, the charge pump receives no voltage from the voltage regulator to supply to the gate of the MOSFET, causing deactivation of the MOSFET, so that when the MOSFET is deactivated, current is prevented from flowing through the protection diode to the protection diode protect.