PDA

View Full Version : 3AM hair pulling again



muddy0409
- 12th March 2009, 19:03
Hello again all.
Got another little crazy happening:\
I am reading 16 events that are happening on porta using a FOR NEXT loop.
The events ARE coming in in groups of 16 correctly.
HOWEVER..after the first 16 events have been read and placed in an array and debugged to a terminal, I am going back to pick up the next group of 16 events. The input events are not starting before I get there to look at the port, but for some reason the count for the second, and every following group stops at 12. I have debugged the counter and it always stops at 12 after the first lot of 16 is processed.
Does this seem a little bit odd to anyone other than me??

bcd
- 14th March 2009, 00:21
Not clearing a pointer or an array start point ?

Without more info or a code snip I guess we'll all be kind of stabbing in the dark...

muddy0409
- 14th March 2009, 07:59
Dammit!!!
Found it...A typo in a timing load instruction...

I really gotta get some sleep.