first version of saving temp value

Saves temp value to memory. uses systick to set flag. Needs more work