Searching \ for 'Single stepping' 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=single+stepping
Search entire site for: 'Single stepping'.

Truncated match.
PICList Thread
'Single stepping'
1998\05\25@010604 by Dennis Plunkett

flavicon
face
25/5/'98



Re single steps

It would seem that the PIC tests the state of the interrupts during one of
the first phases of the internal clock, and thus does not perfrom the next
instruction before going back into the interrupt routine.

Thus now comes the problem "How to do it". It has been suggested that a
counter be placed on the OSC line, yuck! I have decided that I will use the
internal timer to schedule an interrupt, 8 clock cycles after the last
instruction in the routine. An external pin will be used to indicate a
single step (debounced with a F/F). To activate the S/S the code will enable
the timer interrupt and a NOP will be placed after the enable instruction,
thus from that point on I will be able to see I/O use, great for debugging!

I will let you all know how it goes!

Dennis


'Single stepping'
1998\06\01@211257 by TONY NIXON 54964
flavicon
picon face
If I remember correctly, someone was trying to single step code with
a PIC.

Couldn't you achieve this by using a monostable on the OSC1 line
connected to a push button. I guess you could also send it a stream
of 'X' bits to speed things up a little.

Just a thought.

Tony


PicNPoke Multimedia 16F84 Beginners PIC Tools.

**PLUS** - PicNPlay - PicNPlan - PicNPrep - PicNPost
PicNPort - DT Type Saver - *new* PicNQuiz.
Recent addition - Hex To Source converter.

http://www.picnpoke.com
Email spam_OUTpicnpokeTakeThisOuTspamcdi.com.au

1998\06\01@213743 by Dennis Plunkett

flavicon
face
At 09:13 AM 2/06/98 +1000, you wrote:
{Quote hidden}

Yes, I was looking at single stepping, but I wanted to do it with no
external hardware on the clock control other than a debounced step button,
and I was looking st how to control this internally. This I have done!. As
for your suggestion, yes, this will work, but need to clock 4 times for each
instruction



Dennis

-=====================================================================-

Dennis Plunkett: Embedded Hardware, Software design
NEC Australia DRMASS
ph 03 9264-3867

-=====================================================================-

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