Cypress Semiconductor CY8CKIT-015 Manual Download Page 19

CY8CKIT-015 PSoC 1 Power Supervision Kit Guide, Doc. # 001-81218 Rev. **

19

Example Project

3.4.3

Voltage and Current Measurements

Voltage monitoring in a power supervision system is measuring all of the rail voltages. The mea-
sured rail voltages can be used for trimming and to regulate the power consumption based on the
load connected to the rail. Also, the voltages can be communicated to the host so that it can log the
information.

A dedicated 10-bit SAR ADC is used to measure voltages of four rails on the CY8CKIT-035. The four
rail voltages from EBK are multiplexed to the same SAR ADC. The reference for ADC is derived
from the on-chip reference generator multiplex (RefMux) and the conversion range is selected as
0 V to 4.16 V. Both the 5-V rail and 12-V power rail are scaled down to within the ADC range.
Because the measured voltage is used for trimming, the voltage measurement and trimming are
inter-related and occur sequentially. 

4+1 current monitoring uses two 14-bit delta-sigma ADCs. The currents delivered by 12-V and 5-V
rail are measured by one of those ADCs in a single-ended mode along with a unity gain buffer. Both
these rails have an high-side current sense amplifier each on the EBK to provide single-ended signal
for current measurement. The currents delivered by 3.3-V, 2.5-V, and 1.8-V rails are measured using
the other delta-sigma ADC along with an instrumentation amplifier. These rails have series sense
resistors on high sides on EBK. The instrumentation amplifier converts the differential signal across
the sense resistor to single-ended signal. The two ADCs are used because of the different input
ranges, which cannot be accommodated with a single ADC. The delta-sigma ADCs works with the
same reference voltage as that of SAR ADC. 

At the time of multiplexing, after the input to the ADC is changed, three samples of digital data must
be discarded. This is required because the delta-sigma ADC works by oversampling the input and
decimating the single-bit results. Because all output data is dependent on analog input over a period
of time, the conversions that happen after changing the input will be invalid.

3.4.4

Regulator Trimming and Margining

To trim (fine tune) each regulator output, apply a controlled analog voltage to the "feedback" (VFB) or
"adjust" (VADJ) analog control pin on the regulators. To support trimming on the four secondary
power supply rails, four additional DACs to the ones already being used are required for the UV or
OV window comparator circuit. As the number of regulators in the system expands, the number of
DACs required for trimming and margining becomes excessive. To make more efficient use of ana-
log hardware resources, an alternative implementation is developed based on PWM blocks with
external RC filter networks to achieve the equivalent result. Because PSoC can measure the analog
voltage of each rail, a closed loop control system can be implemented to fine tune each regulator
output beyond the accuracy specifications of the regulators themselves.

The circuit in 

Figure 3-10

 shows the detail of the trimming and margining circuit for the V3=2.5-V rail.

The output scaling network of R46 and R51 are the recommended values provided by the regulator
manufacturer to ensure that the regulator can sense its own output voltage and regulate it as the
load varies. The TR3 pin is a PWM output signal from PSoC that is filtered by R54/C15; that voltage
is summed into the FB pin of the regulator through R50. 

If the PWM duty cycle controlled by PSoC 1 is reduced, the voltage applied to the FB will reduce and
the regulator will respond by increasing its output voltage. Conversely, if the PWM duty cycle is
increased, the voltage applied to the FB pin will increase and the regulator will respond by decreas-
ing its output voltage. Typical power supplies respond in this manner; for others that do not, this cir-
cuit both internal to PSoC 1 and external can be customized for the specific power supply chosen
(for example, inverting the PWM output such that a decrease in PWM duty cycle decreases the reg-
ulator output voltage).

Summary of Contents for CY8CKIT-015

Page 1: ...CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com...

Page 2: ...express written permission of Cypress Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS MATE RIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTA...

Page 3: ...ng using Window Comparator 17 3 4 3 Voltage and Current Measurements 19 3 4 4 Regulator Trimming and Margining 19 3 4 5 Other Features 20 3 4 6 Firmware Flowchart 20 3 4 7 PSoC 1 Resource Usage Detail...

Page 4: ...4 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev Contents A 3 4 Bottom Layer 32 A 3 5 Top Silkscreen 33 A 4 CY8CKIT 035 Bill of Materials 34...

Page 5: ...ail sequencing of the power converters during power on and power off events Voltage and current measurement of the power converters to optimize power consumption and for data logging Closed loop contr...

Page 6: ...to use it This kit is compati ble with the CY8CKIT 001 PSoC DVK that hosts the CY8CKIT 020 processor module CY8C28xxx Family processor module and CY8CKIT 035 PSoC Power Supervision Expansion Board Kit...

Page 7: ...rogram Files Cypress PSoC 1 Power Supervision Kit 1 0 When installing the kit software the installer checks if your system has the required software This includes PSoC Designer PSoC Programmer Windows...

Page 8: ...led along with the kit software 2 2 Hardware Setup The kit includes an example project for the CY8CKIT 001 PSoC DVK hardware platform to be used with the CY8CKIT 020 CY8C28 Family processor module CY8...

Page 9: ...8CKIT 035 as follows Figure 2 5 J6 to J13 Jumpers Placed default position CAUTION Do not attach the CY8CKIT 035 EBK to the PSoC DVK until you have programmed the PSoC 1 with the example project The GP...

