On Mon, 26 Apr 2004, weird_ed_edison wrote: > hello again, > > I tried the C code supplied below, here is the results of my test. > If > I build the project with debug mode, and have atleast 1 breakpoint, > in the code prior to the loop (mine is above and outside the loop), > then it works, i see all the addresses i am supposed to. If i do > not have a breakpoint in the code before the loop it does not work. > It also does not work if I download the code to flash and run it > directly. > > Here is an example of the A(19)-A(16) i am seeing on the analyzer > > without breakpoint in code: > highaddress: 0 2 4 6 8 a c e 0 2 4 ....... (a(16) never goes high) > > with breakpoint in code before start of loop: > highaddress: 0 1 2 3 4 5 6 7 8 9 a b c d e f 0 ...(a(16) toggles ) > > any suggestions? it seems like the debug code might initialize > something that i am overlooking, but im not sure what it could be. I don't know anything about this processor, but it sure looks like a simple increment problem. Time to read the manual and find every reference to the external port and all registers. The bit you need to flip is burried in there someplace. And you get to find it! Patience, persistence, truth, Dr. mike |