AN2039 Hardware Implementation

Hardware

Power Module (PM) Units

The PM units are typically off-the-shelf power supply blocks, sold with specific current and power capabilities.

The PMs used in the design are:
VRAE-10E1A0 Series made by BEL Power Products (Figure 1).

The enable signal is active-high, and when enabled, the PM output voltage appears at the Output Voltage pin (Vout).

The Trim pin with the associated Rtrim resistor (Figure 2) allows the output voltage to be set as desired. The voltage at the Trim pin is typically around 0.591 V. A Direct Current (DC) voltage at the Trim pin also allows the system to provide some voltage load regulation of Vout.

figure2.png

In this design, the DC voltage is provided by a Pulse Width Modulation (PWM) driven Resistor-Capacitor (RC) filter circuit which provides a Digital-to-Analog Converter (DAC) output to the Trim pin (Figure 3). Alternately, this DC voltage can be provided only by using fixed resistors from the Trim pin to GND (Figure 2) with no PWM Trim DAC voltage. If this alternate option is selected, the PWM with its associated hardware/firmware in the PIC16 micro would be eliminated. Refer to the BEL datasheet for more details on the Trim-Down resistor values.

figure3.png

A PIC16F1509 operating at 5.0 V and 4 Million Instructions Per Second (MIPS) (using the internal RC clock) is used to control the power-up sequence. The power-up sequence is initiated by:

  • A serial command using the I²C interface
  • Pressing the push-button switch S1

Each PM is sequenced ON at a set time interval from 1 to 16,393 ms (16.4 seconds) with a 1 ms accuracy.
For example, PM1 can be started at 10 ms from the Start command, followed by PM2 at 25 ms, PM4 at 200 ms, and finally PM3 at 1000 ms. Each PM has a corresponding ON time value which is a 14-bit unsigned integer value in firmware. This value is compared to a timer value incremented every ms. If a match between the timer value and the ON time value of the PM occurs, then the corresponding PM is turned ON. The ON/OFF timing can be selected by the user and is saved in Flash on the PIC16 device. The ON/OFF sequence can be started/stopped using the serial I²C Graphical User Interface (GUI).

Trimming

When a PM is turned ON, the corresponding PWM output is enabled and Vout is monitored via the PIC16 ADC. The PWM duty cycle corresponds to the 8-bit DAC value for the PM. This DAC value can be changed by the user in the GUI or in the firmware. The Trim voltage is created by using a combination of Rtrim and the PWM output from the PIC16 micro.

This PWM output is sent to an RC filter to create a DAC voltage, which in combination with the Rtrim resistor is applied to the Trim pin of the PM (Figure 3). The output of the PM is monitored using a 10-bit Analog-to-Digital Converter (ADC) on the PIC16 MCU. Each PM voltage is averaged over 16 readings to give a 14-bit value. Only the most significant 8-bits of this value, are used to reference the Vout voltage value of each PM. The reference voltage of the ADC is VDD or 5.0 V. For example, if the PM output voltage is 2.5 V, then the accuracy of the measurement would be (2.5 V/5.0 V)/256 = 2.0 mV. All output voltages are constantly monitored to verify they are within the specified over/under voltage limits specified by the customer. If the PM voltage goes above or under the under/over voltage limits, then a failure is signaled and the system is automatically shut down.

Power-down Sequencing

The PIC16 MCU also controls the programmable power-down sequencing of the four power supplies.
The power-down sequence is initiated on:

  • Serial Command from the I2C
  • Any Fault Condition on the PMs or input voltage
  • Pressing the Push-Button Switch S1

Each PM is sequenced OFF at a set time interval from 1 to 16,393 ms (16.4 seconds) with a 1 ms accuracy.
For example, PM4 can be shut at 20 ms from the Stop command, followed by PM2 at 25 ms, PM3 at 200 ms, and finally PM1 at 1000 ms. Each PM has a corresponding OFF time value which is an unsigned integer (14-bit value). This value is independent of the ON time value. This value is compared to a 16-bit counter value incremented every millisecond. If the two are equal, then the corresponding PM is turned OFF. The OFF time values are user selectable and are saved in Flash. In case of a fault condition power-down, a new power-up sequence will be automatically initiated depending on the number of retries selected by the user. Typically, a user may specify two or three retries. After all, retries return a failure, the system is shut down and the fault condition is signaled. Using the I²C GUI interface the user can figure out which PM condition or input voltage caused the failure. The user must take the appropriate corrective action to remove the failure condition and reset the system using the I²C serial command or the GUI and then retry the power-up sequence.

figure4.png

MCU Requirements

The MCU requirements fall in four categories:

  • I/O Pins to Enable/Disable the PMs
  • ADC Input to Sample the PM VOUT Voltage
  • PWM Output to Generate the DAC Output for the Trim voltage
  • Communication Using I²C

Since four channels of PMs are used in this design, we require at least four I/O lines for the enable/disable function. We also require four ADC channels, four PWM outputs, and finally two lines for I²C. An additional ADC channel is used to sample the input voltage, the Master Clear (MCLR), the VDD, the VSS, and the programming pins; a total of 20 pins. So, a PIC16F1509 was selected for the design. Figure 4 is the system block diagram.

The MCU is powered by 5.0 V via a 5 V regulator. The internal 16 Mhz RC clock is used to run the CPU at 4 MIPS. The hardware/firmware can be modified to accommodate up to 10 PMs. In case more PMs are required, the number of I/O will increase and a larger PIC16F1XXX device would have to be selected. In case fewer PMs are required, then a smaller PIC16F1XXX device can be selected for the application. The Trim voltage requirements can also be adjusted. If the user wants to Trim the PMs using only the external resistor (Figure 2), then the DAC voltage and the associated PWM (Figure 3), is not required. The software to drive the PWM and DAC will also be eliminated.

Voltage Limits

Each PM has its own normal over/under voltage limit. The PMs also have a margin under/over limit for the Trim voltage.

Normal Over/Under Limits

As specified, these limits are the absolute limits for each PM. The output voltage of each PM is monitored and in case the output voltage, at any time, goes under or above these limits, a fault is signaled and the power is sequenced OFF. A retry is initiated after a power fault occurs. After a certain number (defined by the user) of automatic retries, the system is shut down until the user clears the system with a serial command using the I²C GUI and fixes the hardware/software error. For example, for a 5 V PM, the user may select 4.5 V as the under voltage limit and 5.5 V as the over voltage limit.

Margin Over/Under Limits

Each PM has a user-defined margin over/under limit. These limits are 8-bit values that are maintained in the firmware and which correspond to the PWM duty cycle value of the respective PM. The user can modify these values via the GUI. The DAC value can be changed within the bounds of the over/under margin limits.

The Trim voltage is not monitored by the PIC16 ADC. Only the Trim value, i.e. the PWM duty cycle value, is compared with the limit set by the user. This value is defined as an 8-bit value.

I2C Communication Protocol and Commands

An I²C Slave interface is implemented on the MCU, for serial communication with an external I²C GUI. The command structure for the I²C interface is specified in Serial Command Definitions and Structures. On the demo board, an MCP2221 I2C-to-mini-USB interface chip is provided. This interface can be implemented by the users in their own hardware or, if required, a different I²C interface can be implemented by the user.

I2C Addressing

Only one device is connected to the interface, so a fixed Slave address of 0x14 is selected for the sequencer. This address can be changed in firmware if required. PMBus is not supported at this time.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.