Specifications

Chapter 5 - MPLAB
If there are variables in the program, it is good to watch them, too. To each variable is assigned
one window (Watch Windows) by clicking on WINDOW->WATCH WINDOWS.
Simulator with open windows for SFR registers, file registers and variables.
The next command in a simulator is DEBUG>RUN>STEP which starts our steping through the
program. The same command could have been assigned from a keyboard with <F7> key
(generally speaking, all significant commands have keys assigned on the keyboard).
By using the F7 key, program is executed step-by-step. When we get to a macro, file containing a
macro is opened (Bank.inc), and we proceed to go through a macro. In a SFR registers window we
can observe how W register receives value 0xFF and delivers it to port B. By clicking on F7 key
again, we don't achieve anything because program has arrived to an "infinite loop". Infinite loop is
a term we will meet often. It represents a loop from which a microcontroller can not get out until
interrupt occurs (if it is used in a program), or until a microcontroller would be reset.
Previous page Table of contents Chapter overview Next page
© Copyright 1999. mikroElektronika. All Rights Reserved. For any comments contact webmaster.
http://www.mikroelektronika.co.yu/english/product/books/PICbook/5_07Poglavlje.htm (2 of 2) [4/2/2003 16:18:32]