EE2361 - Lab1 - Getting Started (1).pdf - EE 2361...

This preview shows page 1 - 4 out of 24 pages.

EE 2361 - Introduction to MicrocontrollersLaboratory #1Initial software and hardware setupPage 1
EE 2361 - Lab 1ECE DepartmentBackgroundModern microcontrollers are incredibly powerful and complex. Much of the time you’ll find third parties (Adafruit) will have created advanced libraries or Application Programming Interfaces (APIs) that do everything you want. In the case of these libraries, many many people have come before and completed the same or a similar task. Unfortunately, it's hard to get paid for doing a job that many people have done many times before. This course will teach you how to take the next step toward being a development engineer. You’ll be able to read a datasheet, implement your own custom features, and wrap those in externally accessible functions that are easy for future engineers and programmers to work with. The courses labs are organized into 4 stages. 1.)Easy Lab, full walk through, software/hardware online 2.)Moderate support, teach the basics 3.)Limited Support, work off datasheets, discover on your own 4.)Project, do something independent/new PurposeIn this lab you will prepare both the hardware and software you will need throughout the rest of this course. You will install the MPLAB X IDE and the XC16 Compiler. Finally, you will load pre-generated code onto your microcontroller in order to test the functionality of your new board. Supplemental ResourcesPIC24FJ64GA002 Family Datasheet PIC24 Programmer’s Reference Manual Required Component1x 10k Ohm Resistor 1x 10uF Caps 2x 0.1uF Caps 6-pin Header Strip PIC24FJ64GA002 Microcontroller Red LED 1x 220 Ohm Resistor PIC programmer Self-Guided LabInstallation of MPLAB X, XC16 Compiler, and MCCYou will need to install two components to develop programs for your PIC24 in EE 2361. Page 2
EE 2361 - Lab 1ECE DepartmentMPLAB X IDE - an Integrated Development Environment with simulation and debug capabilities The XC16 Compiler - a manufacturer specific compiler that converts C (.c files) and Assembly (.s files) into machine code (.hex files) Both of these applications need to be downloaded and installed separately. Install MPLAB XStart at , you’ll notice there is a table with headings at the bottom of the page, click on “Downloads”, as shown below: OR NOTE: These tables and “twiddles” are where you will find the vast majority of useful information from Microchip. Try Googling for our microcontroller “PIC24FJ64GA002” and “microchip XC16” and you’ll find documentation, downloads, examples, and other useful information. Once the download is complete: 1.)Run the install program, 2.)Give the installer unlimited admin privileges (and your first born child), when appropriate accept Microchip’s EULA (sell your soul) 3.)Click through the remaining prompts as appropriate.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture