1 / 9

A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment

A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment. De Silva C. R. eledscr@nus.edu.sg. About PIC 16F877 Microcontroller. A single 40 pin IC that include. A Microcontroller Unit (MCU) 8kB of Flash Memory (Program Memory)

ruby-yang
Download Presentation

A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment De Silva C. R. eledscr@nus.edu.sg

  2. About PIC 16F877 Microcontroller A single 40 pin IC that include • A Microcontroller Unit (MCU) • 8kB of Flash Memory (Program Memory) • 384 Bytes of RAM (Data Memory) • Several Pheripheral devices that include • Digital IO ports • Analog to Digital Coverters • Serial Communication Ports • Programable Timers • Interrupt Controller

  3. A Simplified Block Diagram MCU Unit Data Memory PORT A PORT B PORT D PORT E Digital I/O Multiplexed via PORT A PORT E Analog I/O FLASH Program Memory Timer Comm. Complete product documentation available at http://www.microchip.com

  4. Development Tools (software) • Microchip MPLAB • An IDE • Built in assembler MPASM • Support 3rd part tools • Available FOC at • http://www.microchip.com • HiTech Pic C Compilar • ANSI C Compatible • Run inside MPLAB • 60 day evaluation version available at • http://www.htsoft.com

  5. Development Tools (Hardware) Programmer Your Design (PIC16F877) Debugger In Circuit Emulator

  6. +5v Output GND Example Design …. • Tracking position of a Joystick PIC16F877

  7. +5v Output GND Example Design …….. PortC_0 PortC_1 PortA_1 PortC_2 PortC_3 PIC16F877 PortC_4 PortC_5 PortC_6 PortC_7 GND

  8. Program Flowchart …. Setup Ports/ AD converter Start Conversion Complete ? Convert ADC output to LED values Output LED values

  9. Some Useful ideas ….. • Data RAM is a limited resource in MCU’s, use them only when needed. • Try incorporate most functionality into the resources available in the MCU reducing the component count • Wherever possible keep signals and values in digital form. • Do not overload outputs • Document your programs • Neat wiring and good component layout becomes helpful when debugging • Always read component datasheets before you use them

More Related