Re: Pls explain the usage of Infinite While/For loop in Firm
I've answered this question in another thread, but here goes:
When you reach the end of your code processing, the Instruction pointer will keep incrementing and executing code. Suppose I used 45k of 64k in the chip. When I hit the end of my code, I continue into the 45k - 64k range. I don't want this, because the information above 45k is unpredictable. I want to keep the properties known, so I sit the program in an infinite loop at the end of the program. You can also just have the program loop, but the point is you need to keep the properties of your program known so that it doesn't do anything unpredictable.