Searching \ for 'watching code process from one pin??' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=watching+code+process
Search entire site for: 'watching code process from one pin??'.

Truncated match.
PICList Thread
'watching code process from one pin??'
1998\12\26@010849 by Steve Tomes

flavicon
face
What can you really see with just one pin???
I have seen it mentioned several times and need all the debug help I can
make for myself...
how can you watch the code via one pin??

1998\12\26@012059 by Don McKenzie

flavicon
face
Steve Tomes wrote:
>
> What can you really see with just one pin???
> I have seen it mentioned several times and need all the debug help I
> can
> make for myself...
> how can you watch the code via one pin??

It can be as simple as flashing a LED x number of times to inform you
what path your code has taken, to writing to a serial LCD with your
register data or any info you like to code up thay may be relevant.

Yep, all on one pin.

Don McKenzie  spam_OUTdonTakeThisOuTspamdontronics.com   http://www.dontronics.com

Don's Download Dungeon http://www.dontronics.com/download.html
For more details, send a blank message to .....infoKILLspamspam@spam@dontronics.com
or simstickspamKILLspamdontronics.com or .....basicsKILLspamspam.....dontronics.com

1998\12\28@090936 by Jim Robertson

flavicon
face
At 17:19 26/12/98 +1100, you wrote:
>Steve Tomes wrote:
>>
>> What can you really see with just one pin???
>> I have seen it mentioned several times and need all the debug help I
>> can
>> make for myself...
>> how can you watch the code via one pin??
>
>It can be as simple as flashing a LED x number of times to inform you
>what path your code has taken, to writing to a serial LCD with your
>register data or any info you like to code up thay may be relevant.
>
>Yep, all on one pin.
>
>Don McKenzie  EraseMEdonspam_OUTspamTakeThisOuTdontronics.com   http://www.dontronics.com

I just bought a WIRZ SLI-OEM lcd driver from Don Mac just for this purpose.
(Nice thingy you're got there Ben, well done!)

It is well worth the time and effort to se yourself up with accessable
debugging tools like this.

Jim




>Don's Download Dungeon http://www.dontronics.com/download.html
>For more details, send a blank message to infospamspam_OUTdontronics.com
>or @spam@simstickKILLspamspamdontronics.com or KILLspambasicsKILLspamspamdontronics.com
>
--------------------------------------------------------
Jim Robertson
Email: RemoveMEnewfoundTakeThisOuTspampipeline.com.au

http://www.pipeline.com.au/users/newfound
--------------------------------------------------------

1998\12\28@104755 by Dave Johnson

flavicon
face
>It can be as simple as flashing a LED x number of times to inform you
>what path your code has taken, to writing to a serial LCD with your
>register data or any info you like to code up thay may be relevant.
>
>Yep, all on one pin.

I use a Piezo beeper on one pin, and have routines to do various kinds of
chirps and whistles and beeps. Works great for me, and keeps the family
pets interested as well :-)

Dave Johnson

1998\12\28@105747 by Stefan Sczekalla-Waldschmidt

flavicon
face
Hi Dave,

Dave Johnson wrote:
>
> >It can be as simple as flashing a LED x number of times to inform you
> >what path your code has taken, to writing to a serial LCD with your
> >register data or any info you like to code up thay may be relevant.
> >
> >Yep, all on one pin.
>
> I use a Piezo beeper on one pin, and have routines to do various kinds of
> chirps and whistles and beeps. Works great for me, and keeps the family
> pets interested as well :-)
>
> Dave Johnson

How about putting them onto a Web-Page, I can imagine that these
routines may be
of interest many Piclisters.

Kind regards

       Stefan

1998\12\28@110721 by dave vanhorn

flavicon
face
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 01:51 PM 12/27/98 +1100, Jim Robertson wrote:
>At 17:19 26/12/98 +1100, you wrote:
>>Steve Tomes wrote:
>>>
>>> What can you really see with just one pin???
>>> I have seen it mentioned several times and need all the debug help I
>>> can
>>> make for myself...
>>> how can you watch the code via one pin??


I wrote a little routine called "ping". You call it with a value in TEMP(a
register), and it
toggles a set pin the number of times asked for in temp. This makes it easy
to track
execution of the program through multiple steps. You need a good scope
though, since
the pulse train is short and fast. (125nS/pulse on an 8 Mhz AVR)


-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.5
Comment: Trust them, they're from the government!  (NOT!)

iQA/AwUBNoeqdkt+LG8vnBoNEQKTAwCcC6EWF8xkE8I4deWIxlPfZs5RzGMAoKyw
18xaLa4+1+/DAOLOwqT2kFfs
=Ejd3
-----END PGP SIGNATURE-----

1998\12\28@133645 by Peter L. Peres

picon face
Hello,

On Mon, 28 Dec 1998, dave vanhorn wrote:
> I wrote a little routine called "ping". You call it with a value in TEMP(a
> register), and it
> toggles a set pin the number of times asked for in temp. This makes it easy
> to track
> execution of the program through multiple steps. You need a good scope
> though, since
> the pulse train is short and fast. (125nS/pulse on an 8 Mhz AVR)

So you need a DSO, which is not an option for many...

This is often used (I only had to use a single pulse to sync a scope to
the internal cycle through the software though). A step further is to use
an existing jumper or button as 'continue' button. The code is compiled to
stop on a button read at interesting places, by calling the button poll
function. Then you measure interesting values, and press the button to go
on. Button debouncing has to be *exemplary* of course. The code is very
short (~15 instructions, and one register for debouncing). I think that
this can be permanently embedded in the firmware, with a pull-up resistor
and a NC test switch connected temporarily for testing ('run' is on the
L->H transition, the other transition is an intermediary state in the
debouncer).

Peter

1998\12\28@134449 by dave vanhorn

flavicon
face
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 08:31 PM 12/28/98 +0000, Peter L. Peres wrote:
{Quote hidden}

I wrote it for what I've got, I would expect others to do the same.
It would be possible to make a two pin output for a 74HC165 shift register,
so that you could output a byte to 8 LEDS (or more,  it's cascadable) and a
74HC688 8 bit magnitude comparator (from radio shack) can monitor for any
occurence of a specific bit-pattern. It all depends on what you've got
available.



-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.5
Comment: Trust them, they're from the government!  (NOT!)

iQA/AwUBNofPMEt+LG8vnBoNEQID6QCffRiVDYFdlb7hWnIgHuj4Fvqm9CoAoI71
AWfq6OGEwzQyycuo4OuGxLWK
=UE+l
-----END PGP SIGNATURE-----

1998\12\28@150006 by Don McKenzie

flavicon
face
Jim Robertson wrote:
{Quote hidden}

I'll bet this is leading somewhere Young Jim. :-)

Don McKenzie  TakeThisOuTdonEraseMEspamspam_OUTdontronics.com http://www.dontronics.com

Don's Download Dungeon:   http://www.dontronics.com/download.html
Australian Electronics Ring http://www.dontronics.com/aering.html

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