1 thought on “Instruction Manual for Beginners in Java”

  1. Instructions for programming a Microchip Microcontroller

    To: Prof. Ellis
    From: Gani Graceni
    Date: December 12, 2021
    Subject: instructions Manual

    PIC16F689 is a microcontroller manufactured by Microchip that features high performance RISC CPU with only 35 instructions to learn and an operating speed up to 200 MHz oscillator clock input. Its special features include power saving mode, precision internal oscillator, wide operating voltages code protection etc. It has lots of low-power and multiple peripheral features. This is a 20-Pin Flash-based, 8 bit CMOS Micro.

    The purpose of this project is to show the process of the instructions manual on how to program a PIC microcontroller. Being that PIC microcontrollers are extremely useful tools for use and development in many electronic and computer applications any electrical or computer science engineer should know the basic steps how to program a PIC microcontroller.
    Selected Audience

    This set of instructions would come handy to a hardware and software engineer at the same time. For this list of instructions Microchip data sheets will be used to get the specs for programming PIC16 Series only.

    Table of contents:
    • Hardware set up
    • Getting the software
    • Building the circuit
    • Downloading the MPLAB PM3 Programmer
    • Creating basic C language code to turn on a DC motor
    • Building the project
    • Compiling the project
    • Debug the code

    1. Construct the Hardware ( Basic set up to light an LED or turn on a Fan or DC motor)
    a) Power up the chip using VDD Positive voltage and VSS ( Ground)
    b) Connect PIN 2, PIN 3, PIN 4 and PIN 5 for COM with the programmer
    c) Connect OUTPUT PIN A0 to an LED. ( optional )

    2. Find and install the Software in your PC or MAC
    a) https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide
    b) Open MPLAB X software
    3. Create a new project file
    a) File / New / Project

    4. Build parameters in the software
    a) Manage configurations
    b) Select proper PIC model
    c) Select proper programmer
    d) Select proper compiler
    e) Select apply

    Find PM3 programmer manual at: http://ww1.microchip.com/downloads/en/DeviceDoc/50002278A.pdf
    5. Configure the specific Microchip PIC16
    a) Select the bit configuration of the IC
    6. Configure the bits
    a) Change the defaults or click Ok
    7. Configure the oscillator and watchdog timer
    a) Select the frequency of the Oscillator
    b) Set up the watchdog timer for running the code
    8. Set up the Wait(milliseconds) timer
    a) Set up a time delay in milliseconds click Ok
    9. Write and modify the code
    a) Debug the code using “Debug” feature on the toolbar.
    b) Fix the bugs or software errors.

    10. Select the programmer
    a) Select PM3 Programmer
    b) Click Ok
    11. Configure the programmer
    a) Make sure the configuration is successful

    12. Build the project
    a) Click build
    13. Make and download from programmer to device

    a) Press “Make and download” on the MPLAB X Toolbar
    14. Check is the program finished “Successful”
    15. Double check if the program checksum is equal to the device checksum

    Reference list:
    “MPLAB® X IDE | Microchip Technology.” [Online]. Available: https://www.microchip.com/en-us/tools-resources/develop/mplab-x-ide. [Accessed: 22-Dec-2021].
    “MPLAB PM3 device programmer user’s … – microchip technology.” [Online]. Available: https://ww1.microchip.com/downloads/en/DeviceDoc/50002278A.pdf. [Accessed: 22-Dec-2021].
    “PIC16F631/677/685/687/689/690 data … – microchip technology.” [Online]. Available: https://ww1.microchip.com/downloads/en/DeviceDoc/40001262F.pdf. [Accessed: 22-Dec-2021].

Leave a Reply