for /t/ in English, the rule is approximately
when the phoneme /t/ is the first sound of a stressed syllable, pronounce it as the allophone [tʰ]
that's why <top> is [tʰɑp], and <stop> is [stɑp]
because in <top> the /t/ sound is the first sound of a stressed syllable