Skip to content

OperationSmallKat/SafetyProcessorCode

Repository files navigation

SafetyProcessorCode

IDE: MCUXpresso (Download link)

Processor: LPC845

SDK: SDK_2.x_LPC845BREAKOUT

Pins:

SCL1: BQ24770

  • SDA: P0_08
  • SCL: P0_09

SCL2: FUSB302

  • SDA: P0_10
  • SCL: P0_11

SCL3: BQ76925

  • SDA: P0_30
  • SCL: P0_31

Buttons

  • Power/Wakeup: P0_04

OUTPUT

  • 6v En: P1_00 - Green LED
  • 3v En: P1_01 - Blue LED

Code Flow Outline:

Init:

  • Enable 3V and 6V
  • Setup and init: BQ76925, BQ24770 & FUSB302
  • Start balancing on BQ76925

running in loop

  • Check FUSB302 for power connected and do nothing else until it is
  • When power connected start charging, stop on power disconnect

non loop code (interrupt based)

  • when power is pressed, disable 3v & 6v
  • deep sleep mcu.

on wakeup

  • run init procedure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published