How To Use A Pic18 Microcontroller

Similar documents
Chapter 13. PIC Family Microcontroller

Fondamenti su strumenti di sviluppo per microcontrollori PIC

Tutorial for MPLAB Starter Kit for PIC18F

An Introduction to MPLAB Integrated Development Environment

MX PIC24F Educational Module User Manual

DESIGN AND IMPLEMENTATION OF LOW COST HOME SECURITY SYSTEM USING PIC MICROCONTROLLER ANDGSM NETWORK

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

2.0 Command and Data Handling Subsystem

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

Getting Started with PIC24F/PIC24H Programming and Interfacing in C

THE TRANSITION FROM THE 8085 TO THE MODERN WORLD

Microtronics technologies Mobile:

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

Digital Signal Controller (DSC) Development Tools

New Product Brief 750 Naples Street San Francisco, CA (415)

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Computer Automation Techniques. Arthur Carroll

Embedded Patient Monitoring System

dspic30f4012 Microcontroller

DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB

PIC-MAXI-WEB development board Users Manual

Accurate Measurement of the Mains Electricity Frequency

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Electronic Shopping Cart Facility for Blind People Using USB Firmware

Lab 1 Course Guideline and Review

DS1104 R&D Controller Board

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

Hand Gestures Remote Controlled Robotic Arm

Cell Phone Based Liquid Inventory Management Using Wireless System

EasyPIC4 User s Manual

Technical Training Course Catalog

CGI-based applications for distributed embedded systems for monitoring temperature and humidity

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

Lecture N -1- PHYS Microcontrollers

AN-812 APPLICATION NOTE

Lab Experiment 1: The LPC 2148 Education Board

Byte code Interpreter for 8051 Microcontroller

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade!

Freescale Semiconductor, I

Concept Engineering Adds JavaScript-based Web Capabilities to Nlview at DAC 2016

QT1 Xplained Pro. Preface. Atmel QTouch USER GUIDE

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

MICROCONTROLLER BASED SMART HOME WITH SECURITY USING GSM TECHNOLOGY

Soft processors for microcontroller programming education

Evolution of 8-bit Microcontrollers

STEPPER MOTOR SPEED AND POSITION CONTROL

Computer Organization and Components

Microcontroller-based experiments for a control systems course in electrical engineering technology

Evo Laser Firmware Developer s Manual

Integrated Development Environment

Design and Implementation of an Accidental Fall Detection System for Elderly

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

MEMS ACCELEROMETER BASED PASSWORD RECOGNITION SYSTEM USING GSM

LEGO NXT-based Robotic Arm

Electronic Transmission Control/ Continuously Variable Transmission Control

Chapter 2 Features of Embedded System

ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

Introduction. Getting familiar with chipkit Pi

Using Xbee in Serial Communication

The Heartbeat behind Portable Medical Devices: Ultra-Low-Power Mixed-Signal Microcontrollers

Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol

