* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download PWM - Edge
Tektronix analog oscilloscopes wikipedia , lookup
Analog television wikipedia , lookup
Atomic clock wikipedia , lookup
Rectiverter wikipedia , lookup
Regenerative circuit wikipedia , lookup
Mathematics of radio engineering wikipedia , lookup
Time-to-digital converter wikipedia , lookup
Waveguide filter wikipedia , lookup
Wien bridge oscillator wikipedia , lookup
Valve RF amplifier wikipedia , lookup
Spectrum analyzer wikipedia , lookup
Analog-to-digital converter wikipedia , lookup
Power electronics wikipedia , lookup
RLC circuit wikipedia , lookup
Mechanical filter wikipedia , lookup
Phase-locked loop wikipedia , lookup
Superheterodyne receiver wikipedia , lookup
Audio crossover wikipedia , lookup
Index of electronics articles wikipedia , lookup
Radio transmitter design wikipedia , lookup
Analogue filter wikipedia , lookup
Distributed element filter wikipedia , lookup
Kolmogorov–Zurbenko filter wikipedia , lookup
P09141 Satellite Thermal Heater Controller Detailed Design Review Package Electrical Document Revision: 03 Document Date: 02/12/2009 1 Table of Contents Table of Contents .......................................................................................................................... 2 Table of Contents .......................................................................................................................... 2 1 Introduction .................................................................................................................................. 3 1.1 Vision 3 1.2 Background ................................................................................................................................ 3 1.3 Objectives .................................................................................................................................. 3 1.4 Deliverables ............................................................................................................................... 3 1.5 Expected Project Benefits .......................................................................................................... 3 1.6 Core Team Members ................................................................................................................. 3 2 Strategy & Approach ................................................................................................................... 4 2.1 Assumptions & Constraints ........................................................................................................ 4 2.2 Issues & Risks............................................................................................................................ 4 3 System Level Architecture ......................................................................................................... 5 4 PWM Sine Wave Generator ......................................................................................................... 6 2 1 Introduction 1.1 Vision The mission of this project is to design, build and test a scalable prototype of a thermal heater controller for the Space Systems Division of ITT. The controller will be subsystem in future satellite-imaging systems. 1.2 Background The Satellite Thermal Heater Controller (STHC) is a single master multiple slave system that can be arrayed in a distributed fashion with centralized control. The system can be described as a group of distributed, autonomous thermal control units that share the same power input, which will also serve for communication. This controller may be used in satellite applications to control the temperature of critical optical subsystems. 1.3 Objectives 1. 2. 3. 4. 5. 6. 7. 8. Demonstrate an enhancement to ITT's current distributed autonomous thermal controller. Create a more competitive thermal controller that is lightweight, scalable, modular, reliable, cost effective and power efficient. Demonstrate the ability to thermally control, stabilize and enable critical optical subsystems. Selecting components that will minimize power consumption, weight and cost, respectively. Achieve communications between the master and slaves through the DC power line. Program DSP for efficient communication between master and slaves. Connect DSP to heater controller to communicate between slaves and heater controllers. Design HHC enclosure to meet vibration, thermal conductivity, EMI, and venting specs. 1.4 Deliverables 1. Interface electronics to send information between the master and slave DSP board over heater power bus. 2. 3. 4. 5. PC interface that communicates with master over serial line. Programming of master to accept requests from the PC and pass them on to slave Programming of slave to control HHC and send status back to master. PC GUI to monitor and control the temperature and state of (2) heater controllers. 1.5 Expected Project Benefits 1. The STHC shall be used as a basis for future heater control systems launched and deployed in space by ITT to regulate the temperature of a variety of satellite payloads. 2. The STHC might be used by other groups that are involved in satellite imaging applications. 3. Reinforce the engineering programs at RIT. 1.6 Core Team Members 1. 2. 3. 4. 5. Anthony Berwin Scott Rioux Greg Pawlowski Sarmad Abedin John Scipione 3 2 Strategy & Approach 2.1 Assumptions & Constraints 1. 2. 3. 4. 5. There is a time constraint of 22 weeks where the project must be completed. Lead times for parts components and materials. Incorporate lead times into scheduling. Lead time for printed circuit boards. Incorporate lead times into scheduling. Controller from the Texas Instruments (28x family). Access to the Hybrid Heater Controller (HHC) Specifications. 2.2 Issues & Risks Acquiring HHC Need one for testing and demo 4 3 System Level Architecture HEATER POWER BUS 28V +/- 8V DC DC POWER SUPPLY MASTER Interface Electronics Serial Cable PC User Interface 2808 EZDSP 22 AWG wire, 50ft max SLAVE1 SLAVE2 2808 EZDSP Interface Electronics 2808 EZDSP Interface Electronics Heater Controller Heater Controller 25°C +/- 0.3°C THERMISTER Interface Electronics Interface Electronics 25°C +/- 0.3°C HEATER HEATER Figure 3.1: System Level Architecture 5 THERMISTER 4 PWM Sine Wave Generator The Texas Instruments TMS320F2808 DSP is used to communicate between the master and slave DSPs over the 22 AWG wire. Because only one communication wire is available FSK signal generation is necessary to communicate between the two DSPs. The transmitted FSK signal is generated using the pulse width modulator (PWM) of the TMS320F2808 of the EZDSP. The transmitted signal will pass through a passive low-pass filter to smooth the signal and generates a sine wave. The PWM signal outputs on a TMS320F2808 device are variable duty cycle square waves with 3.3 volt amplitude. These signals can each be decomposed into a DC component plus a new square wave of identical duty-cycle but with a time-average amplitude zero. The idea behind realizing digital-to-analog (DA) output from a PWM signal is to apply an analog lowpass filter the PWM output to remove most of the high frequency components leaving only the DC component. The bandwidth of the low-pass filter will essentially determine the bandwidth of the digital-to-analog converter. Two main sources of error negatively affect the DA output. Firstly, the PWM duty cycle can only be specified with a finite resolution. The resolution is directly related to the PWM carrier frequency used. For example, suppose 100 kHz PWM is desired with the PWM module driven by a 100 MHz SYSCLKOUT. The time-base of the PWM will provide 1000 clock counts per cycle of PWM at which to specify the timer compare value. This directly affects the duty cycle. If the standard PWM is used, the resulting resolution is just less than 10-bits. The desired DC output is specified in steps of 3.3 mV (3.3V/1000). However, using the enhanced PWM module (ePWM) provides approximately 6 additional bits of resolution beyond the standard time-base resolution. This equates to just under 16 bits of resolution. The second source of error is the peak-to-peak ripple produced by unfiltered harmonics. The two error sources sum together to yield the total uncertainty: total uncertainty = harmonic ripple + duty cycle resolution The duty cycle resolution can be improved by decreasing the carrier frequency of the PWM. Reducing the carrier frequency from 100 kHz to 50 kHz will cut the step size in half to 1.65 mV (~11 bits resolution for the standard resolution PWM or ~17 bits resolution for the high resolution PWM). The lower carrier frequency also decreases the base frequency of the unwanted harmonics. The first harmonic will now appear at 50 kHz rather than 100 kHz, and more of it will pass through the analog low-pass filter increasing the harmonic ripple. For a given analog low-pass filter a trade-off exists between the harmonic ripple and PWM duty cycle resolution when selecting the PWM carrier frequency. The optimal carrier frequency is the one where the total uncertainty is smallest. The performance of the filtered PWM as a digital-to-analog converter depends heavily on the choice of the analog low-pass filter chosen. Active filters (built using op-amps) are often used rather than passive filters (built solely using resistors, inductors, and capacitors). Although active filters avoid the 6 impedance loading issues suffered by passive filters, passive filters can offer lower cost and reduce complexity. The gain bandwidth of the op-amps must be considered when using active filters. The gain bandwidth represents the upper frequency that the op-amp can effectively handle when used in a closed-loop circuit configuration with small signal input. However, passive filters do not suffer as much from a gain bandwidth problem, although they do have their own high-frequency design issues (especially in designs that utilize inductors). The two most important filter properties when selecting a low-pass filter are the bandwidth and the stop-band roll off rate. The filter bandwidth is the frequency at which the filter's frequency response magnitude equals 0.707 (-3 dB). The filter bandwidth directly relates to the maximum signal frequency that the PWM/DAC will handle effectively and the stop-band roll-off rate is the slope of the frequency response magnitude at high frequency. Combined with the bandwidth, the roll-off rate determines the amount of harmonic ripple that will be seen in the output of the filter. In general, low-pass analog filters roll-off at a rate of -20 dB/decade per filter order (-20 dB/decade for a 1st order filter, -40 dB/decade for a 2nd order filter, etc.). For this design, a 2nd-order low-pass passive filter was chosen. The 2nd-order low-pass filter offers 40 dB/decade of stop-band roll-off -- a two-fold improvement over the 1st order filter. For a second order system, the transfer function is given by: where ωn is the undamped natural frequency in units of (rad/s)2, and ζ is the damping ratio. The step response of the filter is an important measure of performance for the practical situation of changing the DAC output from one voltage level to another. It is important to get as low a damping ratio as possible in order to have fast rise times. However, low damping ratios produce large step response overshoots and long settling times. The smallest damping ratio with no overshoot in the step response is ζ=1 (critically damped). It is also desirable to avoid having a resonant peak in the frequency response magnitude of the filter. The smallest damping ratio with no resonant peak is ζ=0.707 (-3dB). The choice of damping ratio will depend on the particular requirements of your system. A reasonable trade-off is often to choose the filter damping ratio between 0.707 and 1.0. A passive 2nd order passive RC filter is constructed by cascading two 1st order RC filters in series like so: 7 The following component values were chosen: R1 = R2 = 1k C1 = C2 = 0.01uF This resulted in a cutoff frequency of ωn = 100kHz and a dampening ratio of ζ = 1.5 A cutoff frequency ~100kHz is desirable for this particular application as it will cutoff most of the higher harmonic frequencies . The frequencies desired for this design are between 50Khz and 100Khz. Higher order filters offer progressively better stop-band roll-off rates, and hence remove more of the unwanted ripple. However, design complexities associated with thermal drift and component value variation increase with filter order. Cost and board space also increases. At some point an actual DAC chip becomes a better solution than emulating one with a PWM/DAC. Using the above designed filter, the next step is to produce the desired PWM function from the DSP. The PWM frequency is derived from SYSCLKOUT = 100 MHz. The eZdsp 2808 is clocked from a 20 MHz oscillator. The CPU clock is initialized with SysCtrlRegs.PLLCR = 10. So that the CPU clock is running at CLKIN= 100 MHz. This clock feeds other module as SYSCLKOUT. In order to generate the desired frequencies the SYSCLKOUT is divided down to a more reasonable frequency used by the HRPWM. The SYSCLKOUT is divided by 400 to give a PWM clock of 250Khz. The PWM clock is then divided down a second time to yield the desired frequency for a binary 0 or 1. For example 8 250kHz/4.1667 = 60kHz which represents a binary 0. 250kHz/2.7778 = 90kHz which represents a binary 1. This PWM clock is fed into a table of sine values to vary the duty cycle of the output of the PWM. After the PWM signal is fed through the DAC a sine wave of the appropriate frequency results. In this way the PWM/DAC produces the correct frequency for a 0 or a 1. A division factor of 1 can be used to produce no output since 250Khz is above the cutoff frequency and thus will be filtered out by the low pass filter. References Using PWM Output as a Digital-to-Analog Converter on a TMS320F280x – http://focus.ti.com.cn/cn/apps/docs/techdocsabstract.tsp?appId=270&abstractName=spraa88a Spread-Frequency Shift Keying Power Line Modem Software Architecture – http://focus.ti.com/apps/docs/techdocsabstract.tsp?appId=198&abstractName=spraa94 9