Home

CY8CKIT-036

image

Contents

1. Calculate Zone 1 and Zone 2 Temperatures Calculate Fan 1 and NO Fan 2 Speeds Based on Thermal Profiles Fan Speeds Need Change YES Set Desired Fan Speeds Launch Next Handle Button Presses Temperature and Update LCD Measurement Figure 4 26 Thermal Manager Flowchart Terasic TME User s Guide 38 www terasic com www terasic com Fa SE CYPRESS PERFORM Chapter 5 TME Schematics 5 1 Power Supply Power vDD12 Default 9 TP4_VDD12 VDD12 EXT VDD12 EXT e Yon vopi2 VDD12 R5 J13 9 1K pei 1 VDD12_DVK MUNI C8 co c17 co v2 ovK 224 tu otu 12V 3A JMP 3 D4 VDD12 4 a Isak Default Voos PARE mapa TPS VDD3PS TP1_VDDIO TP2 DGND TP3 AGND VDDIO lt gt VDD3P3 VDDIO O LI R11 Q lt gt VDD 9 o Q VDDIO H bn A AV au o Ld SE 0 VpDaP3 s C23 C22 C10 C18 DIGITAL GND ANALOG GND VDD3P3 Ti Ou Tou Ti Ou Toi 5 2 4 Wire Fan Sockets VDDIO VDD12 as VDDIO VDD12 35 gend 9 9 F1 VDD12 9 F2 VDD12 F2 TACH F2 PWM Fl TACH Fl PWM F1 DGND F2 DGND F1 VDD12 F2 VDD12 Fl TACH F2 TACH Fl PWM F2 PWM 1 25MM PITCH 1 1 25MM PITCH 1 0 1u sl 2 54MM PITCH 1 2 54MM PITCH 1 VDDIO VDD12 5 on VDDIO VDD12 Fi unb 9 9 F3 VDD12 9 9 F4 VDD12 F3 TACH F3 PWM F4 TACH F4 PWM F3 DGND F4 DGND F3 VDD12 F4 VDD12 F3 TACH F4 TACH F3 PWM F4 PWM C16 1 25MM PITCH 1 1 25MM PITCH 1 0 1u al 2 54MM PITCH
2. 1 2 54MM PITCH 1 Terasic TME User s Guide 39 www terasic com www terasic com CYPRESS PERFORM 5 3 12C SMBus PMBus Port VDDIO ki J1 SM SDA SM SCL SM ALT SM GND VDDIO I2C SMBus Port 5 4 2x20 Pin DVK Connector and Test Points Config Pin 2 4 6 8 Debug amp Signal Probe Port to OC Output Mode J15 J14 DGND GND vpp12 pvk VDD12 DVK DGND vpp12 pvk VDD12 DYK Q DGND CON40A DNI CON40A 5 5 1 Wire Temperature Sensor 1 i TACHA PWM4 PWA i TACH4 PWM4 PWMA TACH3 PWM3 PWM3 TACH3 PWM3 PWM3 TACH2 PWM2 PWM2 TACH2 PWM2 PWM TACHI PWM PM i TACHI PWM1 PAMI AGND NC 10 NC AGND NC 10 NC LCD NC NC 12 LCD NC LCD NC NC 12 LCD NC LCD NC NC 14 LCD NC i LCD NC NC 14 LCD NC LCD NC NC 16 LCD NC LCD NC NC 16 LCD NC LCD NC NC 18 LCD NC LCD NC NC 18 LCD NC AGND NC 20 Ne AGND NC 20 NC TD I D K TD K H TD I D K TD K TD A ONEWIRE TD A ONEWIRE I2C SDA 2C TEMP SCL I2C SELi I2C SDA 2C TEMP SCL I2C SEL PWM OUT PWM IN PWM IN PWM OUT PWM IN PWM IN AGND NC 30 NC i AGND NC 30 NC RESV SMBUS ALERT n SMALT i RESV NC 31 31 32 SMBUS ALERT n sm ALT SM SDA m SMBUS SCL SM SCL Mm SDA SMBUS SDA 33 34 SMBUS SCL SM SCL von323 VDD8P3 35 NC 36 VADJ vpd3p3 VDD3P32 35 36 NC 36 VADJ 9 VDD5 vpps i D 37 38 9 VDD5 vpps i 39 40 i i i i i VDDIO VDDIO o o Ta DNIT DNI ONEWIRE DS18S20 Terasic TME User s Guide 40 www terasi
3. 3 3V interfacing Place in 2 3 position to 3 3V interfacing J4 4 pin header 1 25mm pitch to connect Fan 1 Supplies Not connected 12V power ground PWM drive and tachometer Terasic TME User s Guide 11 WWW terasic COM www terasic com we Cypress PERFORM a al J9 J10 J11 J12 J13 J14 J15 3 3 feedback All signals replicated on J7 4 pin header 1 25mm pitch to connect Fan 2 Supplies 12V power ground PWM drive and tachometer feedback All signals replicated on J8 4 pin header 1 25mm pitch to connect Fan 3 Supplies 12V power ground PWM drive and tachometer feedback All signals replicated on J10 4 pin header 2 54mm pitch to connect Fan 1 Supplies 12V power ground PWM drive and tachometer feedback All signals replicated on J4 4 pin header 2 54mm pitch to connect Fan 2 Supplies 12V power ground PWM drive and tachometer feedback All signals replicated on J5 3 pin header for fan power supply Place in 1 2 position to source external power from the power jack J13 Place in 2 3 position to source 12V power from the DVK 4 pin header 2 54mm pitch to connect Fan 3 Supplies 12V power ground PWM drive and tachometer feedback All signals replicated on J6 4 pin header 2 54mm pitch to connect Fan 4 Supplies 12V power ground PWM drive and tachometer feedback All signals replicated on J12 4 pin header 1 25mm pitch to connect Fan 4 Supplies 12V power ground
4. CAProgram Files with CNProgram Files x86 When installing the PSoC Thermal Management EBK software the installer checks 1f your system has the required software This includes PSoC Creator PSoC Programmer Windows Installer NET Terasic TME User s Guide 17 www terasic com Www terasic com AA A lt lt 7 CYPRESS PERFORM d framework Adobe Acrobat Reader and KEIL Compiler If these applications are not installed then the installer prompts you to install all pre requisite software which is also available on the kit CD The software can be uninstalled using one of the following methods Go to Start gt Control Panel gt Add or Remove Programs select appropriate software package select the Remove button Go to Start gt All Programs gt Cypress gt Cypress Update Manager gt Cypress Update Manager select the Uninstall button for the appropriate software package Insert the kit CD and click Install the kit contents from CD button In the CyInstaller for PSoC Thermal Management EBK 1 0 window select Remove from the Installation Type drop down menu Follow the instructions to uninstall NOTE this method will only un install the kit software and not all the other material software that may have been installed along with the kit software 4 3 Hardware Setup The kit includes example projects for both the CY8CKIT 001 PSoC DVK and the CY8CKTT 030 PSoC 3 DVK hardware platforms The main diffe
5. GPIOs routed to the TME EBK are tied to ground and this could cause hard shorts on PSoC I O pins if firmware previously programmed into PSoC drives those pins Instructions on how to program the example projects are covered in the example projects section B CY8CKIT 030 PSoC 3 DVK No jumper wires are required for the PSoC 3 DVK examples since the buttons and potentiometer are hardwired to GPIOs Ensure that the LCD character display included with the PSoC 3 DVK is attached Set VDDD and VDDA to 3 3V using J10 and J11 Figure 4 6 CY8CKIT 030 PSoC 3 DVK Power Jumpers Ensure that POT PWR is enabled by installing a jumper on J30 Figure 4 7 CY8CKIT 030 PSoC 3 DVK Potentiometer Power CAUTION Do not attach the TME EBK to the PSoC DVK until you have programmed the PSoC with one of the example projects Some of the GPIOs routed to the TME EBK are tied to ground and this could cause hard shorts on PSoC I O pins if firmware previously programmed into PSoC drives those pins Instructions on how to program the example projects are covered in the example projects section Terasic TME User s Guide 20 www terasic com www terasic CO m F CYPRESS PERFORM 4 4 Example Projects The TME EBK includes three example projects Firmware Based Fan Control Closed Loop Hardware Based Fan Control Thermal Management System The kit includes project workspaces for both the CY8CKIT 001 PSoC DVK and the CY8CKIT 030 PSoC 3 DVK To begin g
6. Kit and R56 on the CY8CKIT 030 PSoC 3 Development Kit to vary the simulated temperature value in the approximate range of 15 to 100 degrees C The Zone 1 speed transfer function is table driven and follows the profile shown in Figure 4 21 Terasic TME User s Guide 34 www terasic com WWW terasic COM i We CYPRESS B di A A A PERFORM Qu Thermal Zone 1 Fan1 Speed RPM 15 35 55 75 Figure 4 21 Example3 Zone 1 Thermal Profile Zone 2 consists of 2 temperature sensors and a single fan The Zone 2 speed transfer function is table driven and is shown below in Figure 4 22 Note that the temperature range is very narrow and close to room temperature This is to allow for simple testing at room by just touching a temperature sensor with a warm finger to cause a fan speed change In Zone 2 the temperature sensors are combined using a weighted average where the digital I2C temperature sensor U1 on TME EBK is given approximately 99 of the weight And the potentiometer is given 1 weight In this example Ul s temperature reading will dominate the overall zone temperature calculation Thermal Zone 2 10000 a 9000 jo ui 7000 NN N 5000 T 4500 23 25 27 29 Zone Temperature C Z2 99 100 T1 1 100 T2 Hysteresis 1C Figure 4 22 Example 3 Zone 2 Thermal Profile Terasic TME User s Guide 35 www terasic com WWW terasic COM EE CYPRESS PERFORM I
7. Reserved Serial Data IZC SMBus PMBus 3 3V power from DVK Digital Ground Optional 12V power from DVK Description PWM speed control for Fan 4 PWM speed control for Fan 3 PWM speed control for Fan 2 PWM speed control for Fan 1 Temperature diode cathode One wire temperature sensor 12C temperature sensor clock PWM temperature sensor input Alert Signal IZC SMBus PMBus Serial Clock I2C SMBus PMBus unused 5V power from DVK Signal Pin Pin Signal TACH4 M PWM4 TACH3 PWM3 TACH2 PWM2 TACH1 PWM1 AGND NC NC NC NC NC NC NC NC NC AGND NC TD 22 TD K TD A 1 WIRE T SDA T SCL P OUT P IN AGND NC RESV SM ALT SM SDA SM SCL 33V VADJ DGND 3 5V 12V DGND 3 2 TME EBK Headers and Jumpers A number of jumpers are provided on the TME EBK Table 3 2 lists the default jumper settings for the board Table 3 2 TME Jumper Settings Digital Ground Headers and Description Factory Default Jumpers Configuration J1 5 pin header for connecting an external host or Connector fitted management processor via I2C SMBus PMBus J2 3 pin header to choose between single sensor or dual 1 2 position sensor daisy chain connection for the PWM dual sensor daisy chain temperature sensors Place jumper in 1 2 position to enable dual sensor daisy chain mode J3 3 pin header to set logic signal levels for digital 2 3 position temperature sensors Place in 1 2 for 5V interfacing
8. fashion with the final OUT signal carrying the PWM temperature encodings from all sensors in the daisy chain www terasic com Terasic TME User s Guide WWW terasic COM gt as gt CYPRESS PERFORM This sensor is generally operated in one of two modes 1 one shot mode and 2 continuous mode For more detailed information please refer to the TMPOS device datasheet which is available on the device manufacturer s website or under the datasheet folder of the kit CD Figure 3 2 shows the TMPO05 Digital Temperature Sensor Interface custom component instantiated in a PSoC Creator Schematic configured to support the 2 TMPOS5 sensors on the TME in daisy chain mode A single TMP05 Digital Temperature Sensor Interface component supports up to 4x TMPOS sensors in a single daisy chain P IN and P OUT are the TMPOS sensor signals available on the 2x20 pin header on TME EBK TEMPERATURE SENSOR INTERFACE Figure 3 2 TMP05 Temperature Sensor Connectivity More information regarding the TMP05 Digital Temperature Sensor Interface Component is available in AN65977 PSoC 3 and PSoC 5 Creating an Interface to a TMPO5 TMPO6 Digital Temperature Sensor 3 4 12C Digital Temperature Sensor The PSoC TME EBK demonstrates I2C temperature sensing capability using a two wire I2C compatible digital temperature sensor the TMP175 DC digital temperature sensors are very common sensors for thermal management and are us
9. kit platform in order to use it This kit is compatible with both the CY8CKIT 001 PSoC DVK and the CY8CKIT O30 PSoC 3 DVK NOTE Early revisions of the CY8CKIT 001 PSoC Development Kit contained an early engineering sample release ES2 of the PSoC 3 CY8C38xxx Device Family Processor Module which is not compatible with the example projects that accompany this kit If you have an early revision of the kit you can upgrade free of charge at www cypress com go psockitupgrade Terasic TME User s Guide 16 www terasic COM www terasic com nan ae 7 CYPRESS PERFORM Chapter 4 Example Projects for the TME 4 1 Introduction This section provides details on how to operate the hardware and run the example projects provided 4 2 Software Installation Perform the following steps to install the PSoC TME EBK software Insert the kit CD into the CD drive of your PC The CD is designed to auto run and the kit menu should appear See Figure 4 1 Gog PSoC Thermal Management EBK PSoC Thermal Management EBK Install the kit contents from CD Open the Quick Start Guide Open the Kit User s Guide s at Figure 4 1 CD Autorun Kit Menu NOTE If auto run does not execute double click AutoRun on the root directory of the CD After the installation is complete the kit contents are available at the following location C Program Files Terasic PSoC Thermal Management EBK I O On 64 bit Windows 7 installations replace
10. than the desired speed in response to a an increase speed request or a lower value than the desired speed in response to a decrease speed request and then gradually settles to the correct value This is because the Fan Controller component estimates the duty cycle required to achieve the desired speed based on the electromechanical properties of the fans entered into the Fans Tab of the customizer This is an approximation only but is used as a duty cycle starting point for the closed loop hardware algorithm which then regulates the fans to the correct desired speed Additionally this example demonstrates the fault detection and alert signaling capabilities of the Fan Controller component Fault detection and alert signaling are handled in hardware The Fan Controller is capable of signaling two types of alerts Fan Stall Rotor Lock Occurs when the component detects that a fan has stopped spinning Speed Failure Occurs when a fan is unable to reach the desired speed All alerts are routed to a common alert pin on the Fan Controller Component The provided component application programmer interfaces APIs allow firmware to determine the exact source of the fault In this example the Alert pin is tied to an interrupt which clears the fault source and displays the fault state on the LCD screen Fan stall faults can be simulated by unplugging a fan which disconnects the tachometer connection back to PSoC Speed failures can be simulated by Teras
11. the source current fed to the BJT filtering the ADC measurements and calibrating the analog sub system all of which are required to achieve sufficiently high accuracy with these low cost temperature sensors Figure 3 5 shows the connections between PSoC and MMBT3904 Diode Analog Temperature Sensor iDAC IDAC Calibration Resistor CurrentMux 5 ICAL PO O J ICAL_GND PO 1 Q2 MMBT3094 16 bit Figure 3 5 Diode Analog Temperature Sensor Connectivity 3 7 4 Wire Fan Connectors The TME EBK provides 8 4 pairs industry standard 4 wire fan interface connectors and two AVC 12V brushless DC fans The fan speeds are controllable up to 13 000 RPM via PWM control with tachometer output to calculate actual fan speeds For more detailed information please refer to its datasheet which is available on the manufacturer s website or under the datasheet folder of the kit CD Table 3 3 Fan Connector Pinouts Terasic TME User s Guide 15 www terasic com www terasic co SA CYPRESS PERFORM Pin Number Name Colors Description 1 GND Black GND 2 POWER Red 12V DC power 3 TACH Yellow Frequency Generator Signal 4 PWM Blue PWM Control Signal Figure 3 6 shows the connections between PSoC and the 2 fans installed on the TME EBK Figure 3 6 Fan Connectivity to PSoC 3 8 Development Kit DVK Compatibility This kit contains an expansion board only and requires a Cypress development
12. 2 25V X5R 1210 C8 1 22uF MURATA KEISL 10uF 10 GRM31CR61E106 3 25V X5R 1206 C9 C10 C23 3 10uF MURATA KA12 Schottky Rectifier SM340 4 40V 3A SM340A DI D2 D3 D5 4 A GW SM340A s ee Pann ti 1 VDDI2 LITEON LTST C170KSKT Diode Yellow ONN HEADER 6 SPOS 100 VERT Ji POSM MOLEX 22 05 3051 Bus Port TIN 1X3 100 CENT 7 ER HEADER J2 J3 J9 3 JMP 3 SAMTEC TSW 103 07 G S FAN socket 1 25MM 8 1 25mm Wafer J4 J5 J6J12 4 PITCH o MEN e WEEI P 180 1 FAN socket 2 54mm 2 54MM 9 Wire to Board 17J8J10111 4 PITCH CULA NO CDW254 34 Header DIP 180 1 Type CHERNG 10 DC Power Socket J13 1 DC 12V WEEI 32753PA Pin Header 2X20 Pitch CON40 ll 554MM male 114 LA Se Right Angel NPN General 12 Purpose Q1 Q2 2 MIND EA Fairchild MMBT3094 e 094 Amplifier 10K ohm 1 RC0402FR 0710K 13 1 16W 0402 R1 1 10K YAGEO L 2 2K ohm 1 RCO402FR O72K2 14 1 16W 0402 R2 R3 2 2 2K YAGEO L 4 7K ohm 1 R4 R7 R8 R9 RC0402FR 074K7 I5 t 16w 0402 R10 d pee FAQEN L Terasic TME User s Guide www terasic COM 44 www terasic com CYPRESS PERFORM 16 1K ohm 0 1 1 16W 0402 _ R5 1K SAMSUNG RG1005P 102 B T 5 17 0 ohm Jumper 1 10W 0603 _ R6 R11 0 ohm WALSIN WR06X000 PTL 18 Digital Temperature Sensor Two Wire Interface with Ul TMP175 Texas Instruments TMP175AID 19 High Precision 1 Wire Digital Thermo
13. 2 3 Thermal Management Functional Block Diagram Note that TME EBK hardware limits support to a maximum of 4 fans The PSoC 3 Thermal Management solution can be easily extended to support up to 16 fans or more in a single device Contact Cypress for further information on the full PSoC Thermal Management solution Terasic TME User s Guide 9 www terasic com www terasic com i i CJ CYPRESS PERFORM TME EBK Hardware Overvie I2C Temperature Sensor I2C SMBus PMBus Port er al as Bio a FEE 2x20 Pin Headers Oli Ha a 30 3 a E Diode Temperature Sensor 5 o 4 Wire Fan 4 Socket 3 z mi PWM kaj Temperature m Sensor lt 1 Wire Temperature Sensor Power Jack Figure 3 1 TME Hardware Components This chapter describes the specifications of the components used on the TME EBK 3 1 2x20 pin Interface Header The 40 pin interface 2x20 pin header provides a mechanism to connect the TME EBK to a Cypress development kit platform Table 3 1 lists the pin assignments of the 2x20 connector Terasic TME User s Guide 10 www terasic com www terasic COM CYPRESS PERFORM Table 3 1 2x20 Header J14 Pin Definition Description Tachometer signal from Fan 4 Tachometer signal from Fan 3 Tachometer signal from Fan 2 Tachometer signal from Fan 1 Analog Ground Analog Ground Temperature diode current source Temperature diode anode 12C temperature sensor data PWM temperature sensor output Analog Ground
14. PROJECTS FOR THE TME eeessssseeeesseeeeeeee ener nnne 17 4 1 IMWOUUCHUON 4 vii RM 17 4 2 Software Installation a usii E nE EEE E E RES EEE kd ened adan guna 17 4 3 Hard Ware SOUP estatais NS 18 4 4 Example NN 21 Chapter 5 7ME SCHEMATICS eese asa aaa ll 39 5 1 Power SUPPLY csseissceceeisic M 39 5 2 4 Wire Fan SOCKEtS RO a 39 5 3 DE SSMBUS PMBUS Pott irte et atensi ngan asa saia 40 5 4 2x20 Pin DVK Connector and Test Points ooo oo om enne enren rennen eren nnne 40 5 5 1 Wire Temperature Sensor oo oWoooWomWoWoWo manakala 40 5 6 Temperature Diodes eate Ee Haa eligere er pe ed am na Lese na ml 41 54 DC Temperature Sensor POTETE 41 Terasic TME User s Guide 1 www terasic com www terasic com CYPRESS PERFORM 5 8 PWM Temperature Sensor Semanan ae sa kk dede ai pake dads NN BNN 41 JI Lay OUL es age ata ah am kaan asem uan ibu Lebak baka NN 42 5 10 Toplayer ee RN KAN one nan BEN e po RR AN EN TU 42 SN Botton S VE 43 3 12 Top SilksCreen cce terere REID a 43 9 13 FAN LI WT 44 Chapter 6 APPENDIX eir e re Ee dei decedere Ee x a aan 46 6 1 Revision History den ana D E bae IO ld 46 6 2 Copyright Statement sz wi eat yok ta gone aka ki n ki PN l is e piy en ny kf EN da a pa AN aaa ak ve 46 Terasic TME User s Guide 2 www terasic com www terasic COM ae SES Cypr
15. PSoC Thermal Management Expansion Board Kit CY8CKIT 036 User s Guide e CYPRESS www terasic com PERFOR Copyright 2003 2012 Terasic Technologies Inc All Rights Reserved E ros m a CYPRESS PERFORM q M CONTENTS Chapter 1 V7RODUCTION TO THE TME EBK eese eene na 3 MPC AUTOS T 4 1 2 About the KIT M antam masa an sam kaan yaa amalan 5 BEM ESOC EWO ai dent DET mE 6 L4 Getting Help asa an sa 6 Chapter 2 TME EBK ARCHITECTURE Hei enakan aman 7 2 1 Layout and Components isis ou desk ay byn pa san ngan Nasa Nasa banana aa dansa hana 7 2 2 Thermal Management Solution on the TME o ooooooomoWom mana 8 Chapter 3 7ME EBK HARDWARE OVERVIEWY ee eeeeee eene nnne nnne nnne nnne nnn nennen 10 3 1 2x20 pin Interface Header cuicos eee boo vap eee edi e hama anakan 10 3 2 TME EBK Headers and Jumpers ssm sussa so bica pris etie tert eem ete Db o se wal aa 11 3 3 PWM Output Digital Temperature Sensors ooooWooWoo nana 12 34 DC Digital Temperature SensOr ane oboe ds 13 3 5 1 Wire Digital Temperature Sensor eese sees es eese e EEEE TEDER EEEE EES E EAE EE 14 3 6 Diode Analog Temperature Sensors esee eene rennen rennen enne neret 15 3 7 4 Wire Fan COnnectots eee otis reete ON 15 3 8 Development Kit DVK Compatibility esee enne enne ennt eren entente 16 Chapter 4 EXAMPLE
16. PWM drive and tachometer feedback All signals replicated on J11 Power Jack 12V DC nominal 2x20 pin header for connecting to PSoC DVK 2x20 pin header that replicates signals on J14 for easy connection to a logic analyzer or oscilloscope Not connected Not connected Connected to Fan 1 Connected to Fan 2 1 2 position fan power from J13 Not connected Not connected Not connected Connector fitted Connector fitted Open PWM Output Digital Temperature Sensors The TMPOS is a monolithic temperature sensor that generates a modulated serial digital output PWM signal The duty cycle of this PWM signal is proportional to the ambient temperature measured by the device The high period TH of the PWM remains generally static over all temperatures while the low period TL varies The ratio of TH TL provides a method for determining the temperature as per this formula Temperature C 421 751 x TH TL The TMPOS sensors have a 2 pin interface 1 CONV IN input that when pulsed by PSoC initiates a new temperature measurement 2 OUT output that provides a PWM signal that can be decoded using the formula above to determine ambient temperature The TMPOS sensors support a daisy chain mode of operation where the OUT signal of the first sensor can be directly connected to the CONV IN input of the subsequent sensor The OUT of the 2 sensor carries the PWM signals from both sensors Many sensors can be daisy chained in this
17. ace Explorer and selecting Set As Active Project In PSoC Creator select Debug Program to program PSoC Remove power from the PSoC DVK and attach the TME EBK to Port A of the PSoC DVK The PSoC DVK and the TME EBK boards should be powered separately Power the PSoC DVK first The TME EBK includes a 12V DC high current power supply that is capable of supplying the inrush current needed by the fans installed on that kit Use that power supply connected to the power connector J13 and set the power jumper J9 on the TME EBK board to 12V EXT the default setting If the TME EBK cannot be detected by PSoC status debug messages will be displayed on the LCD to assist with rectifying the problem Terasic TME User s Guide 22 www terasic com www terasic COM ya SE Cypress PERFORM Figure 4 10 CY8CKIT 001 PSoC DVK with TME EBK Connected to Port A Running Example 3 B Running the Example Firmware CY8CKIT 030 PSoC 3 DVK Make sure the hardware has been configured according to the Hardware Setup section 1 If this is the first time that the example project firmware is being programmed into PSoC make sure the TME EBK is not connected to the PSoC 3 DVK 2 Attach a USB cable from the PC to the PSoC 3 DVK Program Debug USB port use J1 the USB connector closest to the corner of the board 3 In PSoC Creator set the appropriate example project as active by right clicking on it in the Workspace Explorer and selecting Set A
18. c com www terasic COM Y CYPRESS PERFORM 5 6 Temperature Diodes TD I Q2 MMBT3094 Q1 MMBT3094 5 7 12C Temperature Sensor VDDIO o le DNIT DNI I2C TEMP SDA I2C TEMP SCL TMP175 5 8 PWM Temperature Sensors o 1 Les DNIT DNI OUT SINGLE 3 PWM TMP 2 DUAL 1 JMP 3 Default PWM TMP lt gt DUAL PWM OUT Terasic TME User s Guide 4l www terasic com www terasic com E 5 CYPRESS PERFORM 5 9 Layout 5 10 Top layer Y e Terasic TME User s Guide 42 www terasic com rasic Com E 7 CYPRESS PERFORM 5 11 Bottom layer te al z AS an ES 3 asse a 33 pi soa oj ome Pega pre ne i TN EH m 3 8 EB AE j ii H DC 12V m nOD x co a ke TYBCKIT 036 PSoC Thermal Management EBK Terasic TME User s Guide 43 www terasic com www Cer EPA d Wi ae gt 7 CYPRESS PERFORM 5 13 Bill of Materials Item Description Designator Oty Value Manufacturer Manufacturer Part C2 C5 C7 Ceramic C11 C12 C13 Capacitor O luF C14 C15 TMKIOSBJIO4KV lero 2uloceras Je ea j XSR 0402 C19 C20 C21 C22 22uF 10 GRM32ER61E226
19. chart The firmware flowchart for the Example2 project is shown below see Figure 4 20 In this example project the firmware only needs to maintain the user interface handle switch presses and update the LCD The Fan Controller component closed loop hardware control loop does the rest Terasic TME User s Guide 32 www terasic com WWW terasic com EP CYPRESS PERFORM Initialize Components And Variables Actual Fan Speeo Actual Fan Speed Desired Within Tolerance Set Higher Set Lower No Change to Desired Speed Desired Speed Desired Speed Display Desired and Actual Fan Speeds plus Duty Cycles Change Desired i 2 Switches Pressed Speed Up or Down Figure 4 20 Example2 Firmware Flowchart Terasic TME User s Guide 33 www terasic com www terasic com EPA a d F CYPRESS PERFORM d B Example3 Thermal Management System B Overview Example 3 demonstrates how the temperature sensors combined with the fans on the TME EBK can create a complete thermal management system The example shows how to combine temperature readings from a number of temperature sensors in a variety of ways and use the composite temperature to set desired fan speeds according to a customizable transfer function The thermal management example project uses the concept of a Thermal Zone In this context a thermal zone describes 2 things 1 how to combine multiple temperature sensor readings together to
20. dify the target desired speed when the user requests a speed adjustment via the pushbutton switches Another feature of Example2 is the addition Fan Stall Rotor Lock and UDB Speed Regulation Failure alerts Terasic TME User s Guide 30 www terasic com www terasic com A EA CYPRESS PERFORM This project uses the following Fan Controller APIs for alert signal handling FanController_GetAlertSource FanController_GetFanStallSpeedStatus FanController_GetFanStallStatus Alerts are enabled via checkboxes on the Fan Controller component customizer shown below To configure the Fan Controller component double click on the Fan Controller component in the Top Level schematic for Example2 See Figure 4 19 Configure FanController 2 xl Name FanController Fan Control Method Alerts C Firmware CPU Ik Fan stall Rotor lock Hardware UDB Iv UDB speed regulation failure Figure 4 19 Example2 Fan Controller Customizer Basic Tab Once either of the Alerts has been enabled the Fan Controller will assert the Alert pin high when the enabled condition occurs and for as long as it persists on any of the fans In this example the Alert pin has been tied to a standard PSoC Creator Interrupt component The Interrupt component allows the user to insert custom code to handle the interrupt The custom handler for the Alert interrupt can be found in the file AlertInt c and is shown below CY ISR A
21. e nati co PSoC Creator Trainir details of the implem Help Tutorials baud rate for a UART My First Five PSoC 3 Designs Configure Unlike fixed function that has most of wha functionality No more You are about to see design and build you Figure 4 8 PSoC Creator Start Page www terasic COM Terasic TME User s Guide 21 www terasic com A m I gt e on CYPRESS SS PERFORM The example projects will be displayed in the Workspace Explorer window as shown in the example below for the CYSCKIT 001 PSoC DVK Workspace Explorer 3 projects space CYSCKIT 001 Examoles 3 Projects Pa Project Examplel Firmware Based Fan Control CY 8C3855AX1 040 E Pa Project Example2 Closed Loop Hardware Fan Control CY8C38664X 040 Pa Project Example3 Thermal Management System CY8C38664x 040 Figure 4 9 Workspace Explorer View B Running the Example Firmware CY8CKTT 001 PSoC DVK Make sure the hardware has been configured according to the Hardware Setup section l 2 3 DU If this is the first time that the example project firmware is being programmed into PSoC make sure the TME EBK is not connected to the PSoC DVK Apply 12 VDC power to the PSoC DVK Attach the MiniProg3 first to a USB port on the PC and then to the PROG port on the CY8CKTT 009 PSoC 3 Processor Module In PSoC Creator set the appropriate example project as active by right clicking on it in the Worksp
22. e timers and even full custom logic to support interfaces to a wide variety of digital temperature sensors such as I2C based pulse width modulated PWM based and other proprietary serial interface digital temperature sensors PSoC 3 s unique CPLD like hardware blocks are also used to implement a full hardware closed loop fan control system for high reliability systems that require zero intervention from firmware running on the built in MCU or running on an external master control processor This frees up MCU processing power to run and manage algorithms or transfer functions of very high complexity to optimize fan speeds to achieve system cooling requirements The PSoC Thermal Management Expansion Board Kit TME EBK is a part of the PSoC development kit ecosystem and is designed to work with the CY8CKIT 001 PSoC Development Kit DVK and CY8CKIT O30 PSoC 3 Development Kit DVK It enables you to evaluate a system s thermal management functions and capabilities of PSoC 3 devices You can evaluate the example projects described in this guide or design and customize your own thermal management solution using components in Cypress s PSoC Creator software included in this kit or by altering example projects provided with this kit The PSoC Thermal Management Expansion Board Kit TME EBK is used with the PSoC family of devices and is specifically designed and packaged for use with the PSoC 3 device family PSoC 3 is a programmable system on chip p
23. ed in a variety of communication computer consumer environmental industrial and instrumentation applications due to the popularity of the I2C bus For more detailed information please refer to its datasheet which is available on manufacturer s website or under the datasheet folder of the kit CD Figure 3 3 shows the standard PSoC Creator 2C Master component instantiated in a PSoC Creator Schematic connected to the TMP175 sensor on the TME EBK T SDA and T SCL represent serial data and serial clock respectively which are available on the 2x20 pin header on TME EBK Terasic TME User s Guide 13 www terasic com WWW terasic COM EPA ES CYPRESS TMP17512C I2C sda lt gt 4 3 T_SDA U1 scl lt TD 412 T SCL TMP175 Master Figure 3 3 I2C Temperature Sensor Connectivity The I2C Master component can be configured to run the I2C interface at 50 100 or 400 kbps Like any I2C bus application multiple I2C temperature sensors such as the LM75 or TMP175 can be connected to the same I2C bus VO pins on PSoC Refer to the I2C Master component datasheet inside PSoC Creator for more details on this block 3 5 1 Wire Digital Temperature Sensor The TME EBK has a Maxim DS18S20 1 wire high precision digital temperature sensor installed The DS18S20 digital thermometer provides 9 bit resolution Celsius temperature measurements and has an alarm function with nonvolatile user programmable upper and lower trigger points The DS18S20 communicates ov
24. eeds plus Duty Cycles Change Desired Speed Up or Down Switches Pressed Figure 4 16 Example1 Firmware Flowchart www terasic com 28 Terasic TME User s Guide E gt a 7 CYPRESS PERFORM l B Example2 Closed Loop Hardware Based Fan Control B Overview The purpose of this example is to demonstrate the Fan Controller Component controlling the two fans on the TME EBK in Hardware UDB control mode It is called Closed Loop to describe the fact the hardware components used in this implementation are working together to regulate the fan speeds by themselves PSoC firmware plays no part in managing the fan speeds in this configuration If the project is running correctly the text displayed on the debug LCD should display something like Figure 4 17 Figure 4 17 Example2 LCD Display The user interface for this example is identical to Examplel Use the 2 switches on your DVK to adjust desired fan speeds up or down In Example2 a hardware control algorithm responds to changes in desired speed by adjusting the duty cycle for both fans and continuously works at fine tuning the duty cycle until the actual fan speeds approach the desired speed The H W text displayed on the bottom left of the display highlights that this project is using hardware speed control Note that when a change in desired speed is requested through the DVK switches you may notice that the actual speed initially jumps to a higher value
25. er a proprietary 1 wire bus that by definition requires only one data line and ground for communication with a host microprocessor It has an operating temperature range of 55 C to 125 C For more detailed information please refer to its datasheet which is available on the manufacturer s website or under the datasheet folder of the kit CD A one wire protocol interface PSoC Creator component is currently planned for future development but is not yet available and is therefore not provided in this release of the TME EBK Check the TME EBK link www cypress com go CY8CKIT 036 for upgrades to the TME that might include this interface component in the future Figure 3 4 shows the connections for DS18S20 1 wire temperature sensor ONEWIRE Terasic TME User s Guide 14 www terasic com www terasic com or E TZ SSS CYPRESS PERFORM 3 6 Diode Analog Temperature Sensors MMBT3904 is a bipolar junction transistor BJT designed as a general purpose amplifier and switch The useful dynamic range extends to 100 mA as a switch and to 100 MHz as an amplifier The delta Vbe method described in Cypress Application Note AN60590 Temperature Measurement Using Diode can be used with the TME EBK Refer to that application note for the theory of operation and relevant mathematical equations The implementation described in that application note is primarily driven by firmware due to the complexities associated with varying
26. er s Guide 36 www terasic com rasic com ESJ CYPRESS PERFORM 4 B Technical Details The thermal management system example consists of two parts 1 the main application and 2 the thermal manager The main application is responsible for the user interface and for periodically calling the thermal manager The application implementation can be found in main c and on the Test Application tab of the project s schematic The thermal manager implementation can be found in ThermalManager c and on the Thermal Manager tab of the project s schematic The main application only needs to call ThermalManager Start to initialize the Thermal Manager and then it must periodically call ServiceThermalManager to run temperature and speed updates In this example this is done every 500ms but can be changed by modifying define THERMAL UPDATE MS RATE inmain c All the parameters that define the zone composite temperature sensor algorithm and the zone temperature to fan speed algorithm are defined at the top of ThermalManager c To modify these settings refer to ThermalManager h for the relevant keywords B Firmware Flowchart The following flowchart shows the basic function of the Thermal Manager along with the APIs in ThermalManager c that implement the main service loop Terasic TME User s Guide 37 www terasic com WWW terasic COM ES CYPRESS PERFORM Start Initialize Components and Variables 500 ms Timer Expired
27. ess PERFORM Chapter 1 Introduction to the TME EBK In general terms thermal management is a combination of temperature sensing fan control and the algorithms or transfer functions that map temperature to fan speed Thermal management is a critical system level function that needs to ensure that all components in the system operate within safe temperature limits while at the same time minimizing power consumption and acoustic noise Typical solutions for thermal management include multiple devices such as CPLDs mixed signal ASICs and or limited functionality and inflexible discrete devices Thermal management solutions need to be flexible enough to interface with many kinds of both digital and analog temperature sensors To maximize efficiency they must also be able to drive a multitude of fans independently Finally thermal management solutions must have enough intelligence built in to reliably control the cooling systems autonomously independent of a master control processor in the event that communications are lost or the master control processors fail or go offline The PSoC 3 architecture enables a flexible and unique method of thermal management in a single chip combining analog sensing capabilities for any kind of analog temperature sensor such as remote diodes thermistors resistance temperature detectors RTDs etc PSoC 3 s versatile digital resource pool enables the integration of multiple I2C bus interfaces captur
28. form a composite Zone Temperature and 2 how to map the zone temperature to a fan speed Therefore by this definition each fan will be controlled according to its own independent thermal zone This example has two thermal zones since the TME EBK has only 2 fans installed Algorithms currently implemented to combine multiple temperature sensors into a composite zone temperature include 1 Straight average 2 weighted average 3 maximum In this example project the weighted method is used on both fans A zone temperature to fan speed transfer function is then definable for each zone Transfer functions currently implemented include 1 linear and 2 table driven In this example project the transfer function used is table driven on both fans That is a look up table maps composite zone temperature to fan speed This example is a simulation of a thermal management system The first zone Zone 1 combines temperature measurements from two temperature sensors 1 analog and 1 digital The analog sensor is simulated using a variable potentiometer to allow easy demonstration of fan control over a wide simulated temperature range without the need of an environmental chamber to cycle through temperatures In Zone 1 the temperature sensors are combined using a weighted average where the potentiometer is given 90 weight and the digital I2C temp sensor U1 on TME EBK is given 10 weight Adjust the potentiometer R20 on the CY8CKIT 001 PSoC Development
29. hile waiting for new fan speed data to become available This synchronization mechanism is achieved using the eoc signal on the Fan Controller Component and the eocStatus Status Register both are shown in the schematic in Figure 4 13 Every time the Fan Controller component completes a new speed measurement for both fans it pulses the eoc signal high momentarily which is latched by the status register In Examplel the main code loop polls for a 1 in the eocStatus register and only then runs its basic speed adjustment algorithm The speed adjustment algorithm detects if the current fan speed is too fast or too slow within a user defined threshold If the speed is outside the threshold the algorithm adjusts the PWM duty cycle up or down by either a large or small value depending on how far out of range the current speed is Examine the main code loop in main c for details Terasic TME User s Guide 27 www terasic com www terasic COM CYPRESS Note that the eoc signal in this project is also routed to a GPIO P0 0 so that it can be observed on n Nos cL PERFORM a scope or logic analyzer B Firmware Flowchart The firmware flowchart for the Example 1 project is shown below See Figure 4 16 Initialize Components And Variables Actual Fan Speed Within Tolerance Actual Fan Speed Desired No Change to Fan Duty Cycle Decrease Fan Duty Cycle Increase Fan Duty Cycle Display Desired and Actual Fan Sp
30. ic TME User s Guide 29 www terasic com www terasic COM F CYPRESS PERFORM setting the desired speed to a value that the fan is incapable of reaching For example setting the desired speed to 2000 RPM for the fans installed on TME EBK will generate a speed failure since those fans can run no slower than around 2000 RPM In the event of an alert the words STALL or SPEED will replace the current actual speed reading on the LCD display for that fan B Technical Details The fan control portion of the Example 2 Top Level Schematic is shown below in Figure 4 18 Alertint a alert 12V x pwm 1 FAN1 tach2 fan2 aa pwm 2 mani tach 1 He tach 2 FAN2 Figure 4 18 Example2 Schematic Example2 implements a hardware controlled closed loop fan controller using the Fan Controller component in Hardware UDB control mode Firmware does not control fan speeds but can still interact with the Fan Controller component using these provided APIs FanController_Start FanController SetDesiredSpeed fanNumber rpm FanController GetActualSpeed fanNumber Unlike Examplel where the firmware must constantly monitor the actual fan speeds and make PWM duty cycle adjustments here PSoC hardware blocks automatically adjust the PWM duty cycles to maintain the desired speed The FanController GetActualSpeed API is only used to report the current speed on the LCD display Likewise FanController SetDesiredSpeed is only used to mo
31. ing and a 0 1 accurate internal voltage reference for high resolution and highly accurate temperature sensor measurement One of the example projects provided with the TME EBK shows an example of how to aggregate temperature sensor readings using a variety of methods and the resultant zone temperature used to set individual fan speeds this is referred to as defining a thermal zone The example project shows how each fan can be configured independently to be dependent on any of the available temperature sensors in any combination It also gives some examples of how the composite zone temperature can be used to determine the required fan speed to achieve system cooling needs Although not included in the example projects provided PSoC 3 devices also include non volatile EEPROM memory that can be used to store sensor calibration information or for event fault logging purposes Communication with a host controller or management processor can be achieved via DC SMBus PMBus or a variety of other communications protocols implemented with easy to use PSoC Creator component blocks Open Closed Loop Fan Tach Feedback x4 Fan Control Engine i us E uid EBK supports 4 Fans 2 Installed ass i Digital E Temperature Sensors m Analog emperature qa ADC Sensors Voltage Reference Programmable System on Chip Figure
32. latform that combines precision analog and digital logic with a high performance single cycle 67MHz 8051 processor With the flexibility of the PSoC architecture you can easily create your own custom thermal management solution on chip with the exact functionality you need in the way you want it no more no less Terasic TME User s Guide 3 www terasic com WWW terasic COM y EF Z CYPRESS PERFORM 1 1 Features The TME EBK is intended to provide a demonstration and development platform for developing system thermal management co processor solutions with compelling example projects that demonstrate a variety of modes Temperature monitoring Open loop and closed loop fan control Thermal zone management the relationship between temperatures and cooling functions Algorithms to detect thermal and cooling failures or warnings Figure 1 1 shows a simplified block diagram of the components on the TME EBK and how they interact to aid in understanding of the hardware 2X20 Pin Male Connector to DVK 2X Diode 2X TMPO5 I2C OneWire Analog Temp Digital Temp Digital Temp Digital Temp Sensors Sensors Sensor Sensor 5 pin 40mm 4 Wire 40mm 4 Wire 12V DC I2C SMBus Brushless Brushless Power Jack PMBus Header DC Fan DC Fan 0 1 04 0 1 4 Wire Fan 4 Wire Fan 4 Wire Fan Connector Connector Connector 0 1 4 Wire Fan Connector 0 05 0 05 0 05 0 05 4 Wire Fan 4 Wire Fan 4 Wire Fan 4 Wire Fa
33. le for managing fan speeds If the project is running correctly the text displayed on the debug LCD should display something like Figure 4 12 Figure 4 12 Example1 LCD Display Terasic TME User s Guide 24 www terasic com www terasic COM a CYPRESS PERFORM The fans spin up to an initial speed target or desired speed of 5000 revolutions per minute RPM set by a define in main c The desired speed is shown in the top left corner of the LCD display The user can adjust the desired speed up or down in steps of 500 RPM by pressing buttons on the DVK as follows CY8CKIT 001 PSoC DVK SW1 Decrease Speed SW2 Increase Speed CY8CKIT 030 PSoC 3 DVK SW2 Decrease Speed SW3 Increase Speed A firmware algorithm responds to changes in desired speed by adjusting the duty cycle for both fans and continuously works at fine tuning the duty cycle until the actual fan speeds approach the desired speed The center section of the LCD display shows the actual speed in RPMS of both fans The right side of the LCD display shows the duty cycles of each fan for reference Note that the duty cycles may not be the same for both fans even though the desired speed is the same This is due to variations in the actual electromechanical performance of the 2 fans The F W text displayed on the bottom left of the display highlights that this project is using firmware speed control This is done because the LCD display in example project 2 whe
34. lertInt Interrupt Place your Interrupt code here START AlertInt Interrupt RA uint8 alertStatus Determine alert source stall or speed regulation failure could be both alertStatus FanController GetAlertSource Terasic TME User s Guide 31 www terasic com www terasic COM gt as gt gt es CYPRESS PERFORM T stall alert determine which fanis if alertStatus amp FanController STALL ALERT stallStatus FanController GetFanStallStatus If speed regulation failure alert determine which fan s if alertStatus amp FanController SPEED ALERT speedStatus FanController GetFanSpeedStatus END The interrupt handler first calls FanController GetAlertSource to determine the alert fault type stall or speed failure It then calls FanController GetFanStallSpeedStatusQ or FanController GetFanStallStatus to determine which fan s caused the alert Note that FanController GetFanStallSpeedStatus and FanController GetFanStallStatus both clear the alert pin when called The interrupt handler then sets bits in the stallStatus and speedStatus global variables The main code loop polls these global variables to update the LCD display with the fan status Note that the Alert signal in this project is also routed to a general purpose IO GPIO PO O so that it can be observed on a scope or logic analyzer B Firmware Flow
35. meter U2 DS18S2 0 MAXIM DS18S20Z 20 0 5 C Accurate PWM Temperature Sensor U3 U4 TMPO5 ADI TMPOSAKS 500R L7 21 BUMPER CLEAR 370X 19 CYLINDER MHI MH2 MH3 MH4 screw holes Richco Plastic Co RBS 35 22 Mini Jumper 2 54 Pitch Open Type 13 5 CHERNG WEEI CMJ 135BB 23 M3 35mm Nickel Plated Round Head NA NA 24 M3 Nickel Plated Hexagonal Nut NA NA 25 DC Brushless axial flow fan 40x40mm 4 wire 12V AVC DBO4028B 12UPO1 4 Terasic TME User s Guide www terasic com 45 www terasic com e 5 be E lt gt F CYPRESS PERFORM i Chapter 6 Appendix 6 1 Revision History Version Change Log v1 0 Initial Release V2 1 Example projects updated for PSoC Creator v2 1 and new Components 6 2 Copyright Statement Copyright 2012 Terasic Technologies Inc All rights reserved 46 www terasic com Terasic TME User s Guide www terasic com
36. n Connector Connector Connector Connector Figure 1 1 TME EBK Block Diagram Terasic TME User s Guide 4 www terasic com www terasic com F CYPRESS PERFORM 1 2 About the KIT The PSoC Thermal Management Expansion board kit TME consists of Cypress TME EBK Quick Start Guide Power DC Adaptor 12V 2A System CD containing o User s Guide this document o PSoC Creator and pre requisite software o PSoC Programmer and pre requisite software o TME Example Firmware for the CYSCKIT 001 DVK o Firmware based open loop Fan Control o Hardware based closed loop Fan Control o Thermal Management System o TME Example Firmware for the CYSCKIT 030 DVK o Firmware based open loop Fan Control o Hardware based closed loop Fan Control o Thermal Management System o Application Note AN66627 PSoC 3 and PSoC 5 Intelligent Fan Controller o Application Note AN60590 Temperature Measurement Using Diode o Datasheets for key TME EBK components Figure 1 2 shows the photograph of the TME EBK contents PSoC Expansion Board Kit O Cypress TME Board Le Q Quick Start Guide Power DC Adaptor 12V 2A Q System CD Figure 1 2 TME EBK Package Contents Terasic TME User s Guide 2 www terasic com www terasic COM PA d F CYPRESS PERFORM d 1 3 PSoC Creator Cypress s PSoC Creator software is a state of the art easy to use integrated development environment IDE that introduces a game changi
37. n hardware closed loop control is introduced is virtually identical so this text helps to identify which example project is currently running on PSoC B Technical Details The fan control portion of the Example 1 Top Level Schematic is shown in Figure 4 13 eocStatus BUS CLK pnr FanController Fan Contr fa eoc 12V tach1 x pwm 1 FAN1 tach2 sal pwm 2 v tach 1 mi tach 2 FAN2 Figure 4 13 Example1 Project Schematic Terasic TME User s Guide 25 www terasic com WWW terasic COM CYPRESS PERFORM The Fan Controller Component can be configured by double clicking on it in the Top Level schematic for Example 1 This will open the customizer Basic Tab For this example ensure that the control mode is set to Firmware CPU Other options are not important for this example See Figure 4 14 Configure FanController a 2 x Name FanController Built in Fan Control Method Alerts Fimware CPU IV Fan stall Rotor lock C Hardware UDB UDB speed regulation failure Damping factor sec 0 64 Tolerance T M Acoustic noise reduction Connections Display as bus Extemal clock Figure 4 14 Example1 Fan Controller Customizer Basic Tab Click on the Fans Tab to setup the electromechanical properties of the fans installed on the TME EBK The RPM A Duty A 90 and the RPM B Duty B 96 parameters represent two data points from
38. n this example The LCD screen displays status information about thermal management system across three screens The user can cycle through the status screens by pressing SW1 on the CY8CKIT 001 PSoC Development Kit or SW2 on the CY8CKIT O30 PSoC 3 Development Kit The three screens are Screen 1 Zone 1 Summary This screen displays the current status of Zone 1 Line 1 displays the zone number the current composite zone temperature and the zone temperature calculation algorithm used Line 2 displays the desired fan speed and the actual fan speed for Zone 1 Z 1 T 16 WE IGHTED F1 4500 Aj1 4 5 1 5 Figure 4 23 Example3 Zone 1 Summary Screen 2 Zone 2 Summary This screen displays the current status of Zone 2 Line 1 displays the zone number the current composite zone temperature and the zone temperature calculation algorithm used Line 2 displays the desired fan speed and the actual fan speed for Zone 2 Z 2 T 2psS WE I1GHTED F2 7000 A2 70562 Figure 4 24 Example3 Zone 2 Summary Screen 3 Temperature Sensors Summary This screen displays the current temperature sensor readings for all sensors in the system Line 1 displays the Zone 1 temperature sensor values The left most temperature is the zone s composite temperature followed by the temperatures of each contributing sensor Line 2 displays the same information for Zone 2 Figure 4 25 Example3 Temperature Sensors Summary Terasic TME Us
39. ng hardware and software design environment based on classic schematic entry and revolutionary embedded design methodology With PSoC Creator you can Draw a schematic of the hardware circuit you would like to build inside PSoC and the tool will automatically place and route the components for you Eliminate external CPLDs or standard logic ICs by integrating state machines and simple glue logic in your design Trade off architecture decisions between hardware and software allowing you to focus on what matters and getting you to market faster PSoC Creator also enables you to tap into an entire tools ecosystem with integrated compiler tool chains RTOS solutions and production programmers to support PSoC 3 1 4 Getting Help Certified as a Cypress Authorized Design Partner Terasic offers design expertise in rapidly developing PSoC Solutions to get your products into production quickly and reducing your development and BOM costs Terasic provides customized board designs for academia and industry For additional information visit www cypress com go CY 8CKIT 036 or http tme terasic com For support please contact Online www cypress com go support Telephone 24x7 1 800 541 4736 ext 8 USA 1 408 943 2600 ext 8 International Terasic TME User s Guide 6 www terasic com WWW terasic COM i Y f CYPRESS PERFORM Chapter 2 IME EBK Architecture This chapter provides information about the archi
40. o to the Start Page in PSoC Creator and under the Examples and Tutorials section expand The Kits and Solutions entry as shown below Expand the TME EBK entry and double click on the workspace file that matches your development kit CY8CKIT 001_Examples cywrk or CY8CKIT 030_Examples cywrk The example projects will be copied to any location you specify on your hard drive and then opened automatically Start Page PSoC Creator Recent Projects Welcome to PSoC Creator EI ADC_DAC cywrk ES Examples CY8CKITOOT cywrk PSoC Creator provides a unique and powerful PSo EI Examples CY8CKITO30 cywrk i Sabang Dot ra dir State of the art software development IDE xamples oyan e Revolutionary graphical design editor Create New Project Open Existing Project Cypress provides training material via our web site Help accessible from the Help menu Plus you ca Examples and Tutorials i i Quick Start Guide The following section provides a general overview q 4 Reuse Click on each tab below to learn more abo Find Example Project 4 Kits and Solutions 5 a PSoC 3 Development Kit EM ADC_DAC cywrk ES CapSense cywik EJ IntensityLED cywrk And the configuration EJ LowPowerDemo cywik i components and si Ed VoltageBisplay 6 through complete imp PSoC Thermal Management EB applications solution E CY8CKIT 001 Examples cywrk done The built in co E CY8CKIT O30 Examples cywrk Rites t
41. rence between the projects for the two hardware platforms is the PSoC pin mapping Other differences will be highlighted in the sections that describe details of the example projects The following sections describe how to set up the hardware to run the example projects For a given DVK base platform the same hardware configuration applies to both example projects B CY8CKIT 001 PSoC DVK Using the pin header prototyping breadboard area of the PSoC DVK base board use jumper wires to make the following connections VR to Pl 2 SW1 to PI 4 SW2 to PI 5 Figure 4 2 CY8CKIT 001 PSoC DVK Breadboard Terasic TME User s Guide 18 www terasic com www terasic CO 4 a ES CYPRESS PERFORM Set the system to run at 3 3V using SW3 and set J6 VDD DIG and J7 VDD ANLG to VDD 3 3V using J6 and J7 as shown below JD Di SELEC 5V SOURCE Figure 4 3 CY8CKIT 001 PSoC DVK Power Jumpers Ensure that the LCD character display included with PSoC DVK is attached and that the LCD POWER jumper J12 is in the ON position Figure 4 4 CY8CKIT 001 PSoC DVK LCD Power Jumper Ensure that the VR_PWR jumper J11 is installed Figure 4 5 CY8CKIT 001 PSoC DVK VR POWER Jumper Terasic TME User s Guide 19 www terasic com Www terasic CO m CYPRESS PERFORM CAUTION Do not attach the TME EBK to the PSoC DVK until you have programmed the PSoC with one of the example projects Some of the
42. s Active Project 4 In PSoC Creator select Debug Program to program PSoC 5 Remove the USB cable from the PSoC 3 DVK and attach the TME EBK to Port E of the PSoC 3DVK 6 Re attach a USB cable from the PC to the PSoC 3 DVK Program Debug USB port use JI the USB connector closest to the corner of the board 7 The TME EBK includes a 12 VDC high current power supply that is capable of supplying the inrush current needed by the fans installed on that kit Use that power supply connected to the power connector J13 and set power jumper J9 on the TME EBK board to 12V EXT the default setting 8 If the TME EBK cannot be detected by PSoC status debug messages will be displayed on the LCD to assist with rectifying the problem 9 Going forward every time PSoC is re programmed press the Reset SW1 button on the PSoC 3 DVK to run the newly programmed firmware image Terasic TME User s Guide 23 www terasic com www terasic COM e ae SES CYPRESS PERFORM Figure 4 11 CY8CKIT O30 PSoC 3 DVK with TME EBK Connected to Port E Running Example 3 B Examplel Firmware Based Fan Control B Overview The purpose of this example is to demonstrate the Fan Controller Component controlling the two fans on the TME EBK in Firmware CPU control mode It is called Open Loop to describe the fact the hardware components used in this implementation are not regulating the fan speeds by themselves Instead PSoC firmware is entirely responsib
43. tecture and block diagram of the TME EBK 2 1 Layout and Components The picture of the TME EBK is shown in Figure 2 1 and Figure 2 2 They depict the layout of the board and indicate the locations of the connectors and key components 12C Temperature Sensor 12C SMBus PMBus Port 2x20 Pin Headers MODEL DB04028812U DC 124 0 664 P090 BALL BEARING mme p ca FELTI Diode Temperature Sensor uo 4 Wire Fan Socket 3 PWM Temperature Sensor k4 Hr abi o o MENT E A E oi m 2 0 i a m lt JEE Dm e gm 1 Wire Temperature Sensor Power Jack Figure 2 1 TME PCB Top Terasic TME User s Guide 7 www terasic com www terasic COM E AJ Cypress PERFORM Figure 2 2 TME PCB Bottom 2 2 Thermal Management Solution on the TME The TME EBK contains two 4 wire 12V brushless DC fans with connectors to support an additional 2 fans for designers who need to prototype with their own specific fan models 6 temperature sensors 4 different kinds are also installed on the kit 1 TMP175 I2C digital temperature sensor 2 2x TMP05 PWM output digital temperature sensors 3 DS18S20 One Wire digital temperature sensor and 4 2x MMBT3094 temperature diodes This combination of hardware elements enables designers to rapidly prototype thermal management solutions in a variety of configurations TME EBK also provides an I2C SMBus PMBus compatible header to support systems that have a req
44. the fan s PWM duty cycle to speed conversion chart That information can be obtained from the fan manufacturer s datasheet The parameters shown below match the fans installed on the TME EBK See Figure 4 15 Terasic TME User s Guide 26 www terasic com www terasic COM F CYPRESS PERFORM Configure FanController KIR Name FanController Motor support PWM Output Configuration 4pole motors Number of fans 2 Number of banks fo C Gpole motors PWM resolution 10bt PWM frequency 25 kHz Enter 2 datapoints A B from cycle to RPM curve for each fan bank A um Duy oyde AC RPMA DuycdeB RPMB e toos di Figure 4 15 Example1 Fan Controller Customizer Fans Tab Firmware is able to control the fans using these provided Fan Controller Component APIs FanController_Start FanController_GetActualSpeed fanNumber FanController_SetDutyCycle fanNumber dutyCycle The time taken to measure the actual speeds of each fan is relatively long particularly for slow rotational speeds For example a fan running at 1000 RPM equates to a 60 ms rotation time The MCU core inside PSoC is capable of running at clock speeds as high as 67MHz Since the speed measurement hardware needs to run so much more slowly than the firmware can some method of alerting the firmware that a new fan speed measurement is available is desirable This enables the MCU to perform other tasks w
45. uirement for communication with a host controller All of this functionality is implemented on a single PSoC 3 The TME routes all the input output signals for thermal management to a PSoC 3 mounted on a development kit platform such as the CY8CKIT 001 PSoC Development Kit or CY8CKTT 030 PSoC 3 Development Kit PSoC 3 is not mounted on the TME EBK itself Figure 2 3 shows a functional diagram of the PSoC Thermal Management solution This solution enables control of up to 4x 4 wire fans using MCU based firmware control or hardware control Fan drive signals are generated by independent hardware PWM blocks in PSoC to drive the 4 wire fans Tachometer signals from the fans are interpreted by PSoC to determine fan rotational speeds In hardware control mode speed control is implemented entirely in hardware no MCU intervention required In firmware control mode speed control can be achieved by the firmware running on PSoC with CPU intervention In both cases fan stall or rotor lock faults are detected by hardware Terasic TME User s Guide 8 www terasic com Www terasic com Es a FEY CYPRESS PERFORM To support digital sensor temperature sensing standard PSoC interfaces are used where possible such as I2C and custom PSoC components have been developed for non typical digital sensors such as the PWM output TMPOS sensor This is explained in Section 4 of this User s Manual For analog sensors PSoC also provides on board filtering multiplex

Download Pdf Manuals

image

Related Search

CY8CKIT 036

Related Contents

Lab Scope Plug-in User Manual  CA Inf-JuvC CRCNov2014 - Manual Tecnico Version 1 06OCT2014  JVC LYT2112-003A User's Manual    取扱説明書 取扱説明書 - ご家庭のお客さま/大阪ガス  Pioneer DV-393-S User's Manual    ADC AD-15 User's Manual  Capítulo VI Verificação final    

Copyright © All rights reserved.
Failed to retrieve file