When you cook butter on its own for long enough you will get some grainy, brown residue at the bottom.

When butter melts you can see its has the oil (clarified butter) then the little white solid bits. When cooked these solids can burn. This is why regular butter burns on its own in a pan.

Try clarifying your butter by melting it gently then pouring off the clear oil, leaving behind the white residue.