5.2 Simulation The Hex File Using Proteus: Profesional
5.2 Simulation The Hex File Using Proteus: Profesional
Document Title
Page 12 of 22
LABORATORY
PRACTICUM
Figure 1-6
2. Proteus work area will appear; shows in Figure 1-7. Select button P and follow the next
instructions.
Figure 1-7
Page Number
Document Title
Page 13 of 22
LABORATORY
PRACTICUM
Figure 1-8
4. Select instruction bellows and doudle click your left mouse to input components inside category
window as shown in figure 1-9.
a) MICROPROCESSORS > PIC16F877A
b) RESISTORS > 3 WATT1K
c) OPTOELECTRONICS > LED-BIBY
d) SWITCHES & RELAYS > BUTTON
Figure 1-9
Page Number
Document Title
Page 14 of 22
LABORATORY
PRACTICUM
5. Drag and drop components by clicking at DEVICES window to working window as shown at
figure 1-10.
Figure 1-10
6. Right click mouse and select properties for rotate the components to your suitable positions as
shown at figure 1-11.
Figure 1-11
7. Connect and wiring all components.
Page Number
Document Title
Page 15 of 22
LABORATORY
PRACTICUM
8. Click Terminals Mode button to input POWER and GROUND to your working space as shown
at figure 1-12.
Figure 1-12
9. Arrange your components to suitable position and completed your work with the correct
connections as figure 1-13.
Figure 1-12
Page Number
Document Title
10.
Page 16 of 22
LABORATORY
PRACTICUM
Save your project at different folder and named it Projek1_circuit as figure 1-14.
Figure 1-13
Figure 1-14
11. From your working space, double click your PIC16F877A and follow the instructions number
inside figure 1-15. Setting your Edit Component window by following the step given. 1st setting
frequency to 4 MHz, 2nd click at browse button and select the hex file from the project folder
created by compiler (MPLAB or Micro C ) . 3rd click OK.
Page Number
Document Title
Page 17 of 22
LABORATORY
PRACTICUM
Figure 1-15
11. Click DEBUG > EXECUTE to simulate your program and click DEBUG > STOP ANIMATION to stop
the program. From your window project, you can animate your program by clicking suitable
button as shown in figure 1.16. Explain your observation.
Figure 1-16
12. The complete circuit as shown as Figure 1-17.
Figure 1-17