Just wondering if it would be OK to leave a 32.768Khz oscillator across RB6-7 (Time 1 clock input) while using ICSP. The oscillator will also have two stability capacitors which are grounded (30pf?).
If you use the timer1 oscillator on a chip where the crystal shares the programming pins then you will not be able to reprogram the chip. You can try it if you wish on a Junebug, just turn on the timer1 oscillator on the 1320 and MPLAB will no longer recognize the 1320. The only way to get it to work again is to insert a new 1320, let MPLAB recognize it and then hot swap to the old one and erase it.
If you are using something like a 16f88 then you can develop your code on a 16f886 and then swap back when it's all working. Same with a 18F1320 and a 18F2620.
He not using across oscillator pins He is wanting to use on PGD and PGC
all that will happen is it will lock the chip from reprogramming like Pommie said
Heh, it would be easy to just yoink out the oscillator then put it back in after i guess . Would I need to yoink out the stability capacitors as well? (Just theory I'll probably do it anyways)
Heh, it would be easy to just yoink out the oscillator then put it back in after i guess . Would I need to yoink out the stability capacitors as well? (Just theory I'll probably do it anyways)
you are correct Bill
it is there as a NOTE under para 7.6 of PIC16F87/88 datasheet, that reads
"Note: The Timer1 oscillator shares the T1OSI and T1OSO pins with the PGD and PGC pins used for programming and debugging. When using the Timer1 oscillator, In-Circuit Serial Programming™ (ICSP™) may not function correctly (high voltage or low voltage), or the In-Circuit Debugger (ICD) may not communicate with the controller. As a result of using either ICSP or ICD, the Timer1 crystal may be damaged. If ICSP or ICD operations are required, the crystal should be disconnected from the circuit (disconnect either lead) or installed after programming. The oscillator loading capacitors may remain in-circuit during ICSP or ICD operation"
For a 32.768 kHz watch crystal oscillator, it is a good idea to put about 20 kΩ between the oscillator output (T1OSO) and the crystal. It can help start-up by preventing other oscillation modes. The capacitors will be directly connected to the crystal.
1 kΩ or so in series with the oscillator input (T1OSI) would not make any difference to normal running.
If you add both of those resistors the ICSP will not damage the crystal and will not be upset by anything the crystal or the capacitors can do.
For a 32.768 kHz watch crystal oscillator, it is a good idea to put about 20 kΩ between the oscillator output (T1OSO) and the crystal. It can help start-up by preventing other oscillation modes. The capacitors will be directly connected to the crystal.
1 kΩ or so in series with the oscillator input (T1OSI) would not make any difference to normal running.
If you add both of those resistors the ICSP will not damage the crystal and will not be upset by anything the crystal or the capacitors can do.
For a 32.768 kHz watch crystal oscillator, it is a good idea to put about 20 kΩ between the oscillator output (T1OSO) and the crystal. It can help start-up by preventing other oscillation modes. The capacitors will be directly connected to the crystal.
1 kΩ or so in series with the oscillator input (T1OSI) would not make any difference to normal running.
If you add both of those resistors the ICSP will not damage the crystal and will not be upset by anything the crystal or the capacitors can do.