Skip to content
Snippets Groups Projects
Commit dd7e8758 authored by schneider's avatar schneider
Browse files

fix(pmic): Actually set SBB1 to 3.3 V. Remove current limit. Might introduce noise.

parent 826d17c1
No related branches found
No related tags found
No related merge requests found
......@@ -100,26 +100,25 @@ uint32_t ecg_read_reg(uint8_t reg)
void pmic_init(void)
{
uint8_t didm = MAX77650_getDIDM();
uint8_t cid = MAX77650_getChipID();
printf("MAX7765x DIDM: 0x%02x CID: 0x%02x\n", didm, cid);
MAX77650_setIP_SBB0(0b11); //Limit output of SBB0 to 500mA
//MAX77650_setIP_SBB0(0b11); //Limit output of SBB0 to 500mA
MAX77650_setTV_SBB0(0b101000); //Set output Voltage of SBB0 to 1.8V
MAX77650_setADE_SBB0(0b0); //Disable Active Discharge at SBB0 Output
MAX77650_setEN_SBB0(0b110); //Enable SBB0 is on irrespective of FPS whenever the on/off controller is in its "On via Software" or "On via On/Off Controller" states
MAX77650_setIP_SBB1(0b11); //Limit output of SBB1 to 500mA
//MAX77650_setIP_SBB1(0b11); //Limit output of SBB1 to 500mA
#if BOARD_EVKIT
MAX77650_setTV_SBB1(0b100000); //Set output Voltage of SBB1 to 1.2V
#else
MAX77650_setTV_SBB1(0b100010); //Set output Voltage of SBB1 to 3.3V
MAX77650_setTV_SBB1(0b001001); //Set output Voltage of SBB1 to 3.3V
#endif
MAX77650_setADE_SBB1(0b0); //Disable Active Discharge at SBB1 Output
MAX77650_setEN_SBB1(0b110); //Enable SBB1 is on irrespective of FPS whenever the on/off controller is in its "On via Software" or "On via On/Off Controller" states
MAX77650_setIP_SBB2(0b11); //Limit output of SBB2 to 500mA
//MAX77650_setIP_SBB2(0b11); //Limit output of SBB2 to 500mA
#if BOARD_EVKIT
MAX77650_setTV_SBB2(0b110010); //Set output Voltage of SBB2 to 3.3V
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment