At the start codon (AUG), the ribosome attaches to the mRNA and translation begins, it codes for methionine.
At the stop codon, the triplet bases that cause the ribosome, mRNA and tRNA molecule all separate and the polypeptide chain is complete.
The DNA sequence of triplets determines the codon sequence on mRNA that determines that order that tRNA molecules line up determining the sequence of amino acids.
In translation, ATP provides energy to attach amino acids to tRNA and to attach amino acids together.