1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: AVR -- old exam question

  1. Apr 28, 2015 #1
    1. The problem statement, all variables and given/known data

    Write a small c-code (not a subroutine, no header etc, only part of code) that take the mission time and the on-board time and combines these into SSP time. SSP stands for Surface Science Package

    2. Relevant equations

    See the Variables in the figure below


    3. The attempt at a solution

    unsigned int missionTime=0x??, onboardTime=0x??;

    void main(void) {

    sspTime =


    I dont know what value missionTime and onboardTime should have. From the Figure 3 in the link, how can i determine the hexadecimal values that the missionTime and onBoardTIme should have ?

    The answer should be missionTime=0xFFF, onboardTime=0x2AA; but i don't know why
  2. jcsd
  3. Apr 28, 2015 #2


    User Avatar

    Staff: Mentor

    The problem is asking for a bit of code, not a value. The answer will be some lines of code. Maybe an example is given using these values.

    Did you read the problem statement? (not a subroutine, no header etc, only part of code)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted