Truncated match.
PICList
Thread
'watching code process from one pin??'
1998\12\26@010849
by
Steve Tomes
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
1998\12\28@090936
by
Jim Robertson
1998\12\28@104755
by
Dave Johnson
>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
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
-----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
|
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
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 08:31 PM 12/28/98 +0000, Peter L. Peres wrote:
{Quote hidden}>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...
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
|
Jim Robertson wrote:
{Quote hidden}>
> 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
spamBeGonedonspamBeGone
dontronics.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
I'll bet this is leading somewhere Young Jim. :-)
Don McKenzie TakeThisOuTdonEraseME
spam_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...