In a cc2640r2f project over the past few days, production tests require measurement of emission current, reception current, and sleep current. It is best to measure the current according to the method, so that the module is in a specific State (launch, receive, sleep), read the current table data, this measurement method is called solution 1.
However, in actual production, we hope to control the module to different statuses such as transmitting, receiving, and sleeping through serial port commands to facilitate automated testing. In this way, the test diagram is as follows, this method is called solution 2.
When the MCU sends commands through the serial port to control the module to be tested to enter the launch mode, it is found that the current in solution 2 test is much smaller than that in solution 1 test (for example, solution 1 test current is 14mA, solution 2: The test current is 5mA ). So the question is, where is the current? Solution 2 has indeed entered the launch mode. Like solution 1's launch mode, less current is provided by the serial port pins. That is to say: the module current to be tested = the power supply current + the power supply current of the serial port.
According to solution 2, the current test is inaccurate, or the test fails at all. According to solution 1, the test is troublesome. Here we provide a method that is somewhat compatible with the two solutions, that is, adding a switch to the serial port. After the command is sent successfully, the serial port is disconnected, the current is read, and the current is read, connect the serial port to solution 3.
Through solution 3, you only need to add a relay to solve the problem of solution 2 and solution 1.
In fact, the test shows that the txd pin in the serial port will provide the current to the module to be tested. If you are controlling the txd drop-down in the program, the controllable switch is not acceptable.
The above is for your reference only!
C2640 Power Consumption Measurement