----- Original Message ----- From: "Rikard Bosnjakovic" To: "Microcontroller discussion list - Public." Sent: Friday, April 20, 2007 7:23 AM Subject: Re: [PIC] Oscillator-selection > Last (I hope) question for this matter. > > In the 16F886-dataheet (DS41291-D), page 77, there's a note about > using the internal oscillator saying "The oscillator requires a > start-up and stabilization time before use. Thus, T1OSCEN should be > set and a suitable delay observed prior to enabling Timer1". > > The term "suitable delay" does really not tell me anything. Are we > talking about 2 msec or 2 secs here? I don't have an oscilloscope > either so I cannot "observe" the waveform. > > Anyhow, if I parse the datasheet correct, I'm supposed to do something > like this: > > banksel T1CON ; Setup Timer1 > bsf T1CON, T1OSCEN ; Enable internal > oscillator > bsf T1CON, TMR1CS ; Use external clock > (built-in 32kHz) > > call some_nice_delay_thingie > > bsf T1CON, TMR1ON ; Start timer1 > > > > -- > - Rikard - http://bos.hack.org/cv/ > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > I'm new to PICs, but maybe the information in Table 17-4 of the datasheet, particularly parameter 32 (oscillation start-up timer period) will help? Good luck. Richard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist