PDA

View Full Version : why?



HBFR
- 28th July 2005, 18:04
'Why led0 fash for ever
Wat I must do to stay in ASM "loop" start goto start

'16F84A

'----- DEFINE ------------------
DEFINE OSC 8 ' 8 Mhz XT
'----- Port --------------------

TRISA=%1111 '1 in
TRISB=%11111110 '0 portB.0 out

'----- VAR ---------------------

led0 var portB.0

'----- INIT --------------------

pause 200
low led0
pause 200
high led0
pause 200

'----- PGM -------------
main:

ASM
start
goto start
endasm

goto main

Darrel Taylor
- 28th July 2005, 18:23
Why? indeed

The PIC is probably reseting itself over and over when the Watch Dog Timer times out.

You could put a CLRWDT after start, or just lose the ASM and use

start:
goto start

- or -

STOP

_________________
Best regards,
<-- Darrel -->
http://www.darreltaylor.com/files/Running_light.gif
Concentrate on the RED light .... You are getting sleepy ... You feel a sudden urge to contribute to this thread .... When I count to 3 .... you WILL post a reply .. 1 .. 2 .. 3 !

mister_e
- 28th July 2005, 23:23
Your signature work darrel!...

i agree 100% with the watch dog timer stuff If he is enable at programming time. It could be also a floating MCLR pin too...

Melanie
- 28th July 2005, 23:30
You working for the Cylons now Darrel?

mister_e
- 28th July 2005, 23:51
It also remind the front lights of K-2000 car... many many years ago :)

Darrel Taylor
- 28th July 2005, 23:56
Working for the Cylons?

Well, I don't think so. But, if there's another me on planet Caprica ..... :)

and, oh yes, who could forget "KIT" the car.

_________________
Best regards,
<-- Darrel -->
http://www.darreltaylor.com/files/Running_light.gif
Concentrate on the RED light .... You are getting sleepy ... You feel a sudden urge to contribute to this thread .... When I count to 3 .... you WILL post a reply .. 1 .. 2 .. 3 !

jessey
- 29th July 2005, 00:36
For some strange reason I just couldn't help but to reply LOL Good one Darrel!

Darrel Taylor
- 29th July 2005, 02:41
Hi Jessey,

Long time no hear ...

Well, the signature seems to be working well!

Now am just sorry i didn't go with the original plan ....

.... When I count to 3 .... you WILL send money to Darrel Taylor :p

_________________
Best regards,
<-- Darrel -->
http://www.darreltaylor.com/files/Running_light.gif
Concentrate on the RED light .... You are getting sleepy ... You feel a sudden urge to contribute to this thread .... When I count to 3 .... you WILL post a reply .. 1 .. 2 .. 3 !

Dwayne
- 29th July 2005, 15:48
For some odd reason I felt the urge to send Money....So I did...

Money

NavMicroSystems
- 29th July 2005, 17:28
I'm sorry Darrel,

with a WatchDog TimeOut occuring before you had counted up to 3
never got that "3"

So I had no reason for sending money.

Darrel Taylor
- 29th July 2005, 19:32
http://www.darreltaylor.com/files/ROFL.gif

To both of you.

crematory
- 29th July 2005, 23:45
Hello

To all of you:

Most Impressive !!