From dd7e87587caceb38efd67cb3b01d1b1d3f666d13 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Tue, 7 May 2019 21:31:17 +0200 Subject: [PATCH] fix(pmic): Actually set SBB1 to 3.3 V. Remove current limit. Might introduce noise. --- Hello_World/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Hello_World/main.c b/Hello_World/main.c index 48c97c1c..2b9e2565 100644 --- a/Hello_World/main.c +++ b/Hello_World/main.c @@ -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 -- GitLab