This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ78350: Extracting day, month, and year from 0x1B ManufacturerDate() Command

Part Number: BQ78350

Tool/software:

Hello, I am confused about the 0x1B ManufacturerDate() Command regarding how I am suppose to determine the date from the 2 byte unsigned integer returned upon a word read. The technical reference sheet says "This read-word function returns the pack's manufacture date. The ManufacturerDate() value is in the following format: Day + Month × 32 + (Year–1980) × 256 and is stored in Manufacturer Date". Assuming this is an equation where Date_Integer=Day + Month × 32 + (Year–1980) × 256, that would mean that there are 3 unknown variables with only one known variable. So, does any one know how to get the day, month, and year from this?