Hi All,
I've been using PIC16F88's and up until now I've had no dramas with them.
This latest problem has me absolutely stumped. I'm sure it's an obvious fix but I just cannot see it.
Ok, so the PIC is basically used to control 3 x 7 segment displays. I'm using MPLAB to write the program. I'm using a 4Mhz crystal with 2 x 15pF caps. In doing so, my config register is adjusted as such:
__CONFIG _CONFIG1, _CP_OFF & _WDT_OFF & _XT_OSC & _CCP1_RB0 & _LVP_OFF
I've used this code before under very similar circumstances, with no problems at all.
Anyway, I compile the code, everything seems fine. but when I test the pic in my circuit, the program runs a lot slower than normal. Then (this is where the confusion really sets in), I switch the circuit off, remove the crystal, turn the circuit back on, and it still runs. so I'm assumming it's running off an internal clock, despite the fact that I set it to external in the config.
Any suggestions?
Thanks. -Tom
I've been using PIC16F88's and up until now I've had no dramas with them.
This latest problem has me absolutely stumped. I'm sure it's an obvious fix but I just cannot see it.
Ok, so the PIC is basically used to control 3 x 7 segment displays. I'm using MPLAB to write the program. I'm using a 4Mhz crystal with 2 x 15pF caps. In doing so, my config register is adjusted as such:
__CONFIG _CONFIG1, _CP_OFF & _WDT_OFF & _XT_OSC & _CCP1_RB0 & _LVP_OFF
I've used this code before under very similar circumstances, with no problems at all.
Anyway, I compile the code, everything seems fine. but when I test the pic in my circuit, the program runs a lot slower than normal. Then (this is where the confusion really sets in), I switch the circuit off, remove the crystal, turn the circuit back on, and it still runs. so I'm assumming it's running off an internal clock, despite the fact that I set it to external in the config.
Any suggestions?
Thanks. -Tom