Exploring Tutorial #1 Source Code:: 1. Start MPLAB Ide

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Exploring Tutorial #1 Source Code:

1. Start MPLAB IDE.

Select Start->Programs->Microchip MPLAB IDE->MPLAB IDE


2. Select the PIC12F675 device.

Select Configure->Select Device


Select PIC12F675

Exploring Tutorial #1 Source Code - (continued)


3. Create a new MPLAB IDE project.

Enter Project Name & Directory Path

Select Project->New
4. Add the file Debounce.asm to the project.

Select Tutorials Directory

Right click the mouse button on source files, select Add Files

Exploring Tutorial #1 Source Code - (continued)

Select Tutorial 1 Directory

Select Asm Directory

Select Debounce.asm file

Double click on Debounce.asm


to open the source code file.

Exploring Tutorial #1 Source Code - (continued)


5. Compile the project.

Output window will show build succeeded


if the code compiled correctly.

Select Project->Build All

Exploring Tutorial #1 Source Code - (continued)


6. Simulate the code.

Select Debugger->Select Tool->MPLAB SIM


Select Debugger->Step Into
or Press F7 to single step into the code.

The green arrow shows the next instruction that will be executed.

For more information on MPLAB IDE,


see the MPLAB IDE Quick Start guide included on the MPLAB IDE CD-ROM.

You might also like