Book: pic microcontrollers - programming in c
Table of Contents
...
Chapter 1: World of Microcontrollers
1.1 Introduction 1.2 NUMBERS, NUMBERS, NUMBERS... 1.3 MUST KNOW DETAILS 1.4 PIC MICROCONTROLLERS
Chapter 2: Programming Microcontrollers
2.1 PROGRAMMING LANGUAGES 2.2 THE BASICS OF C PROGRAMMING LANGUAGE 2.3 COMPILER MIKROCPRO FOR PIC
Chapter 3: PIC16F887 Microcontroller
3.1 THE PIC16F887 BASIC FEATURES 3.2 CORE SFRS 3.3 INPUT/OUTPUT PORTS 3.4 TIMER TMR0 3.5 TIMER TMR1 3.6 TIMER TMR2 3.7 CCP MODULES 3.8 SERIAL COMMUNICATION MODULES 3.9 ANALOG MODULES 3.10 CLOCK OSCILLATOR 3.11 EEPROM MEMORY 3.12 RESET! BLACK-OUT, BROWN-OUT OR NOISES? 4.1 BASIC CONNECTING 4.2 ADDITIONAL COMPONENTS 4.3 EXAMPLE 1 - Writing header,configuring I/O pins, using delay function and switch operator 4.4 EXAMPLE 2 - Using assembly instructions and internal oscillator LFINTOSC... 4.5 EXAMPLE 3 - TMR0 as a counter, declaring new variables, enumerated constants, using relay 4.6 EXAMPLE 4 - Using timers TMR0, TMR1 and TMR2. Using interrupts, declaring new function... 4.7 EXAMPLE 5 - Using watch-dog timer 4.8 EXAMPLE 6 - Module CCP1 asPWM signal generator 4.9 EXAMPLE 7 - Using A/D converter 4.10 EXAMPLE 8 - Using EEPROM Memory 4.11 EXAMPLE 9 - Two-digit LED counter, multiplexing 4.12 EXAMPLE 10 - Using LCD display 4.13 EXAMPLE 11 - RS232 serial communication 4.14 EXAMPLE 12 - Temperature measurement using DS1820 sensor. Use of 1-wire protocol... 4.15 EXAMPLE 13 - Sound generation, sound library... 4.16 EXAMPLE 14 - Using graphicLCD display 4.17 EXAMPLE 15 - Using touch panel... A.1 LET'S BEGIN... A.2 PROGRAM COMPILATION A.3 IS THIS A HAPPY ENDING? A.4 DEVELOPMENT SYSTEMS
Chapter 4: Examples
Appendix A: It's Time for Fun
Chapter 1: World of Microcontrollers
The situation we find ourselves today in the field of microcontrollers has its beginnings in the development oftechnology of integrated circuits. It enabled us to store hundreds of thousands of transistors into one chip, which was a precondition for the manufacture of microprocessors. The first computers were made by adding external peripherals, such as memory, input/output lines, timers and other circuits, to it. Further increasing of package density resulted in designing an integrated circuit which containedboth processor and peripherals. This is how the first chip containing a microcomputer later known as the microcontroller was developed.
1.1 Introduction 1.2 NUMBERS, NUMBERS, NUMBERS... 1.3 MUST KNOW DETAILS 1.4 PIC MICROCONTROLLERS
1.1 INTRODUCTION
Novices in electronics usually think that the microcontroller is the same as the microprocessor. That’s not true. They differ fromeach other in many ways. The first and most important difference in favour of the microcontroller is its functionality. In order that the microprocessor may be used, other components, memory comes first, must be added to it. Even though it is considered a powerful computing machine, it is not adjusted to communicating to peripheral environment. In order to enable the microprocessor to communicatewith peripheral environment, special circuits must be used. This is how it was in the beginning and remains the same today.
On the other hand, the microcontroller is designed to be all of that in one. No other specialized external components are needed for its application because all necessary circuits which otherwise belong to peripherals are already built in it. It saves time and space neededto design a device.
ALL THE MICROCONTROLLER CAN DO
In order to make it easier for you to understand the reasons for such a great success of microcontrollers, we will call your attention for a few minutes to the following example. About ten years ago, designing of an electronic device controlling the elevator in a multistory building was enormously difficult, even for a team of experts. Have...
Regístrate para leer el documento completo.