In this program, I have a function where I have two for loops. Here's an example: "for (j = 0; j < 3; j++) { for (i = 0; i < 8; i++) { time = 1612 - (4 * i); wait (); } if (j < 2) { time = 1588; wait (); while (incoming); } }" Well, the software simulation works perfectly. However, when I try programming a chip and implimenting it, it gets stuck somewhere in this loop. Do any of you happen to know why? Thanks
Allow me to correct myself. I have everything initialized. i, j, and time are all ints. The "while (incoming)" is for a pin. I have input coming in on P3.2 (which is incoming) and while that is high, the program waits until it is turned low again from an outside source.