Test how PIC microcontrollers save power

Test Conditions:

The PIC16F676 uses an internal 4MHz RC oscillator with a supply voltage of 5V to test the current consumption during sleep. When the external IO port is set to input and has a fixed level, the program consumes about 1.26 mA after entering an infinite loop of the NOP instruction and the jump instruction.

1. After SLEEP: WDT is turned on and divided by 256. It wakes up every 2.3 seconds. All IO ports are digital input ports, which are directly connected to high level or low level. 5V, 0.159mA, main configuration: _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN

2. The above program does not move, just configure & _BODEN_OFF, the current drops to 8.5μA, other configuration changes have little effect on current consumption, WDT open and not open only 0.1μA, visible BROWN OUT DOWN function is a large power consumer.

3. The above configuration and program did not move. All the IO input ports were left floating. As a result, the current became 0.8-1 mA. The above did not turn on the level change interrupt, and the current of the hand approaching the single chip became larger. It can be seen that although the IO port does not seem to absorb current, the interference level causes the current that the internal comparator of the microcontroller frequently flips.

4. In the above configuration, only the WDT frequency division ratio is changed to 1:1, and each IO port is still connected to a fixed level. At this time, the single-chip WDT wakes up once every 1.8 mS, and the current is 8.8 μA. It can be seen that the RC wake-up is very power-saving.

5. The above configuration, WDT1: 256 frequency division, all IO ports are set to output, and output low level, IO port does not receive any load, the result current is 9.5μA, 1μA more than the input. It can be seen that the drive of the IO port is also energetic.

6. The above configuration, WDT1: 256, each AD input port is set to AD input, the other is set to IO input, all connected to a fixed level, ADON is set to 1, GO is zero, then the AD module is turned on, the conversion does not start, the conversion clock Using 1/8 of the system clock, the current is 8.8μA, the conversion clock is AD independent RC oscillation, the current is still 8.8μA, independent RC oscillation, GO is set to 1, after the conversion is completed, AD conversion continues, the current is 9.2μA, during the period Without the charging time of the free sampling capacitor, it can be seen that the AD conversion does not consume much power.

7. Turn off AD, open weak pull-up of RA port, IO floating with weak pull-up, WDT 1:1, current 8.8μA, ground one of the weakly pulled IO port, the current jumps to 212.4μA, conversion A weak pull-up is equivalent to a resistor of about 24KΩ.

In summary, there are two large power consumers: the first largest household is a floating input pin, and the second largest household is grounded with a weak pull-up IO port. The third largest household is BROWN OUT DOWN RESET. If you want to save power, you can use this reference. This test is measured in the case that the microcontroller does not have any peripheral circuits. Of course, the peripheral circuits are more complicated, and the power consumption of other circuits in the design power-saving mode should also be considered. If you want to save energy, then whether each function is turned on or not is a must.

OBD Connectors

We make OBD connector with terminal by ourselves, soldering type and crimping type are both available. Also 12V and 24V type. OBD1, OB2, J1939, J1708, J1962, etc. Also molded by different type, straight type or right-angle type. The OBD connector cables used for Audi, Honda, Toyota, BWM, etc. We have wide range of materials source , also we can support customers to make a customized one to replace the original ones.

Sae J1708 Connector,Sae J1939 Connector,OBD2 Diagnostic Connectors,Diagnostic Connector,Deutsch Diagnostic Connector

ETOP WIREHARNESS LIMITED , https://www.oemmoldedcables.com