change of external crystal to internal

Why do you want to do that? There are a lot of things that depend on the crystal frequency. Changing all of them is not trivial.