Download SimCoder User Manual
Transcript
Vi_s_c = +/- 1 V The scaling block after the DSP A/D can be selected such that the original power circuit quantity is restored. In this example, a gain of 50 will be used. Note that this is the reciprocal of the combined gain of the voltage sensor and the conditioning circuit. At the A/D output, the maximum value and the actual value are: Vo_max = +/- 75 V Vo = +/- 50 V The gain of the A/D channel in PSIM will be set to 50. The circuit connection and the settings are shown in the figure below. +/- 75 Vac_max 0.01 Gain = 50 Input Mode = AC 2 +/- 50 Vac +/- 50 Vac AC Signal Input -1.5 V -> +1.5 V Notice that in this circuit, the ac signal is sent to the A/D converter directly. This is because that, when the A/D input mode is set to AC, the input range is from -1.65V and +1.65V, and the function of the conditioning circuit that performs the dc offset is already included in the A/D converter block. In the actual hardware circuit, the ac signal must be scaled and offset so that the range is within 0V to +3.3V required by the DSP A/D converter. 6.8 Comparator The F2803x DSP support three comparator modules. Each comparator block can accommodate two external analog inputs, or use one external analog input and use the internal DAC reference for the other input. The comparator output can be sent to the PWM trip-zone and to the GPIO output. Images: 76 Chapter 6: F2803x Hardware Target