PIC in Practice A Project-Based Approach by D. W. Smith
Book Details :
Size2.94 MB

PIC in Practice A Project-Based Approach by D. W. Smith

PIC in Practice A Project-Based Approach by D. W. Smith | PDF Free Download.

PIC in Practice Contents

  • Introduction to the PIC microcontroller
  • Programming the 16F84 microcontroller
  • Introductory projects
  • Headers, porting code – which micro?
  • Using inputs
  • Understanding the headers
  • Keypad scanning
  •  Program examples
  • The 16C54 microcontroller
  • Alphanumeric displays
  • Analog to digital conversion
  • Radio transmitters and receivers
  • EEPROM data memory
  • Interrupts
  • The 12 series 8 pin microcontroller
  • The 16F87X Microcontroller
  • The 16F62X Microcontroller
  • Projects
  • Instruction set, files, and registers

Introduction to PIC in Practice A Project-Based Approach PDF

The microcontroller is an exciting new device in the field of electronics control. It is a complete computer control system on a single chip. microcontrollers include EPROM program memory, user RAM for storing program data, timer circuits, an instruction set, special function registers, power-on reset, interrupts low power consumption, and a security bit for software protection.

Some microcontrollers like the 16F818/9 devices include onboard A to D converters. The microcontroller is used as a single chip control unit for example in a washing machine, the inputs to the controller would be from a door catch, water level switch, temperature sensor.

The outputs would then be fed to a water inlet valve, heater, motor, and pump. The controller would monitor the inputs and decide which outputs to switch on i.e. close the door – water inlet valve open – monitor water level, close valve when the water level reached.

Check temperature, turn on the heater, switch off the heater when the correct temperature is reached. Turn the motor slowly clockwise for 5 seconds, anticlockwise for 5 seconds, repeat 20 times, etc. If you are not that maternal maybe you prefer discos to wash – then you can build your own disco lights.

The microcontroller because of its versatility, ease of use, and cost will change the way electronic circuits are designed and will now enable projects to be designed which previously were too complex.

Additional components such as versatile interface adapters (VIA), RAM, ROM, EPROM, and address decoders are no longer required.

One of the most difficult hurdles to overcome when using any new technology is the first one – getting started! It was my aim when writing this book to explain as simply as possible how to program and use the PIC microcontrollers. I hope I have succeeded.

A microcontroller is a computer control system on a single chip. It has many electronic circuits built into it, which can decode written instructions and convert them to electrical signals. The microcontroller will then step through these instructions and execute them one by one.

As an example of this, a microcontroller could be instructed to measure the temperature of a room and turn on a heater if it goes cold. Microcontrollers are now changing electronic designs.

Instead of hardwiring a number of logic gates together to perform some function we now use instructions to wire the gates electronically. The list of these instructions given to the microcontroller is called a program.

The aim of the book is to teach you how to build control circuits using devices such as switches, keypads, analog sensors, LEDs, buzzers, 7 segment displays, alphanumeric displays, radio transmitters, etc.

This is done by introducing graded examples, starting off with only a few instructions and gradually increasing the number of instructions as the complexity of the examples increases. Each chapter clearly identifies the new instructions added to your vocabulary.

The programs use building blocks of code that can be reused in many different program applications. Complete programs are provided so that an application can be seen working. The reader is then encouraged to modify the code to alter the program in order to enhance their understanding.

Throughout this book, the programs are written in a language called assembly language which uses a vocabulary of 35 words called an instruction set. In order to write a program, we need to understand what these words mean and how we can combine them.

The complete instruction set is shown in Chapter 19 Instruction Set, Files, and Registers.

All of the programs illustrated in the book are available from http://books.elsevier.com/uk//newnes/uk/subindex.asp?maintarget¼ companions/default individual.asp&isbn¼0750648120 You will, of course, need a programmer to program the instructions into the chip.

The assembler software, MPASM, which converts your text to the machine code is available from Microchip on www.microchip.com this website is a must for PIC programmers.

Download PIC in Practice A Project-Based Approach by D. W. Smith in PDF Format For Free.