סימן י סעיף טז
כָּל זְמַן שֶׁהַתְּפִלִּין עָלָיו, לֹא יַסִּיחַ דַּעְתּוֹ מֵהֶן כְּלָל, חוּץ מִבִּשְׁעַת תְּפִלַּת ֹשְמוֹנֶה עֶשְׂרֵה וְתַלְמוּד תּוֹרָה. אָסוּר לֶאֱכֹל בָּהֶן סְעוּדַת קֶבַע. אֲבָל אֲכִילַת אַרְעַי, מֻתָּר לֶאֱכֹל בָּהֶן. וְלִישֹׁן אֲפִלּוּ שְׁנַת אַרְעַי אָסוּר בָּהֶן (כ"ח ממ"ד).
As long as you are wearing tefillin your attention must not be diverted from them even for a moment, except while praying the Amidah and while studying Torah.32When you concentrate on the words of prayer or on the Torah, certainly the fear of heaven is upon you and thus it is not a diversion from the sacred purpose of tefillin. It is forbidden to eat a regular meal while wearing tefillin, but eating a snack [while wearing]33A snack according to halachah consists of a kebeitzah. See glossary for exact equivalent. tefillin is permissible; but taking even a short nap while wearing tefillin is forbidden.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)