EE308 Power Electronics Lab-8
EE308 Power Electronics Lab-8
Circuit diagram:
We have been given the following parameters for boost converter operating on
boundary condition:
4. Output voltage:
RMS current as per MATLAB was 3.154A. Resistance of the inductor was
chosen to be 0.1 ohms in the simulink. Hence the power loss:
P(loss) = (Irms)^2 * Rl
= (3.154)^2 * 0.1
= 0.9948 W
2) Power loss in diode:
For first calculating the input power, we see the current waveform across the
inductor:
Results:
We thus analyzed the voltage, current waveforms & power dissipated across
various components (particularly the diode and the inductor) for boost converter at
both, the boundary condition & with non-idealities.
● Also, for ADC we first perform its sampling. In the code below, we have set
40 samples per cycle. Highest amplitude of the sine wave is 3.3V and min is
0V. We are trying to discretise it to a 12 bit output. Hence, 0V will
correspond to 0 and 3.3V to 2^12 = 4096.
● The register after control logic is the ADCresult register array in the code
that’ll store the feedback output. Its size here is 40 (for storing the 40
samples per cycle). Control is important here because many times a 3V
input/ output can be 2V etc which affects other circuitries. Control logic and
feedback fix the same.
● In ADC, we have start of conversion (SOC) and end of conversion (EOC).
Moment the EOC is done, an interrupt is called which converts the analog
signal into a digital signal.
We have to first create a new project, one can refer the following flow chart for the
same:
Components:
1. CHSEL (Channel Selection Register): It tells which input we want to give to the
ADC. Eg, if CHSEL=3, means we are using ADCIN3. These 16 inputs are either
for ADCA or ADCB or ADCC.
2. Sample and Hold Circuit: It works on acquisition window, so it is in terms of
system clocks. The signal source needs to charge the sampling capacitor to within
0.5LSBs of the signal voltage. Acquisition window time is the time for allowing
the input capacitor to get charged and store the sample. This sample-and-hold
capacitor is collecting the input samples. Once 1 acquisition window is over, the
sample and hold circuit opens and the data gets stored. Again the circuit closes at
the next window.
The selected acquisition window duration must be at least as long as one ADCCLK
cycle, i.e. 1/50MHz = 20nsec.
3. TRIGSEL: It is used for SOC selection. This trigger defines the sampling
frequency of the ADC. Eg: let 50Hz signal be used i.e. 20 msec be the time period
and let the sampling frequency be 100Hz, i.e. sampling time 10 msec. So, we will
be able to acquire 2 samples this way.
4. ADC Event: It is used to generate certain events.
5. Interrupt Block: There are 4 interrupts to ADC- ADCINT1, ADCINT2,
ADCINT3 and ADCINT4. Every time the signal gets converted, after that, an
ADC interrupt is called. So, if the sampling frequency is 10KHz, then ADC
interrupt will be called after every 1/10k = 0.1msec and the result will be available.
The ADC result register is there within ADC interrupt only.
Logic:
1. ADC Configuration: EALLOW protected registers: The system first sets up
the ADC (Analog-to-Digital Converter) by configuring its registers
protected by the EALLOW directive. This directive likely ensures safe
register access and prevents unintended modifications during critical
configuration steps. Clock, resolution, and mode: The configuration involves
setting the ADC clock speed, resolution (likely 12 or 16 bits), and signal
mode (e.g., single-ended or differential). Power up: The ADC is then
powered up to make it operational.
2. PWM Configuration: SOC signal: The system configures the Pulse Width
Modulation (PWM) module and assigns it as the Start-of-Conversion (SOC)
signal for the ADC. This means the rising edge of the PWM pulse triggers
the ADC to initiate a conversion. 50 kHz frequency: The PWM is set to a
frequency of 50 kHz, determining the sampling rate of the ADC (50,000
samples per second).
Overall, this system demonstrates a data acquisition process where an analog signal
is sampled by the ADC, converted into digital form, and then reconstructed back
into an analog signal using the DAC.
Modules:
Code:
Results:
Output signal of the oscilloscope at 1kHz (input signal given by a function
generator):
Fig: Input signal frequency = 70kHz and sampling frequency = 50kHz hence a distorted output
Conclusion:
We understood implementing DAC and ADC models on our own by creating a
new project and building the same on the TMS320F28379D board.