3. Select "Standalone Project" then Next.
4. Select "Family: Advanced 8-bit MCUs (PIC18)" and "Device: PICF452", then click Next:
5. Select "Simulator" and click Next:
6. Select "mpasm" as the compiler and click Next:
7. Name project ('Example') and click Finish:
8. In order to add an assembly file, go to the 'Projects' tab on the left and right click 'Source Files'
and go to NEW > ASSEMBLY FILE.ASM:
9. A window will pop up asking for the filename of the assembly file ('exampleProgram'), name
it and click Finish:
10. Student’s workspace should now offer an area to write code. Write code:
11. Once ready, click PRODUCTION > BUILD MAIN PROJECT:
12. A new panel will open up beneath student’s code. One of the tabs is the information
regarding build, and if there are any errors they will be shown here.
13. Now, before debugging (the simulation portion), you must enter one or more breakpoints in
Student’s code, otherwise MPLAB will read and execute instructions, without stopping, from the
entire program memory. In many cases, especially in this class, we want to execute instructions