PIC16F886 internal clock settings
Posted: Mon Jul 13, 2026 10:14 am
Hi there,
I use a PIC16F886 for current measuring.
Six of the analogue inputs are connected to ZXCT1086Q sensors.
When the analogue input is high, one of the outputs is high to.
The controller runs with a 20MHz crystal.
When the input stays high, the output has to stay high to.
However, after a random time, sometimes the output goes low for a few milliseconds.
I think it may help when the 16F886 runs a little slower, 20MHz is the max.
The PIC16F886 has a 8MHz internal oscillator (pic 01)
I can't figure out how this can be selected (pic 02)
I have included the Flowcode also.
Can anybody point me in the right direction here?
Thanks,
Rinie
I use a PIC16F886 for current measuring.
Six of the analogue inputs are connected to ZXCT1086Q sensors.
When the analogue input is high, one of the outputs is high to.
The controller runs with a 20MHz crystal.
When the input stays high, the output has to stay high to.
However, after a random time, sometimes the output goes low for a few milliseconds.
I think it may help when the 16F886 runs a little slower, 20MHz is the max.
The PIC16F886 has a 8MHz internal oscillator (pic 01)
I can't figure out how this can be selected (pic 02)
I have included the Flowcode also.
Can anybody point me in the right direction here?
Thanks,
Rinie