An atomic clockwork using phase dependent energy shifts