Searching \ for '[PIC]: PIC16F628 after programmed and verified wit' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=16F
Search entire site for: 'PIC16F628 after programmed and verified wit'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: PIC16F628 after programmed and verified wit'
2003\03\12@015533 by CaptMasterX

flavicon
face
I'm using the PIC16F628 with the PIC16PRO programmer.  The assembly I'm using
is very simple.  Basic stuff to turn on an LED.  After I program and verify
the hex code with the programmer, nothing happens with the PIC when I power
it up.  I've tried several PIC's and different code.  Once I just tried to
simply enable PORTA & PORTB  and set them to logic high, but still nothing
happened on the pins when I power the PIC.  I'm guessing none of the code is
being executed because of an internal clock problem.  The 16F628 has an
internal 4/20 mhz clock, so no external crystal should be necessary.  One of
the code samples I tried using was from this site:
http://www.qsl.net/oz1bxm/PIC/628LED.htm
There must be something I'm missing.  Please email me at spam_OUTcaptmasterxTakeThisOuTspamcs.com
if you see something I don't.
Thank You

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu>

2003\03\12@025742 by erholm (QAC)

flavicon
face
Are you actualy *telling* the PIC to use the INTOSC ?

If you don't know how to tell the PIC to use the INTOSC,
it's in the data sheet...

Jan-Erik Soderholm.


CaptMasterXspamKILLspamCS.COM wrote:
> The 16F628 has an internal 4/20 mhz clock, so no external
> crystal should be necessary.

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu>

2003\03\12@091451 by Olin Lathrop

face picon face
> The 16F628 has an internal 4/20 mhz clock, so no
> external crystal should be necessary.

It has only a 4MHz clock.  Note that you have to select one of the INTRC
oscillator modes to make use of it.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu>

2003\03\12@121015 by CaptMasterX

flavicon
face
I tried configuring the Internal Oscilator through PICALL with the configure
button but that doesn't seem to work. (I chose IntRC with no clkout but no
luck)   I tried loading PCON with the correct configuration bits but that
didn't work.  I also tried it through the asm file with this code:
__config  _INTRC_OSC_NOCLKOUT & _LVP_OFF & _WDT_OFF & _PWRTE_ON & _BODEN_ON

Does anyone know exactly how to enable the internal clock?  I read how to do
it in the data sheet...the register is in PCON, but I obviously can't load w
with the right bits and save it in PCON b/c in order to execute the
instruction I'd need the clock I don't have.

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamspam_OUTmitvma.mit.edu>

2003\03\12@122649 by erholm (QAC)

flavicon
face
The osc setting isn't set under normal program control.
So W-reg has nothing to do with this.
This config setting should be set by the programmer
at the same time as your program is downloaded.
I don't know your setup, but check that there isn't
some setting that disables the download of the config bits.

Jan-Erik Soderholm.


@spam@CaptMasterXKILLspamspamCS.COM wrote:
>Does anyone know exactly how to enable the internal clock?  I read how to do
>it in the data sheet...the register is in PCON, but I obviously can't load w
>with the right bits and save it in PCON b/c in order to execute the
>instruction I'd need the clock I don't have.

--
http://www.piclist.com hint: To leave the PICList
KILLspampiclist-unsubscribe-requestKILLspamspammitvma.mit.edu>

2003\03\12@141322 by Olin Lathrop

face picon face
> Does anyone know exactly how to enable the internal clock?  I read how
> to do it in the data sheet...the register is in PCON, but I obviously
> can't load w with the right bits and save it in PCON b/c in order to
> execute the instruction I'd need the clock I don't have.

The oscillator mode is selected in the configuraton fuses, not PCON, for
the reason you state.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu>

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...