Using a different brand of MCU to control nPM1300

We have started using nPM1300, but now we are unsure how to proceed.

Through our inquiries, we have learned that development requires the use of the ncs platform. However, at this stage, we are using another MCU to control nRF1300.

We need to charge the battery using nPM1300.

Any suggestions?

Parents Reply
  • Here's an example of how I enabled charging with an Arduino 

    #include <Wire.h>
    
    void setup() {
        Wire.begin(); //set charge current limit//
        Wire.beginTransmission(107); // 107 = I2C address of nPM1300
        Wire.write(byte(0x3)); // address offset for CHARGER
        Wire.write(byte(0x08)); // BCHGISETCHARGEMSB 
        Wire.write(byte(0x64)); // set max charging current to 400 mA
        Wire.endTransmission();
        
        Wire.begin(); //set charge termination voltage//
        Wire.beginTransmission(107); 
        Wire.write(byte(0x3)); 
        Wire.write(byte(0x0c)); // BCHGVTERM
        Wire.write(byte(0x08)); // set charging to stop at 4.2 V 
        Wire.endTransmission();
        
        Wire.begin(); //enable charger// 
        Wire.beginTransmission(107); 
        Wire.write(byte(0x3)); 
        Wire.write(byte(0x04)); // BCHGENABLESET
        Wire.write(byte(0x01)); // Enable charging
        Wire.endTransmission();
    
    }


    Br, 

    Robin

Children
Related