Is it Port B.4 that you want to toggle? Port A has analog features, you have to disable them first.
As it is, you set it high and leave it.
By the way, you don't have to set B.4 high after setting all of Port B high, it's already high.
Robert
EDIT: Aren't we supposed to use XT for 20mhz external oscillators? Can't remember, sure I read something about that tonight.
Bookmarks