Chapter 5

Simple PIC18 Projects

Abstract

This chapter is about basic microcontroller projects using the popular PIC18F45K22 microcontroller. It is recommended that this chapter should be read first before moving to more complex projects in the next chapters. The projects are designed using both the mikroC Pro for PIC compiler and the MPLAB XC8 compiler. The projects in this chapter are based on light emitting diodes (LEDs), liquid crystal displays, multiplexed 7-segment LEDs, and sound. The complete hardware and software details of each project are given. All the projects have been fully tested and are working.

Keywords

Basic microcontroller projects; Chasing LEDs; Complex flashing LEDs; Digital thermometer; Generating sound; LED dice; LED voltmeter ...

Get PIC Microcontroller Projects in C, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.