That's what I'm trying to do, thanks.
I don't like changing the include, in case I have different needs in another program.
So I tried this:
@ __config _CP_OFF & _DEBUG_OFF & _WRT_ENABLE_ON & _CPD_ON & _LVP_ON & _BODEN_ON & _PWRTE_ON & _WDT_ON & _XT_OSC
But it's doing the same thing, the speed goes crazy when I reconnect.
Not sure if I set the switches properly though.
EDIT: I list all switches, that way I can easily see what is available without going back to datasheet, even if I use default values.
Bookmarks