1. Not finding help here? Sign up for a free 30min 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!

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

    http://s716.photobucket.com/user/Pi...s[user]=86328122&filters[recent]=1&sort=1&o=0

    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

    DrClaude

    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)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: AVR -- old exam question
  1. Exam question. (Replies: 1)

Loading...