PIC PROBLEM!

Started by December 20, 2003
Hey,
I bought 5 16F628's and I can't get a simple thing to work! I'm
using PicBasic and my program is...

High 0 And I have a LED hooked up to RB0. To no success.

Any help?

Shamoon



Check LED is connected correctly, you can also check this by
connecting a multimeter to the pin and it should show +5v.

You do have a resistor somewhere in LED circuit?

MCLR is held high ?

Your programmer hasn't enabled the watchdog by default? If the
programmer enables this the pic will be constantly resetting.

And before Mr van Ooijen can say it, if you go to his website
www.voti.nl, there is some ready made and 'hexed' code to flash a
led. Use this as this is known to work. If it doesn't then you need
to check your pin connections and how your pic programmer is set up.

If it does - as it should, then at least you know that the Pic is OK,
that the LED is around the right way, and the answer has to be in the
code.

Whose picbasic are you using - there are at least 3 different
incarnations out there.

Colin
--
cdb, on 21/12/2003

I have always been a few Dendrites short of an Axon and believe me it
shows.

Light travels faster than sound. That's why some people appear bright
until they speak!



Thank you so much. My main problem was that I didn't have the osc
set to internal. I didn't realize that I couldn't use an external
clock.

Thanks!
Shamoon

--- In , cdb <cdb@b...> wrote:
> Check LED is connected correctly, you can also check this by
> connecting a multimeter to the pin and it should show +5v.
>
> You do have a resistor somewhere in LED circuit?
>
> MCLR is held high ?
>
> Your programmer hasn't enabled the watchdog by default? If the
> programmer enables this the pic will be constantly resetting.
>
> And before Mr van Ooijen can say it, if you go to his website
> www.voti.nl, there is some ready made and 'hexed' code to flash a
> led. Use this as this is known to work. If it doesn't then you need
> to check your pin connections and how your pic programmer is set up.
>
> If it does - as it should, then at least you know that the Pic is
OK,
> that the LED is around the right way, and the answer has to be in
the
> code.
>
> Whose picbasic are you using - there are at least 3 different
> incarnations out there.
>
> Colin
> --
> cdb, bodgy1@o... on 21/12/2003
>
> I have always been a few Dendrites short of an Axon and believe me
it
> shows.
>
> Light travels faster than sound. That's why some people appear
bright
> until they speak!




Colon, my answers will follow ##.
----- Original Message -----
From: "cdb" <>
To: <>
Sent: Saturday, December 20, 2003 11:40 PM
Subject: Re: [piclist] PIC PROBLEM! > Check LED is connected correctly, you can also check this by
> connecting a multimeter to the pin and it should show +5v.
>
> You do have a resistor somewhere in LED circuit?
##I plan to use the exmple in an587, 10k in, 330 out.
>
> MCLR is held high ?
## yes, with reset.
>
> Your programmer hasn't enabled the watchdog by default?
## I'm not sure. I'm using botloader, I'll will this to be sure.
If the
> programmer enables this the pic will be constantly resetting.
>
> And before Mr van Ooijen can say it, if you go to his website
> www.voti.nl, there is some ready made and 'hexed' code to flash a
> led. Use this as this is known to work. If it doesn't then you need
> to check your pin connections and how your pic programmer is set up.
>
> If it does - as it should, then at least you know that the Pic is OK,
## I've already have a program working sending pulse speeds, A/D for varying
speeds(10k pot), one momentary switch for fast forward, and one momentray
switch for fast reverse all controled through a hand held pad. Other
switches include forward/reverse, and Half steping modes. (these are tied
directly to the driver).
> that the LED is around the right way, and the answer has to be in the
> code.
>
> Whose picbasic are you using - there are at least 3 different
> incarnations out there.
## For now, I'm using Assemply. I feel more comfortable with it and I have a
better sense of control and understanding the code. I fell I can learn this
process more easily if I stick to Assembly.
thanks
bill
>
> Colin
> --
> cdb, on 21/12/2003
>
> I have always been a few Dendrites short of an Axon and believe me it
> shows.
>
> Light travels faster than sound. That's why some people appear bright
> until they speak! >
> to unsubscribe, go to http://www.yahoogroups.com and follow the
instructions