SFUSatClub / obc-firmware

Firmware for our cubesat's On-Board Computer using the TMS570LS0432 and FreeRTOS v9
16 stars 3 forks source link

Power System Integration #61

Open richarthurs opened 6 years ago

richarthurs commented 6 years ago

The power system has a battery charger chip that can communicate over I2C. There are several things we need to do with it, such as reading battery charge level and setting it to charge mode.

Power system info: https://docs.google.com/document/d/1e0Lc-tiGXJk7y76KnY_e55wmS_StJPHWGjifg3AzOwA/edit

Steps:

richarthurs commented 6 years ago

https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1019606/1/driver/charger/bq25703.c#50

richarthurs commented 6 years ago

https://chromium.googlesource.com/chromiumos/platform/ec/+/master/driver/charger/ https://chromium.googlesource.com/chromiumos/platform/ec/+/master/common/

richarthurs commented 6 years ago

http://www.ti.com/lit/ug/sluubg6/sluubg6.pdf

Important: Host has to write LSB command followed by MSB command

address 2E = ManufacturerID(), should be 40h