Use the following steps to run the
code for Lab 4:
- Use the test setup shown in Section 3.3.2.
- Run the project by clicking
from the menu bar.
- In the watch view, check if the
BT4CH_InputVoltageSense_V
is from 12V to 15V in the
Expression Window.
- Set the following parameters from
the Expression Window:
- Set the
BT4CH_userParam_chX->Relay_ON
to 1 to enable the
output relay
BT4CH_userParam_chX->iref_A
= 25.0
BT4CH_userParam_chX->vrefCharge_V
= 0.12
- Set the
BT4CH_userParam_chX->en_bool
= 1
- See the Figure 3-28 for the Expression Window settings
- The
BT4CH_measureVI_chX
variable shows output current and
voltage of the DC/DC converter. Vbatsense_V display value is close to
vrefCharge_V with ±0.5mV error.
- Figure 3-29 shows the SFRA setup to measure Closed-Loop Voltage Control Frequency
Response.
- Click on the Run SFRA icon
from the SYSCONFIG page. The SFRA GUI pops up
- Select the options for the device
on the SFRA GUI; for example, for F28P65x, select Floating Point. Click
the Setup Connection button. In the pop-up window, uncheck the
boot-on-connect option and select an appropriate COM port. Click the OK
button. Return to the SFRA GUI and select the Connect button.
- The SFRA GUI connects to the
device. An SFRA sweep can now be started by clicking the Start Sweep
button. The complete SFRA sweep takes a few minutes to finish. Once complete, a
graph with the measurement appears, as shown in Figure 3-30.
- The Frequency Response Data is
saved in the project folder, under an SFRA Data Folder, and is time-stamped with
the time of the SFRA run.