dev.nlited.com

>>

Power Selection

<<<< prev
next >>>>

2016-04-07 14:49:07 chip Page 1634 📢 PUBLIC

April 6 2016

The power selector circuit has become complicated enough to warrant its own schematic sheet.

CtrlMtr has 4 power sources:

  1. PWR_USB5: 5VDC@500mA coming in on the USB cable. The USB circuit regulates this down to 3.3V and distributes it as PWR_USB3.
  2. PWR_MTR: 12VDC@2A coming in on the external power terminal. The Power circuit (TLynx) converts this to 3.3V and distributes it as PWR_MTR3.
  3. PWR_TOOL: 3.3V@100mA from the JTAG programming tool. This is present only when programming the MSP430 directly and provides power only to that target device. The MSP430F5528 and '5529 each have their own dedicated PWR_TOOL lines.

The question is: Do I need to provide a set of jumpers to select the power source, or can I hard-wire the power source based on preference and availability? The order of preference would be:

  1. PWR_MTR: Abundant power, complete control.
  2. PWR_TOOL: Complete control.
  3. PWR_USB: Convenient, but very little control.

If I use jumpers to manually select the power the jumpers must always be present. I can still leave the MTR power converter hard-wired to ON, it just won't be used.

CtrlMtr manual power selection schematic

MSFET transistor symbols

If I automatically choose the power source, PWR_MTR is the first preference and I can hard-wire ON/OFF to ON. I then use transistor switches to control the PWR_TOOL and PWR_USB sources. Electronics-Tutorials.ws has a good explanation of the types of MOSFETs and their symbols.

The problem is that I want the transistors to be normally ON, turned OFF if the power source to the left is on. These transistors (Infineon BSS806N) are normally off. I believe this means I want a "depletion mode" n-channel mosfet transistor, but those don't seem to exist. What part should I be using?

CtrlMtr automatic power selection schematic.

Bruce pointed me to this article that looks like it does what I need, at the cost of losing a few millivolts. He also suggested a single TI part (TPS2114A, Digikey 296-16939-1-ND) that does everything, but for only 2 power sources; I would need a pair to handle 3 sources. It is a bit expensive at $1.87 (in 100's).

Automatic power selection circuit.

April 17 2016

The power inputs and nets need to be reworked. There are 6 power sources on the board, all the outputs from these sources are PWR_ nets and inputs to the PwrSel switches.

  1. 12VDC: Enters the board via the motor power terminal J301 in the Power sheet. This is the PWR_MTR/MTR_GND net.
  2. USB: 5V enters the board via the microUSB connector J401 in the USB sheet and distributed as PWR_VBUS.
  3. ezFET JTAG: 3.3V enters the board via pin 2 of the ezFET TagConnect header J108 and is net PWR_JTAG_EZFET.
  4. Control JTAG: 3.3V enters the board via pin 2 of the Control TagConnect header J202 and is net PWR_JTAG_CTRL.
  5. 12/5V Converter: PWR_MTR enters the 12/5V power converter U301 in the Power sheet and is stepped down to 5V and distributed as PWR_5V.
  6. 3.3V: U402 regulates VCC_5V down to 3.3V as PWR_3V.

The JTAG connectors also have pin 4 connected to the board Vcc, which acts as a drain in the case where the board has its own power supply. TODO: Check that JTAG:2 and JTAG:4 are never shorted together.

The PwrSel contains a set of 3-post headers that are used to select the various power sources. The inputs are the various PWR_ nets and the outputs are the VCC_3V and VCC_5V nets. There is no need for a VCC_12V net since the only source for 12V is PWR_MTR.

  1. J506: Selects between PWR_5V and PWR_VBUS inputs and outputs VCC_5V.
  2. J507: Selects between PWR_TOOL_EZFET and PWR_TOOL_CTRL inputs and outputs PWR_TOOL. This allows a single programming tool to power both MSP430F5528 and MSP430F5529 regardless which JTAG connector is being used.
  3. J508: Selects between PWR_3V and PWR_TOOL inputs and outputs VCC_3V.

VCC_5V and VCC_3V are the nets that should be used to power all the digital components, including the MSP's and A3967 Vdd inputs.

Renaming wires and nets is tricky. The same wire may appear in multiple places and multiple sheets and DipTrace will apply the name change to all instances. Checking the "Apply to related wires only" will isolate the change to just the current wire and not the entire net, but again that wire may span multiple sheets. DipTrace may refuse to change the net name when the wire is connected to multiple components. In these cases I may need to delete the wire completely, add a wire stub to one of the components, rename the net, and then connect the other components. I always need to proofread the schematic after renaming nets to catch wires that were unexpectedly changed.

It works to simply leave wires dangling and rely on common net names to tie them together, but this leaves the schematic looking unfinished. I would rather terminate the wire with a net port both to make the off-sheet connection more obvious and to signal that the connection is complete. Using net ports requires that all ports with the same name have the same pin names, otherwise DipTrace complains when I try to place the new port. The pin does not need to match the net name, although it eliminates confusion if they are the same. The naming confusion is minimized by creating a new copy of the stock net port in the project component library and setting the port and pin names to the name of the net used in the schematic. Create a new port in the project component library that is specific to the net. This will save me from accidentally renaming every net connected to "PORT1".

Revised power select

If DipTrace complains about misnamed pins when I try to place a net port, it is probably because I have ports with the same name that still refer to the stock component library. I can track them down using the Design manager.

Here are the revised sheets after renaming all the PWR_ and VCC_ nets.

Power Modes

The power selectors allow the board to run in several power configurations. Normal mode powers the everything from the MTR power. The USB hub is active but the VBUS power is not used. Test mode disables the motors and powers the microcontrollers from the USB power bus. FET1 powers only the 3.3V rail from the JTAG programming tool through the Tag-Connect interface J202. FET2 powers only the 3.3V rail from the JTAG programming tool through the Tag-Connect interface J108.

Power select headers location  Power selector jumpers 

Mode1:U-5V-M2:F-3V-C3:3.3V4:VDD_MTR
Normal5V-MX3V-XVDD_MTR
TestU-5VX3V-X--
FET1--3V-CJ-3V--
FET2--F-3VJ-3V--

The VCC_HUB, VCC_EZFET, and CTRL_3V jumpers must be in place to power the USB hub, MSP430F5528, and MSP430F5529 respectively. They can be removed to de-power individual components while using the JTAG programming tool.

Subsystem power jumpers 

J509 is connected directly to the MTR power rail and can be used to daisy-chain additional devices.

MTR power daisy-chain connector. 



WebV7 (C)2018 nlited | Rendered by tikope in 151.014ms | 3.145.92.213