Mosaic Well-Known Member Oct 28, 2010 #1 Hi guys: I'd like to 'harden' my code with reset management. To handle brown outs and WDT time outs. Can anyone offer any sample code, 16F asm, that shows the use of the register bits and handling those type of resets? It seems that in the 16f886 a reset can cause the default HFINTOSC freq to goto 4Mhz. based on the IRCF bits of the OSCCON register I'd like to keep it at the 8MHz as fused. Last edited: Oct 28, 2010
Hi guys: I'd like to 'harden' my code with reset management. To handle brown outs and WDT time outs. Can anyone offer any sample code, 16F asm, that shows the use of the register bits and handling those type of resets? It seems that in the 16f886 a reset can cause the default HFINTOSC freq to goto 4Mhz. based on the IRCF bits of the OSCCON register I'd like to keep it at the 8MHz as fused.
P Pommie Well-Known Member Most Helpful Member Oct 28, 2010 #2 The fuses don't define the internal oscillator speed. You have to write to OSCCON to get 8MHz. What do you want to do different from a normal reset? Mike.
The fuses don't define the internal oscillator speed. You have to write to OSCCON to get 8MHz. What do you want to do different from a normal reset? Mike.