PIC Microcontroller Projects in C

2nd Edition

Basic to Advanced

Authors: Dogan Ibrahim
Paperback ISBN: 9780080999241
eBook ISBN: 9780080999678
Imprint: Newnes
Published Date: 16th April 2014
Page Count: 660
Tax/VAT will be calculated at check-out
Compatible Not compatible
VitalSource PC, Mac, iPhone & iPad Amazon Kindle eReader
ePub & PDF Apple & PC desktop. Mobile devices (Apple & Android) Amazon Kindle eReader
Mobi Amazon Kindle eReader Anything else

Institutional Access


Extensively revised and updated to encompass the latest developments in the PIC 18FXXX series, this book demonstrates how to develop a range of microcontroller applications through a project-based approach. After giving an introduction to programming in C using the popular mikroC Pro for PIC and MPLAB XC8 languages, this book describes the project development cycle in full. The book walks you through fully tried and tested hands-on projects, including many new, advanced topics such as Ethernet programming, digital signal processing, and RFid technology. This book is ideal for engineers, technicians, hobbyists and students who have knowledge of the basic principles of PIC microcontrollers and want to develop more advanced applications using the PIC18F series.

This book Includes over fifty projects which are divided into three categories: Basic, Intermediate, and Advanced.

New projects in this edition:

    Logic probe
    Custom LCD font design
    Hi/Lo game
    Generating various waveforms in real-time
    Ultrasonic height measurement
    Frequency counter
    Reaction timer
    GPS projects
    Closed-loop ON/OFF temperature control
    Bluetooth projects (master and slave)
    RFid projects
    Clock using Real-time-clock (RTC) chip
    RTC alarm project
    Graphics LCD (GLCD) projects
    Barometer+thermometer+altimeter project
    Plotting temperature on GLCD
    Ethernet web browser based control
    Ethernet UDP based control
    Digital signal processing (Low Pass Filter design)
    Automotive LIN bus project
    Automotive CAN bus project
    Multitasking projects (using both cooperative and Round-robin scheduling)
    Unipolar stepper motor projects
    Bipolar stepper motor projects
    Closed-loop ON/OFF DC motor control

    Key Features

    • A clear introduction to the PIC 18FXXX microcontroller's architecture
    • Covers developing wireless and sensor network applications, SD card projects, and multi-tasking; all demonstrated with the block and circuit diagram, program description in PDL, program listing, and program description
    • Includes more than 50 basic, intermediate, and advanced projects


    Embedded systems engineers working in industry, technicians, electronic hobbyists, undergraduate and graduate students developing embedded systems projects.

    Table of Contents

    • Preface
    • Acknowledgments
    • Chapter 1. Microcomputer Systems
      • 1.1. Introduction
      • 1.2. Microcontroller Systems
      • 1.3. Summary
      • 1.4. Exercises
    • Chapter 2. mikroC Pro for PIC Programming Language
      • 2.1. Structure of a mikroC Pro for PIC Program
      • 2.2. Arrays
      • 2.3. Pointers
      • 2.4. Structures
      • 2.5. Operators in C
      • 2.6. Modifying the Flow of Control
      • 2.7. mikroC Pro for PIC Functions
      • 2.8. mikroC Pro for PIC Library Functions
      • 2.9. Summary
      • 2.10. Exercises
    • Chapter 3. MPLAB X IDE and MPLAB XC8 C Programming Language
      • 3.1. The PICDEM PIC18 Explorer Development Board
      • 3.2. MPLAB X IDE
      • 3.3. MPLAB XC8 Compiler
      • 3.4. Summary
      • 3.5. Exercises
    • Chapter 4. Microcontroller Program Development
      • 4.1. Using the PDL and Flow Charts
      • 4.2. Examples
      • 4.3. Representing for Loops in Flow Charts
      • 4.4. Summary
      • 4.5. Exercises
    • Chapter 5. Simple PIC18 Projects
      • Project 5.1—Chasing LEDs
      • Project 5.2—Complex Flashing LED
      • Project 5.3—Random Flashing LEDs
      • Project 5.4—Logic Probe
      • Project 5.5—LED Dice
      • Project 5.6—Two-Dice Project
      • Project 5.7—Two-Dice Project Using Fewer I/O Pins
      • Project 5.8—7-Segment LED Counter
      • Project 5.9—Two-Digit Multiplexed 7-Segment LED
      • Project 5.10—Four-Digit Multiplexed 7-Segment LED
      • Project 5.11—LED Voltmeter
      • Project 5.12—LCD Voltmeter
      • Project 5.13—Generating Sound
      • Project 5.14—Generating Custom LCD Fonts
      • Project 5.15—Digital Thermometer
    • Chapter 6. Intermediate PIC18 Projects
      • Project 6.1—Four-Digit Multiplexed Seven-Segment Light Emit


    No. of pages:
    © Newnes 2014
    eBook ISBN:
    Paperback ISBN:

    About the Author

    Dogan Ibrahim

    Prof Dogan Ibrahim graduated from the University of Salford with First Class Honours in Electronic Engineering. He then completed an MSc course in Automatic Control Engineering at the University of Manchester, and PhD in Digital Signal Processing at the City University in London. Prof Ibrahim worked at several companies before returning to the academic life. He is currently a lecturer at the Department of Computer Information Systems at the Near East University. Prof Ibrahim is a Fellow of the IET, and a Chartered Electrical Engineer. His interests are in the fields of microcontroller based automatic control, digital signal processing, and computer aided design.

    Affiliations and Expertise

    Traffic Control Systems Unit, South Bank University, UK, and lecturer at the Department of Computer Information Systems, Near East University, Lefkosa, Cyprus