Navigation

Showing posts with label PIC18F1320. Show all posts
Showing posts with label PIC18F1320. Show all posts

Saturday, 3 September 2016

Using MPLAB software for programming a PIC microcontroller – Part 2

In this tutorial, procedures on how to simulate a PIC18F1320 microcontroller using the HEX code generated by the MPLAB software will be explained. Also, programming the physical chip using PICKit3 will be shown.

Below is a circuit in Proteus ISIS that blinks an LED every 500ms explained in the previous post. The LED is connected as a pull up resistor to pin RB2 of the PIC. Not that in the software, it is also pin RB2 that is being turned ON and OFF. The circuit also shows connection of the PIC to the PICKit programmer.


After drawing the circuit, Right click on the PIC18F1320, Choose Edit Properties. The following screen will appear.

Using MPLAB software for programming a PIC microcontroller – Part 1

I would be using the MPLAB 8.89 and CCS C Compiler
Step 1: Go to Project -> Project Wizard
Step 2: Choose the PIC18F1320 microcontroller