PK-HCS12E128 User's Manual
Page 17
2
9. From the main menu, choose
Run > Single Step
. The instruction highlighted in the
Source
window will be executed, and the program execution will be stopped
immediately after.
10. In the
Source
window, insert a breakpoint at the
“PTT = ATDDR0H;”
instruction in the
main
function. To insert the breakpoint, right-click on the
“PTT = ATDDR0H;”
line and,
from the pop-up menu, select
“Set Breakpoint”
.
11. Rotate the potentiometer slightly. Then, from the main menu, choose
Run >
Start/Continue
. The application will restart from where it was previously stopped. The
application will stop at the breakpoint location as soon as the next A/D conversion is
done.
12. Issue a Single Step command (
Run > Single Step
). The new value of the A/D
conversion will be displayed on the LEDs.
Congratulations! You have successfully completed this tutorial! You can continue to
experiment with the CodeWarrior user interface and discover by yourself its potentialities.
For an in-depth guide of all of the user interface features, select
Help > CodeWarrior Help
from the CodeWarrior HC(S)12 IDE’s main menu.
Additional Examples
Additional examples can be found under the
“\Program Files\Metrowerks\CodeWarrior
CW12\(CodeWarrior_Examples)\MC9S12\SofTec Microsystems\PK-HCS12E128”
directory.