We will now skip over the initialisation code and proceed to the main tutorial.
• Open the file called ‘resetprg.c’ by double clicking it in the project navigator.
• Place a breakpoint at the call to main(); by double clicking in the column containing the PC arrow, next to the line to break
at; or selecting the line and pressing F9; or right click on the line and select ‘Toggle breakpoint’
• Press ‘Reset Go’ on the Debug Tool Bar.
The code will execute to the breakpoint. At this point all the device initialisation will have been completed.
• Press ‘Step In’ on the Debug Tool Bar.
The code window will open ‘main.c’ and show the new position of the program counter.
Support for the LCD display is included in the tutorial code. We do not need to be concerned about the details of the LCD interface – except
that the interface is write-only and so is not affected if the LCD display is attached or not.
• Insert a breakpoint on the ‘TimerADC();’ function call.
17