Skip to main content

PIC Projects: A Practical Approach

PIC Projects: A Practical Approach

Hassan Parchizadeh, Branislay Vuksanovic

ISBN: 978-0-470-69461-9

Aug 2009

212 pages

In Stock

$35.95

Description

This book is a collection of projects based around various microcontrollers from the PIC family.  The reader is carefully guided through the book, from very simple to more complex projects in order to gradually build their knowledge about PIC microcontrollers and digital electronics in general.  On completion of this book, the reader should be able to design and build their own projects and solve other practical problems in digital electronics.

Many books in this area are theory based and can tend toward being overly explanatory in their approach to the subject.  Courses are moving towards being more practically oriented and this book provides the ideal companion to students completing projects with PIC microcontrollers.

Related Resources

About the Authors vii

Preface ix

Acknowledgements xiii

1 PREPARING TO DO A PIC PROJECT 1

1.1 Introduction 1

1.2 Overview of PIC Microcontroller 2

1.3 Basics of PIC Assembly Language 9

1.4 Introduction to C Programming for PIC Microcontroller 16

1.5 MPLAB Integrated Development Environment (IDE) 28

1.6 Advanced Debugger Features – Stimulus 48

2 SIMPLE INTERFACES 55

2.1 Introduction 55

2.2 PIC12F629 Circuit Design 56

2.3 The PIC12F629 Strip Board Design 57

2.4 The PIC12F629 PCB Board Design 58

2.5 The PIC12F629 – Flashing LED Application 59

2.6 PIC16F627A Circuit Design 68

2.7 PIC16F629 Strip Board Design 69

2.8 PIC16F627A PCB Board Design 70

2.9 PIC16F627A – Display Segments 71

3 DISPLAY INTERFACES 83

3.1 Introduction 83

3.2 PIC16F627A Four-Digit, Seven-Segment LED Display Circuit Design 84

3.3 PIC16F627A Four-Digit, Seven-Segment LED Display Circuit Strip Board Design 84

3.4 PIC12F629 PCB Board Design 86

3.5 PIC16F627A Four-Digit, Seven-Segment LED Display Circuit Application 86

3.6 PIC16F627A LCD Display Circuit Design 93

3.7 PIC16F627A Four-Digit, Seven-Segment LED Display Circuit Strip Board and PCB Design 95

3.8 PIC16F627A LCD Display Circuit Application 96

4 RS232 INTERFACES 105

4.1 Introduction 105

4.2 RS232 Interface Circuit Design 106

4.3 PIC16F627A MCU – Transmit – C Program 109

4.4 PIC16F627A MCU – Transmit – Assembly Program 115

4.5 PIC16F627A MCU – Receive – C Program 119

4.6 PIC16F627A MCU – Receive – Assembly Program 121

4.7 PIC16F627A MCU – Transmit-Receive – C Program 124

4.8 PIC16F627A MCU – Transmit-Receive – Assembly Program 126

5 INTERFACING PICS WITH THE ANALOG WORLD 129

5.1 Introduction 129

5.2 Hardware Description 132

5.3 Level Indicator Program and Advanced Simulator Features 133

5.4 Level Indicator with Timing 147

5.5 Level Indicator with Better Timing – Timer Interrupts 149

5.6 Talkthrough Program with Adjustable Sampling Rate 156

6 OTHER PIC PROJECTS 159

6.1 Introduction 159

6.2 Stepper Motor Controller using PIC12F675 159

6.3 DC Motor Controller using a PIC12F675 164

6.4 An Ultrasonic Measuring System using the PIC16F627A 167

6.5 Function Generator 173

6.6 Digital Filtering 178

Appendix 189

Index 191

  • Highly practical book, concentrating on the “hands on” approach of completing PIC based projects, rather than theory.
  • All projects in the book are fully tested, and are complete with detailed explanations and schematics to help the student assemble and test the program..
  • All programs are given in two languages, C and assembler.  This helps the reader obtain an easier understanding of these programs and various PIC features.
  • A number of different types of PIC microcontroller of varying complexity are used for the projects in the book.
  • A supporting website provides the diagrams and PCB layouts for the circuits used in the book, as well as links to all the support software required for assembly of the projects.