Peak Power Tracker Circuit Description (from

Smart Thermostat page 1

Computer and Set of Robots

Embedded Component Based Programming with DAVE 3

Smart Home System Using Android Application

ELEC 5260/6260/6266 Embedded Computing Systems

Embedded Web Server for Infra Red Remote Control

SBC8600B Single Board Computer

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada

Adding WiFi to Your Embedded System. WPG Americas & Gainspan Titus Wandinger (WPG) & Su Li (Gainspan) April 23, 2013

Renesas Inverter Agenda

Integrated Development Environment

Understanding PIC WEB boards and how to use Microchip's TCP-IP Stack. Rev.A, April Copyright(c) 2008, OLIMEX Ltd, All rights reserved

Design of Self-service Car Washing Machine Control System Based on ARM Zhengmin Cui a, Peng Sun b

SPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI

Definitions and Documents

Smart DC Micro-grid for Effective Utilization of Solar Energy

A DESIGN OF DSPIC BASED SIGNAL MONITORING AND PROCESSING SYSTEM

Chapter 12. Development Tools for Microcontroller Applications

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

ET-BASE AVR ATmega64/128

Data Transfer between Two USB Flash SCSI Disks using a Touch Screen

ECIO40P ECIO28P ECRM40. Page 1. USB programmable microcontrollers. 0.6 DIP footprint. Supplied with a free version of Flowcode. E-blocks compatible

EMBEDDED SYSTEM BASICS AND APPLICATION

A Practical Approach to Education of Embedded Systems Engineering

IEC The Fast Guide to Open Control Software

MICROPROCESSOR AND MICROCOMPUTER BASICS

Make the green IP switch Low-energy semiconductor solutions for VoIP

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

Curriculum Overview. Class units A class unit is approximately a half a day depending upon the region and the venue in which it is delivered.

Transcription:

8-Bit PIC18 Microcontroller Units A Technology Review By: Michael Aeberhard ECE 4007 Senior Design Dr. James Hamblen

Introduction Embedded microcontrollers are a widely used technology in nearly all modern devices. Fewer electrical devices today are controlled by analog means and opt to instead operate digitally using microcontrollers that can be programmed to perform any number of tasks. There are number of different types of microcontrollers for many different types of applications. The most familiar to the common person are the Intel processors that run a typical desktop computer; however, this paper focuses on the much smaller scale and more single-task oriented microcontrollers that operate devices such as a microwave, a radiator fan on a car, or servo motors used to move the handles on a foosball table. One of the more popular and easier to use line of microcontroller products for such taskoriented applications are the 8-bit PIC18 microcontrollers from Microchip, whom in 2006 have been ranked first in world-wide sales of 8-bit microcontrollers [1]. These MCUs (Microcontroller Units) offer a great price/performance ratio and use technology that has been proven to be very reliable and easy to develop with [2]. Overview of the PIC18 Family of Microcontrollers The PIC18 family of MCUs from Microchip are some of the fastest and most featureloaded 8-bit PIC MCUs on the market, with a maximum clock speed of 40 MHz and 128 kb of Flash memory [2]. These microcontrollers are small enough for many embedded applications, but also powerful enough to allow a lot of complexity and freedom in the design process of an embedded system. Microchip Technology makes it easy to begin developing with their PIC18 MCUs through their various development tools and demonstrations boards [3]. The MPLAB Integrated Development Environment allows for a centralized interface between the programmer and all of Microchip Technology s devices. The MPLAB ICD 2 In-Circuit Debugger is the developer s most powerful and cost-efficient tool for low-cost real-time debugging of all PIC18 MCUs. The PIC18 MCUs are programmed using a device-specific PIC assembly language, but using the MPLAB C18 compiler allows developers also to develop applications in C [3]. Depending on the features necessary in the embedded design, various demonstration boards are offered by Microchip Technology that allow developers to realize and test

their designs in a cost-effective manner before producing the final PCB for implementation. Features of the PIC18 The typical PIC18 MCU is feature-loaded with every I/O pin connected to an internal peripheral device. Typical features include 8- and 16-bit timer modules with various features, capture/compare/pwm modules, master synchronous serial port module, universal synchronous receiver and transmitter, 10-bit analog-to-digital converter, comparator, and more [4]. All of these PIC18-wide features can be turned on or off in the program code. The I/O pins that these features run on can be alternatively be used as standard input/outputs in the design if the specific feature to those pins is not used. In addition to these common features, many of the PIC18 MCUs have other device-specific features built into them depending if the design calls for a particular type of technology. Some of the more design-specific features include [2]: Motor Control PWMs Full Speed USB 2.0 PSP Onboard LCD Controller CAN 2.0B PSP 10 Base-T Ethernet Given these wide-array of features, a PIC18 microcontroller is a cost-effective solution to all kinds of embedded design projects. PIC18 Applications The PIC18 MCUs are widely used in everyday modern devices because of their cost and ease of development. One of the most prominent industries that make use of the PIC family of microcontrollers is the automotive industry, where PIC MCUs are used in every aspect of automotive electronics from ABS and airbags to suspension and powertrain [5]. PIC MCUs are ideal for automotive applications because of their low-cost, reliability, ease of development, and features. Controlling external devices such as motors, LCDs,

sensors, etc. are also easily accomplished with designs implemented using the PIC18 MCUs. A high-performance motor controller that makes use of a PIC18 s on-board USB feature to communicate with a laptop for complex algorithm processing and to communicate with a more complex PIC motor controller is demonstrated by Daniel Ramirez in an article in Circuit Cellar [6]. In this article, Daniel shows how easy it is to use design complex embedded motor controller using basic PIC18 technology for device communication and processing. The PIC18 family of MCUs also find their way into the classroom as one of the premier methods of teaching embedded design. The simple instruction set, easy-to-use development tools and demonstration boards, and wide range of features make the PIC18 MCUs a popular choice among professors in universities around the world for teaching embedded design with interesting hands-on projects for students. Professor John Peatman at the Georgia Institute of Technology teaches such a course using the PIC18F452 in conjunction with his text book, Embedded Design with the PIC18F452 Microcontroller, and a handful of projects that make the class interesting and valuable for undergraduate students beginning embedded design [7]. Given the performance and features of the PIC18 MCUs, the range of applications are only limited by the embedded designers who choose to use them. Conclusion Given the high versatility of the PIC18 family of MCUs, Team FIFA has chosen a PIC18F4520 as their primary microcontroller unit for controlling a series of servo motors that will move the handles back and forth on a foosball table and rotate the handles to kick the ball. By receiving commands from a computer, the microcontroller is tasked with reliability and quickly responding to the commands so that a successful robot-player in foosball can be created to achieve victory of a human opponent. Project Members: Team FIFA Michael Aeberhard, gtg039g@mail.gatech.edu (author) Shane Connelly, gtg381r@mail.gatech.edu Evan Tarr, etarr@gatech.edu Nardis Walker, nwalker3@gatech.edu

References [1] Microchip Ranks First in 8-bit Microcontroller Revenue, EDA Geek, [Online document], 2007 Apr. 16, [cited 2007 Sept. 3], Available HTTP: http://edageek.com/2007/04/16/microchip-gartner-dataquest/ [2] Microchip Technology, 2006 Product Line Card, [Online document], Mar 2006, [cited 2007 Sept. 3], Available HTTP: http://ww1.microchip.com/downloads/en/market_communication/00890c.pdf [3] Microchip Technology, PIC18F Development Tools, [Online document], Dec 2006, [cited 2007 Sept. 3], Available HTTP: http://ww1.microchip.com/downloads/en/devicedoc/39673c.pdf [4] Microchip Technology, PIC18F2420/2520/4420/4520 Data Sheet, [Online Document], 2007 June 25, [cited 2007 Sept 3], Available HTTP: http://ww1.microchip.com/downloads/en/devicedoc/39631d.pdf [5] Microchip Technology, Embedded Controller Solutions for Demanding Automotive Applications, [Online document], Oct. 2004, [cited 2007 Sept. 3], Available HTTP: http://www.microchip.com/stellent/groups/sitecomm_sg/documents/devicedoc/en 021613.pdf [6] D. Ramirez, High-Performance Motor Controller, Circuit Cellar, Sept., p.26-28, 2007. [7] J. Peatman, Embedded Design with the PIC18F452 Microcontroller. Upper Saddle River, NJ: Pearson Education, Inc., 2003.