The sample code using the "Pic-as Compiler Toolchain" and I2C to communicate between the LP8758 module and the MCU.
Refer to TI provided “LP8758 Module Sample Code” and execute the code by performing “RUN
Main Project”to program the module.
After successful programming, the output window in MPLAB X IDE will show “Program/verify
complete”.
Change registers data (circled in red as an example) as much as needed in “#define” directives
for LP8758 necessary settings for real applications.
The reference register address/data and output voltage codes can refer to either device data
sheet or TI provided “LP8758_sample_module_programming_table”.
Figure 2-1 Data Definition in Sample
Code-1. Change the data (circled in red as an example) defined in the sample code to
change the buck power rail output according to application requirements.
Figure 2-2 Data Definition in Sample
Code-2. Change the data (circled in red as an example) defined in sample code to make
the buck power rail output according to application requirements.