
The project implements a digital controller for a time-based Maximum Power Point Tracking (TBMPPT) system. Its operation is based on a finite-state machine (FSM), supported by counters and sequential logic, from figure 2 and 3 of the following paper DOI:10.1109/TCSII.2020.2976760.
The FSM controls the operating sequence and generates the control signals required by the system. The counters provide the timing intervals used by the controller, while the output logic exposes the internal state and control signals.
The design includes a selectable output multiplexer, allowing two groups of internal signals to be monitored:
Select = 0: exposes DCC and the D control signals.
Select = 1: exposes the TC signal.
The main outputs include the FSM state bits, overflow indicators, reset and direction control signals, and the SW signal.
Connect a clock signal to clk.
Start by reseting the system.
Use ui_in[0] to activate the SR flip flop SET input. Use ui_in[1] to activate the SR flip flop RESET input. These 2 inputs have to emulate the behaviour of a capacitor charging, RESET=1 while charging and SET=1 while discharging
Set ui_in[7] to select between some internal signals to be exposed at the outputs
Monitor uo_out and uio_out to observe the FSM states and control signals.
No external hardware is required to simulate or test the digital controller, but for the desired application of the circuit see figures 1 and 2 of the paper, where there are 2 Comparators as inputs that compare between Vmax and Vmin and Vs where:
Vs->capacitor charging voltage Vmax->upper voltage limit to which capacitor has to charge to Vmin->lower voltage limit to which capacitor will discharge to
Vmin and Vmax will be generated from RV (whose value is always identical to D) after it passes through a 4 bit R-DAC.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Set | State_0 | SC_0 |
| 1 | Reset | State_1 | SC_1 |
| 2 | State_2 | CMP | |
| 3 | OVd | MUX_0 | |
| 4 | Ov | MUX_1 | |
| 5 | Reset_D_RV | MUX_2 | |
| 6 | UpDown | MUX_3 | |
| 7 | Select | SW | MUX_4 |