I need to use an External Oscilator for my 16F628. Which setting should I use? LP, XT, HS, EC? What else do I need to do? Thanks for any help. |
|
PIC Timing
Started by ●January 31, 2004
Reply by ●January 31, 20042004-01-31
XT --- wrote: > I need to use an External Oscilator for my 16F628. Which setting > should I use? LP, XT, HS, EC? > > What else do I need to do? > > Thanks for any help. __________________________________ |
|
Reply by ●January 31, 20042004-01-31
It depends on what freq Osc your using. From
page 93, table 14-2 of the PIC16F62X datasheet (which I assume you forgot
to mention that you read but were confused :) ),
Mode
Freq
LP
32kHz or 200kHz
XT
100kHz, 2MHz or 4MHz
HS
8MHz, 10MHz or 20MHz
You need to refer to the data sheet because you
must include capacitors on each leg of the XTAL. The tables give the appropriate
values. There is also a similar table if your using a ceramic resonator
circuit.
Scott Kellish
|
|
Reply by ●January 31, 20042004-01-31
When I put it on XT, it doesn't work at all. Right now, i have it on
INT.... ideas? --- In , John Remington <jrem123@y...> wrote: > XT > > --- honamos@y... wrote: > > I need to use an External Oscilator for my 16F628. Which setting > > should I use? LP, XT, HS, EC? > > > > What else do I need to do? > > > > Thanks for any help. > > > > __________________________________ > |
Reply by ●January 31, 20042004-01-31
Nope. Use EC and you will gain the use of RA6! --- In , John Remington <jrem123@y...> wrote: > XT > > --- honamos@y... wrote: > > I need to use an External Oscilator for my 16F628. Which setting > > should I use? LP, XT, HS, EC? > > > > What else do I need to do? > > > > Thanks for any help. > > > > __________________________________ > |
Reply by ●January 31, 20042004-01-31
doesn't this all depend on what he means by external oscillator? If he means crystal or resonator, then this answer is correct but if he wants to generate the clock elsewhere and pump it into the pic, then EC is the way to go. --- In , "Scott Kellish" <skellish@c...> wrote: > It depends on what freq Osc your using. From page 93, table 14-2 of the PIC16F62X datasheet (which I assume you forgot to mention that you read but were confused :) ), > > Mode Freq > LP 32kHz or 200kHz > XT 100kHz, 2MHz or 4MHz > HS 8MHz, 10MHz or 20MHz > > You need to refer to the data sheet because you must include capacitors on each leg of the XTAL. The tables give the appropriate values. There is also a similar table if your using a ceramic resonator circuit. > > Scott Kellish > > ----- Original Message ----- > From: John Remington > To: > Sent: Saturday, January 31, 2004 5:49 PM > Subject: Re: [piclist] PIC Timing > XT > > --- honamos@y... wrote: > > I need to use an External Oscilator for my 16F628. Which setting > > should I use? LP, XT, HS, EC? > > > > What else do I need to do? > > > > Thanks for any help. > > > > __________________________________ > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions > > > -------------------------------- ---------- > Yahoo! Groups Links > > a.. To |
Reply by ●January 31, 20042004-01-31
Your right in that it depends on what he wants
to use as a clock. He said "external osc", but if he's going to use a clock
derived elsewhere than EC would be used. He really needs to read the datasheet
as all (most) of the answers are right there.
Scott
|
Reply by ●January 31, 20042004-01-31
Well, I have a 4MHz Oscillator. I tried XT, but it doesn't work. It only works on INTRC(IN) for some reason. I have the appropriate capacitor values for XT, but it still doesn't work. Ideas? Shamoon --- In , "Scott Kellish" <skellish@c...> wrote: > It depends on what freq Osc your using. From page 93, table 14-2 of the PIC16F62X datasheet (which I assume you forgot to mention that you read but were confused :) ), > > Mode Freq > LP 32kHz or 200kHz > XT 100kHz, 2MHz or 4MHz > HS 8MHz, 10MHz or 20MHz > > You need to refer to the data sheet because you must include capacitors on each leg of the XTAL. The tables give the appropriate values. There is also a similar table if your using a ceramic resonator circuit. > > Scott Kellish > > ----- Original Message ----- > From: John Remington > To: > Sent: Saturday, January 31, 2004 5:49 PM > Subject: Re: [piclist] PIC Timing > XT > > --- honamos@y... wrote: > > I need to use an External Oscilator for my 16F628. Which setting > > should I use? LP, XT, HS, EC? > > > > What else do I need to do? > > > > Thanks for any help. > > > > __________________________________ > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions > > > -------------------------------- ---------- > Yahoo! Groups Links > > a.. To |
|
Reply by ●January 31, 20042004-01-31
If you have an oscillator and not a crystal, the you don't need any capacitors. Just hook it up to the OSCIN or OSC1 pin and set the PIC to HS, XT or LP. --- wrote: > Well, > I have a 4MHz Oscillator. I tried XT, but it doesn't work. It only > works on INTRC(IN) for some reason. I have the appropriate capacitor > > values for XT, but it still doesn't work. > > Ideas? > > Shamoon > --- In , "Scott Kellish" <skellish@c...> > wrote: > > It depends on what freq Osc your using. From page 93, table 14-2 of > > the PIC16F62X datasheet (which I assume you forgot to mention that > you read but were confused :) ), > > > > Mode Freq > > LP 32kHz or 200kHz > > XT 100kHz, 2MHz or 4MHz > > HS 8MHz, 10MHz or 20MHz > > > > You need to refer to the data sheet because you must include > capacitors on each leg of the XTAL. The tables give the appropriate > values. There is also a similar table if your using a ceramic > resonator circuit. > > > > Scott Kellish > > > > ----- Original Message ----- > > From: John Remington > > To: > > Sent: Saturday, January 31, 2004 5:49 PM > > Subject: Re: [piclist] PIC Timing > > > > > > XT > > > > --- honamos@y... wrote: > > > I need to use an External Oscilator for my 16F628. Which > setting > > > should I use? LP, XT, HS, EC? > > > > > > What else do I need to do? > > > > > > Thanks for any help. > > > > > > > > > > > > __________________________________ > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > instructions > > > > > > > > > > > > > > > > > > > -------------------------------- > ---------- > > Yahoo! Groups Links > > > > a.. To ===== My software has no bugs. Only undocumented features. __________________________________ |
|
Reply by ●February 1, 20042004-02-01
Hey Chad, I'm using a crystal. A 4MHz crystal... What now? Thanks for your help. Shamoon --- In , Chad Russel <chadrussel@y...> wrote: > If you have an oscillator and not a crystal, the you don't need any > capacitors. Just hook it up to the OSCIN or OSC1 pin and set the PIC > to HS, XT or LP. > > --- honamos@y... wrote: > > Well, > > I have a 4MHz Oscillator. I tried XT, but it doesn't work. It only > > works on INTRC(IN) for some reason. I have the appropriate capacitor > > > > values for XT, but it still doesn't work. > > > > Ideas? > > > > Shamoon > > --- In , "Scott Kellish" <skellish@c...> > > wrote: > > > It depends on what freq Osc your using. From page 93, table 14- 2 of > > > > the PIC16F62X datasheet (which I assume you forgot to mention that > > you read but were confused :) ), > > > > > > Mode Freq > > > LP 32kHz or 200kHz > > > XT 100kHz, 2MHz or 4MHz > > > HS 8MHz, 10MHz or 20MHz > > > > > > You need to refer to the data sheet because you must include > > capacitors on each leg of the XTAL. The tables give the appropriate > > values. There is also a similar table if your using a ceramic > > resonator circuit. > > > > > > Scott Kellish > > > > > > ----- Original Message ----- > > > From: John Remington > > > To: > > > Sent: Saturday, January 31, 2004 5:49 PM > > > Subject: Re: [piclist] PIC Timing > > > > > > > > > XT > > > > > > --- honamos@y... wrote: > > > > I need to use an External Oscilator for my 16F628. Which > > setting > > > > should I use? LP, XT, HS, EC? > > > > > > > > What else do I need to do? > > > > > > > > Thanks for any help. > > > > > > > > > > > > > > > > > __________________________________ > > > > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > > instructions > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------ -- > > ---------- > > > Yahoo! Groups Links > > > > > > a.. To > > > > ===== > My software has no bugs. Only undocumented features. > > __________________________________ > |
|