EmbeddedRelated.com
Forums
Memfault Beyond the Launch

PIC Timing

Started by Unknown January 31, 2004
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.



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.


__________________________________




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: p...@yahoogroups.com
Sent: Saturday, January 31, 2004 5:49 PM
Subject: Re: [piclist] PIC Timing

XT

--- h...@yahoo.com 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
To



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.
> >
> > __________________________________
>



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.
> >
> > __________________________________
>



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




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
----- Original Message -----
From: Phil
To: p...@yahoogroups.com
Sent: Saturday, January 31, 2004 7:44 PM
Subject: [piclist] Re: PIC Timing

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 p...@yahoogroups.com, "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: p...@yahoogroups.com
>   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



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





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.

__________________________________




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.
>
> __________________________________
>





Memfault Beyond the Launch