Skip to content

barismetin/PIC18F4520-MPLABXProjects

 
 

Repository files navigation

PIC18F4520-MPLABXProjects

This repository contains several MPLABX Projects and some libraries to understand how to use a specific PIC18F4520 Development Board. This development board is designed by me and it is currently used in EEX 237 - Introduction to Microprocesses course of Fatih University, Istanbul, Turkey. I am the responsible Teaching Assistant of this course.

Aim of sharing these projects is reaching to and developing the projects easier by my students and people who may be interested.

To be able to run my projects:

1- Latest MPLAB X IDE program needs to be installed. (MPASM compiler is included to this installation.) http://www.microchip.com/mplab/mplab-x-ide

2- XC8 Compiler v1.34 needs to be installed. (C compiler for 8-bit PIC microcontrollers) http://www.microchip.com/mplab/compilers

The reason of using XC8 Compiler v1.34 instead of latest v1.36 is peripheral libraries (plibs) are not included to v1.36. You need to install "PIC18F Legacy Peripheral Libraries v2.0 - Windows" to use plibs. But microchip could not do it right and it causes errors. Safest way to use my projects is using XC8 Compiler v1.34 until microchip handles errors.

3- Folder hierarchy is important to use my libraries. You shouldn't change the folder hierarchy. For example, Libraries and PIC18F4520-XC8-LED.X folders should have equal hierarchy which means that they should be in the same directory.

4- If you want to use my Libraries in your own projects,

Firstly, your project folder should be in same directory with Libraries folder.

Secondly, right click to your project name in project window of MPLAB X IDE program. Then select Properties > Categories > Conf: [default] > XC8 global otions > XC8 compiler > Include directories. Insert "..\Libraries" to Include directories. Then, press OK.

Now, you can include any of my library in your code, by calling it like #include "pic18f4520_config.h".

5- In order to use plib libraries I recommend to use XC8 Compiler v1.34 instead of v1.36.

If you have installed multiple XC8 Compiler versions, you can select v1.34, as follows: Right click to your project name in project window of MPLAB X IDE program. Then select Properties > Categories > Conf: [default]. Select XC8 (v1.34) from Compiler Toolchain section. Then, press OK.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 70.4%
  • C 18.7%
  • Shell 6.1%
  • Assembly 2.9%
  • C++ 1.9%