
- Wait for the user command to start logging.
- On user command,
  - Initialize the pointer to the storage area.
  - Start the 20ms interrupt.
  - Either start a timer for 20 sec or counter for the required number of samples and acquire data.
  - At the end of 20 sec, save acquired data in a log.
  - Clear the storage area and wait for the next user command to log. 