Page 10: ...10 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev Getting Started...

Page 11: ...g3 first to a USB port on the PC and then to the PROG port on the CY8CKIT 020 CY8C28 Family processor module 4 Open PSoC Programmer connect to the MiniProg3 by clicking on the MiniProg3 device ID that...

Page 12: ...and current measurement accurate to better than 1 Trimming and margining accurate to better than 1 If the project is running correctly all four green LEDs on the EBK should be turned on and the debug...

Page 13: ...rrent PWM duty cycle used by the trimming hardware to achieve the currently selected voltage In this mode pressing and releasing SW1 on the CY8CKIT 001 PSoC DVK will trim the rail up in steps of appro...

Page 14: ...nality is implemented on a single PSoC The EBK routes all the input output signals for power supervision to a PSoC 1 CY8C28xxx processor module mounted on a development kit platform such as the CY8CKI...

Page 15: ...reliable power sequencing solution is required When powering up the system each of the voltage regulators needs to be powered one after the other in a sequence with programmable delays between each of...

Page 16: ...he sequencing order in which the four rails must be powered up Six different modes are available Ramp Delay This indicates the time that the sequencer must wait before monitoring the rail for its good...

Page 17: ...lementation is provided As shown in Figure 3 9 a single window comparator and glitch filter are time multiplexed across all the rails requiring monitoring The voltage regulator output for rail n signa...

Page 18: ...ir PGOOD status to capture all faulty rails Note that on the EBK the four secondary regulator output voltages are scaled down to normalized value and routed out as signals C 4 1 These are provided esp...

Page 19: ...ng the input and decimating the single bit results Because all output data is dependent on analog input over a period of time the conversions that happen after changing the input will be invalid 3 4 4...

Page 20: ...must be trimmed in terms of percentage of nominal voltage of that rail Each of the rails can have a different trim percentage By default the trim per centages is set to 0 to get the expected rail vol...

Page 21: ...regulator 5 Measure all secondary rail currents 6 Display the voltages currents on LCD 7 Handle user interface In addition to the main loop flow there is an additional thread that runs autonomously a...

Page 22: ...errupts Check for EBK and wait till it is connected Sequence Channel n PGOOD n OK Disable All Regulators Display Error Message n n 1 Y N Is restart switch pressed N n No of Channels Y N Multiplex the...

Page 23: ...ndow Comparator with Glitch Filter 2 comparators 2 DACs and 2 PRS as glitch filters 2 6 4 PWM Trim Margin 4 16 bit PWM blocks 8 0 4 Start PGOOD ISR Start PGOOD ISR Clear PGOOD flag for present channel...

Page 24: ...24 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev Example Project...

Page 25: ...o the regulator feedback or adjust pin as well as fixed and adjustable potentiometer load ele ments Two jumpers are provided for each rail to disconnect all loads or disconnect only the adjust able lo...

Page 26: ...olt age Not Used C2 13 14 C1 Voltage Regulator 1 Fault Sensing Voltage Not Used Voltage Regulator 4 Trim TR4 15 16 TR3 Voltage Regulator 3 Trim Voltage Regulator 2 Trim TR2 17 18 TR1 Voltage Regulator...

Page 27: ...rce power from the DC power jack J3 Place in 2 3 position to source power from the PSoC platform DVK 2 3 position J6 2 pin header for connecting all loads on V1 5 V rail this includes the fixed and ad...

Page 28: ...28 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev A 2 CY8CKIT 035 Schematics A 2 1 Primary 12 V Power Input A 2 2 DVK Connector and Debug Test Points...

Page 29: ...CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev 29 A 2 3 Voltage Regulator V1 5 V A 2 4 Voltage Regulator V2 3 3 V A 2 5 Voltage Regulator V3 2 5 V...

Page 30: ...30 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev A 2 6 Voltage Regulator V4 1 8 V A 2 7 I2C SMBus PMBus Interface Connector...

Page 31: ...CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev 31 A 3 CY8CKIT 035 Board Layout A 3 1 Top layer A 3 2 Ground Layer...

Page 32: ...32 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev A 3 3 Power Layer A 3 4 Bottom Layer...

Page 33: ...CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev 33 A 3 5 Top Silkscreen...

Page 34: ...JACK POWER 2 1mm PCB RA CUI PJ 102A 12 1 J5 BERGSTIK II 100 SR STRAIGHT FCI 68000 403HLF 13 8 J6 J7 J8 J9 J10 J11 J12 J13 CONN HEADER 2 POS 100 VERT TIN Molex Waldcom Elec tronics Corp 22 28 4020 14 1...

Page 35: ...J 6ENF3403V 39 1 R58 51 RES 51 0 OHM 1 4W 1 1206 SMD Vishay Dale CRCW120651R0FKE A 40 1 R62 698k RES 698K OHM 1 8W 1 0805 SMD Panasonic ECG ERJ 6ENF6983V 41 1 R64 1 87k RES 1 87K OHM 1 8W 1 0805 SMD P...

Page 36: ...36 CY8CKIT 015 PSoC 1 Power Supervision Kit Guide Doc 001 81218 Rev...

Reviews: