Wireless Radio Frequency Module Using PIC Microcontroller.
Wireless Radio Frequency Module Using PIC Microcontroller.
PIC16F72/73 Microcontroller
An RF module is A smAll electRonic ciRcuit used to tRAnsmit, Receive, oR tRAnsceive RAdio wAves on one oF A numbeR oF cARRieR FRequencies. RF modules ARe widely used in consumeR ApplicAtions such As gARAge dooR openeRs, wiReless AlARm systems, industRiAl Remote contRols, smARt sensoR ApplicAtions, weAtheR monitoRing system, RFid, wiReless mouse technology And wiReless home AutomAtion systems. they ARe oFten used insteAd oF inFRARed Remote contRols As they hAve the AdvAntAge oF not RequiRing line-oF-sight opeRAtion.
ABSTrACT
The Radio Frequency Module is basically a PIC Microcontroller Based Wireless Communication System. Wireless RF Module Technology enables a vast edge to any electronics project & provide many consistent advantages, which leads it to todays up-to-date technology. An RF module is a small electronic circuit used to transmit, receive, or transceive a radio waves on one of a number of carrier frequencies. RF modules are widely used in consumer applications such as garage door openers, wireless alarm systems, industrial remote controls, smart sensor applications and wireless home automation systems. They are often used instead of infrared remote controls as they have the advantage of not requiring line-of-sight operation. Radio Frequency involves two sub units Named, Transmitter & Receiver. As their name implies transmitter is used to transmit or to send the data from input & it convert into serial port data by using HT12E encoder. This encoded data get received by receiver placing far away from it. The first job that a receiver do after receiving it, Is to convert or decode the data into parallel ports by using HT12D decoder. After converting the data into parallel form we simply connect the receiver side circuit with relay so that we can operate AC devices (e.g. Bulb, Tube, Fan etc.) with RF Module. And, About The Matter Technology that I have used is PIC16F73. The Technology of Any Project is Considered as The Heart as well as The Mind To It. The Biggest Concern To Any Student Or Trainee Remains That The Technology Hes Going Learn Must Be Up-to-Date and Must to be In Industrys Interest. So, Thats Why Ive Chosen PIC Series Of Microcontrollers. They are Cost Effective, Provide Wide Availability, large user base, extensive collection of application notes, availability of low cost or free development tools, and serial programming (and re-programming with flash memory) capability. The very first thing that concern to any electronics engineering student before choosing the project is its Applications. That means How much innovative the project is ? And How We can make it more innovative & also make it up-to-date so that it can extend to the bigger Applications of this age of Smart & Vast life.? And, Also Its Applications must be cost effective so that everyone can use it without any economical hesitation. There are numerous applications of wireless RF module. As, Todays one of the vast & leading technology Named RFID is based on this principle of RF module. The wireless mouse also work on the same principle. And, beyond them Industrial Automation, Custom Wireless Remote Controls like wireless x-ray systems & Long-Range Wireless Switch System (Hand-Held), Machine To Machine (M2M) RF Wireless Networking, Robot Control , Weather Monitoring System & Identifying Objects Using RF Transmitters And Receivers and Retrieving Data Using GSM etc. could be considered as Its Future prospects to work on. This is Indeed a great Project to work on.!
ii
Acknowledgement
It would be inappropriate to call this report complete and successful, If I dont thank the people who guided as in the preparation of this project. The submission of this project report gives me an opportunity to convey my gratitude to all those who have helped me to reach stage from where I have immense confidence to launch my career in the competitive world of electronics engineering. First and foremost, I would like to acknowledge my hearty thanks to the respected Mr. |------------|, HOD (ECE) for being a source of perpetual inspiration and for providing me such a nice environment for training with timely help. I would also like to express my most sincere gratitude and indebtedness to my guide Mr. |-------------| for their valuable help during the development of this project. Without his priceless suggestion and timely help I would not be able to complete this project. He has been a source of perpetual inspiration to me, towards a bright career. Not to forget the pain staking efforts of my college training and placement cell. Last but not the least I would express my utmost regards for the electronics and communication department of my Institute.
Contact Me
iii
Page No.
27 39
Figures
Fig: 4.1.1 Fig: 4.3.1 Fig: 5.3.4 Fig: 5.4.2 Fig: 5.5.3 Fig: 6.0 Fig: 6.6 Fig: 6.8 Fig: 6.9.1 Fig: 9.3.1 Fig: 9.5 Fig: 9.5.1 Fig: 9.8 Fig: 9.9.1 Fig: 9.9.2 Fig: 9.10 Fig: 11.1.1 Fig: 11.2.4 Fig: 11.5 Fig: 11.6 Types Of OrCAd A Still Of mikroC The Procedure Of PCB designing using OrCAd designing a Circuit In Capture CIS designing a PCB Footprint in layout Plus Various PIC microcontrollers Offered By microchip Pin diagram Of PIC16F73 Flowchart Of PIC & Its Core Architecture Voltage-Frequency Graph Of PIC rF Frequency Spectrum Block diagram Of rF Operation Transmitter/receiver explained rF module Operation Of Serial encoder Operation Of Serial decoder Flowchart Of rF module rFId Wireless rF Based mouse m2m PIC Tail daughter Board Flowchart Of rF Based Control robot 8 12 16 18 20 21 24 28 29 40 40 41 45 46 47 48 51 53 55 56
iv
Table Of Content
Chapter No.
Title
Title Page Abstract Acknowledgement list Of Tables & Figures
Page No.
i ii iii iv 1 1 2 2 2 2 3 4 5 5 5 6 6 7 8 8 9 9 10
1.
1.1
IntroductIon
What is Wireless.? examples Of Wireless devices radio Frequency What is rF module ? rF modules Performance Scope of Wireless rF module 1.2 1.3 1.4 1.5 1.6
2. 3.
3.1 3.2 3.3 3.4
4.
Tools To be Used
4.1 OrCAd 4.1.1 PCB designing 4.1.2 layout Plus 4.1.3 Capture CIS PIC Burner
4.2
4.3 4.4
11 13 14 14 14 15 17 19 21 22 22 23 23 23 24 25 27 27 28 29 30 30 31 32 32 32 33 33 34 34 35 35 35 36 36 37
5.
5.1 5.2 5.3 5.4 5.5
PCB Designing
Types Of PCB Function Of PCB Techniques used OrCAd design environment Placement Of layout Plus
6.
Technology To be Used
6.1 6.2 6.3 6.4 6.5 6.6 6.6.1 6.6.2 Introduction Special microcontroller Features Peripheral Features CmOS Technology data Space (rAm) PIN diagram PIN description Feature Table memory Orgenization Core Architecture uSArT
7. 8.
8.1 8.1.1 8.1.2 8.1.3 8.1.4 8.1.5 8.1.6 8.1.7 8.1.8 8.1.9 8.1.10 8.1.11 8.1.12 8.1.13
Project Planning
7.1 Project Planning & Scheduling
Requirement Analysis
listing The Components Components PCB Capacitor l.e.d l.C.d relay resistor BX433A ulN280 1A Battery hT12e/ encoder hT12d/ decoder PIC16F73
9.
Working Of RF Module
9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 Special Properties Of rF Current Frequency Chart rF module Interfacing With PIC Block diagram & explanation Source Code For PIC Serial encoder/decoder Operational Working Of rF Ckt Implementation 9.8.1 Transmitter Section 9.8.2 receiver Section Working Flowchart
38 38 39 40 40 43 44 45 46 46 47 48 49 49 50 50 50 51 52 52 52 52 53 53 54 54 54 55 56 57 59 59 59 60 60 61 62
10.
10.1
11.
11.1
Applications Of RF Module
rFId 11.1.1 Operation Of rFId 11.1.2 Applications Of rFId 11.2 Wireless mouse 11.2.1 rF Transmitter 11.2.2 rF receiver 11.2.3 rF Frequency 11.2.4 Advantages 11.3 Industrial Automation 11.4 Custom Wireless remote Controls 11.4.1 Wireless X-ray System 11.4.2 long range Transmitter 11.5 machine to machine Wireless rF Networking 11.6 robot using rF remote Control
12. 13.
13.1 13.2 13.3 13.4
14. 15.
Appendix Bibliography
1. INTRODUCTION
1.1 What is wireless ?
Wireless is a term used to describe telecommunications in which
electromagnetic waves (rather than some form of wire) carry the signal over part or all of the communication path. Some monitoring devices, such as intrusion alarms, employ acoustic waves at frequencies above the range of human hearing; these are also sometimes classified as wireless. Wireless technology is rapidly evolving, and is playing an increasing role in the lives of people throughout the world. In addition, everlarger numbers of people are relying on the technology directly or indirectly. (It has been suggested that wireless is overused in some situations, creating a social nuisance.)
Page 1
Radio Frequency (RF) is a rate of oscillation in the range of about 3 kHz to 300 GHz, which corresponds to the frequency of radio waves, and the alternating currents which carry radio signals. It is the use of radio signals to communicate real-time data from the warehouse floor to the WMS database and back to the floor. This expedites processing in the warehouse. Scanners collect the data and transmit it via radio frequency to antennas located throughout the warehouse. From the antennas, the signal proceeds to an access point that communicates with the warehouse management system. This process reduces paper, data entry time delays, cycle count processing, out of stock quantities, typing errors, and misshipments.
Page 2
Vehicle Monitoring Remote Control Telemetry Small-Range wireless network Wireless meter reading Access control systems Wireless home security systems Area paging Industrial data acquisition system Radio tags reading RF contact less smart cards Wireless data terminals Wireless fire protection systems Biological signal acquisition Hydrological and meteorological monitoring Robot remote control Wireless data transmissions Digital video/audio transmission Digital home automation, such as remote light Industrial remote control and remote sensing Remote control for household appliances and Electronics projects Mobile web server for elderly people monitoring
Page 3
2.
FEATURES OF RF MODULE
There are several features of wireless rF module:
Interference Immunity Low Power Required Receiver Sensitivity RF Basics Wireless Data Communication Wireless Transceiver Modules Reliable Power Efficient Long Range Communication 3KHz - 300GHz of Range Cost Effective Small size (QLP 4x4 mm package) True single chip UHF RF transmitter Frequency bands: 300-348 MHz, 400-464MHz and 800-928 MHz Programmable data rate up to 500kBaud Low current consumption Programmable output power up to +10dBm for all supported frequencies Programmable baseband modulator Ideal for multi-channel operation Very few external components: Completely on-chip frequency Synthesizer, no external filters needed Configurable packet handling hardware Suitable for frequency hopping systems due to a fast settling frequency synthesizer Optional Forward Error Correction with interleaving Many powerful digital features allow a high-performance RF system to be made using an inexpensive microcontroller Efficient SPI interface: All registers can be programmed with one burst transfer Integrated analog temperature sensor Support for asynchronous transparent transmit mode for backwards compatibility with existing radio communication protocols
The RF Transmitter and Receiver modules provide a simple to use RF data link at up to 300GHz from any standard CMOS/TTL source. The modules are very simple to operate and offers low current consumption. Data can be supplied directly from a microprocessor or encoding device, thus keeping the component count down and ensuring a low hardware cost. These modules exhibit extremely stable electronic characteristics due to the use of Etched The PCB In OrCAD Technology, which uses no adjustable components and ensures very reliable operation.
Page 4
Page 5
Page 6
Development
OrCAD is a proprietary software tool suite used primarily for electronic design automation.
The software is used mainly by electronic design engineers and electronic technicians to create electronic schematics and electronic prints for manufacturing printed circuit boards. The name OrCAD is a portmanteau, reflecting the company and its software's origins:
Oregon + CAD
Page 7
4.1 OrCAD
4.1.1 PCB Designing
The Cadence OrCAD product line provides affordable, high-performance PCB design tools that boost productivity for smaller design teams and individual PCB designers.
PCB stands for PRINTED CIRCUIT BOARD. Printed circuit board (PCB) provides both the physical structure for mounting and holding the components as well as the electrical interconnection between the components. That means a PCB or PWB (printed wiring board) is the platform upon which electronic components such as integrated circuit chips and other components are mounted. A PCB consists of a nonconducting substrate (typically fibre glass with epoxy as resin) upon which the conductive pattern or circuitry is formed. Copper is the most prevalent conductor although nickel, silver and tin are also used in some cases.
OrCad has a long history of providing individuals and teams with a complete set of technologies that offer unprecedented productivity, seamless tool integration, and exceptional value. New 10.5 release continues that tradition. Today's lower cost and yet highly sophisticated electronic design automation systems have created a unique challenge to nearly every engineering department. Therefore the use of EDA tools has become increasingly important as product life cycles have become shorter and shorter. Modern electronic design automation (EDA) tools are beginning to support a more efficient and integrated approach to electronic. OrCad Capture design entry is the most widely used schematic entry system in electronic design today for one simple reason: fast and universal design entry. Whether you're designing a new analog circuit, revising schematic diagram for an existing PCB, or designing a digital block diagram with an HDL module, OrCad Capture provides simple schematic commands you need to enter, modify and verify the design for PCB. OrCad Layout offers PCB designers and PCB design teams the power and flexibility to create and share PCB data and constraints across the design flow. OrCad Layout delivers all the capabilities to designers need from netlist to place and route, to final output.
Page 8
Features
Offers a proven, scalable, easy-to-use PCB editing and routing solution that grows as needed Tight, front-to-back application integration increases productivity and ensures data integrity A comprehensive feature set and a seamless PCB design environment delivers a complete solution to take a design from concept to production
Page 9
CIS allows designers to search, identify, and populate the design with preferred parts. With easy access to company component databases and part information, designers can reduce the amount of time spent researching needed parts.
Features
Boosts schematic editing efficiency of complex designs through hierarchical and Variant design capabilities. Integrates with a robust CIS that promotes the use of preferred, current parts to Accelerate the design process and reduce project costs. Provides access to more than two million parts with Cadence Active Parts, Offering greater flexibility when choosing design components.
Features
Linux and Windows XP/Vista/7 support Parallel port hardware support Program memory and configuration memory read/write/verify Data memory read/write/verify Reads and writes multiple hex file formats (inhx32, inhx16, inhx8m) Input file format auto detection Good documentation
Page 10
Page 11
Features
mikroC allows you to quickly develop and deploy complex applications: Write your C source code using the built-in Code Editor (Code and Parameter Assistants, Syntax Highlighting, Auto Correct, Code Templates, and more) Use the included mikroC libraries to dramatically speed up the development: data Acquisition, memory, displays, conversions, communications Monitor your program structure, variables, and functions in the Code Explorer. Generate commented, human-readable assembly, and standard HEX compatible with all programmers. Inspect program flow and debug executable logic with the integrated Debugger. Get detailed reports and graphs: RAM and ROM map, code statistics, assembly Listing, calling tree, and more We have provided plenty of examples for you to expand, develop, and use as Building bricks in your projects. Copy them entirely if you deem fit
4.3.2 Projects
mikroC organizes applications into projects, consisting of a single project file (extension .ppc) and one or more source files (extension .c). You can compile source files only if they are part of a project. The project file carries the following information: project name and optional description, target device, device flags (config word), device clock,
Page 12
4.4
A bootloader is a program that stays in the micro controller and communicates with the PC (usually through the serial interface).The bootloader receives a user program from the PC and writes it in the flash memory, then launches this program in execution. Bootloaders can only be used with those micro controllers that can write their flash memory through software as PIC16F870. USB PIC Bootloader is a resident bootloader for PIC18 series of Enhanced Flash USB Micro controllers. It allows us to program a new firmware application image into the chip using the standard USB connectivity of your device. USB PIC Bootloader fully complies with USB Specification for Human Input Devices (HID) and all interfacing is done via standard HID driver from Microsoft. XTEA encryption algorithm is used to protect privacy of firmware application updated With USB PIC Bootloader. USB PIC Bootloader code is write-protected and cannot be overwritten by firmware. Firmware update or user mode is selected by SW and/or HW switch. USB PIC Bootloader is a small program that stays in the first 2,048 bytes of the pro Gram memory of the Microchip PIC Micro controller. Bootloader runs at the boot time (when the processor has just been reset) and is Capable of loading a complete application program into a processor's memory. With the USB PIC Bootloader loaded, there are two distinct modes of operation: Firmware update mode and user mode. USB PIC Bootloader uses the EEPROM mark and/or hardware switch to determine which mode to run in. The bootloader firmware is given in the form of Basic source program that has to be compiled with PIC Simulator IDE integrated Basic compiler to get the HEX file ready to be programmed into the microcontroller. The correct micro controller model needs to be selected - 16F877(A), and the selected clock frequency is supposed to be at least 8MHz
Since the start address 0000 hex is set for the boot loader software our New start is always 0010 hex. This means that when we write our code must always think that the start is at address 0010 hex.
Page 13
5. PCB Designing
PCB stands for PRINTED CIRCUIT BOARD. Printed circuit board (PCB) provides both the physical structure for mounting and holding the components as well as the electrical interconnection between the components. That means a PCB or PWB (printed wiring board) is the platform upon which electronic components such as integrated circuit chips and other components are mounted. A PCB consists of a non-conducting substrate (typically fiber glass with epoxy as resin) upon which the conductive pattern or circuitry is formed. Copper is the most prevalent conductor although nickel, silver and tin are also used in some cases.
Single sided PCBs: - As the name suggest in these designs the conductive pattern is only at in one side. And also the size is large in these case but these are cheap. Double sided PCBs:-These are the PCBs on which the conductive pattern is in on both sides. The size of board is small in this case but it is costlier than that of above. Multilayer PCBs:- In this case the board consists of alternating layers of conducting pattern and insulating material. The conductive Material is connected across the layers through plated Through holes. The size of this PCB is smaller than that of double sided PCB but it is very costly. PCBs may also be either rigid, flexible, or the combination of two (rigid-flex). When the electronic components have been mounted on the PCB, the combination of PCB and components is an electronic assembly, also called PRINTED CIRCUIT ASSEMBLY. This assembly is the basic building block for all the electronic appliances such as television, computer and other goods.
Page 14
Page 15
One can search for information in the session log using the find command on the Edit menu. You can also save the contents of the of the session log to a file, which is useful when working with OrCADs technical support to solve technical problems. The default filename is SESSION.TXT
Page 18
Page 19
Page 20
6. Technology To Be Used
The Technology of Any Project is Considered as The Heart as well as The Mind To It. The Biggest Concern To Any Student Or Trainee Remains That The Technology Hes Gonna Learn Must Be Up-to-Date and Must to be In Industrys Interest. So, Thats Why Ive Choose PIC Series Of Microcontrollers. They are Cost Effective, Provide Wide Availability, large user base, extensive collection of application notes, availability of low cost or free development tools, and serial programming (and re-programming with flash memory) capability.
The Microchip 16C84 (PIC16x84), introduced in 1993 , was the first Microchip CPU with onchip EEPROM memory. This electrically erasable memory made it cost less than CPUs that required a quartz Erase window for erasing EPROM. It is generally thought that PIC stands for Peripheral Interface Controller, although General Instruments' original acronym for the initial PIC1640 and PIC1650 devices was "Programmable Interface Controller". The acronym was quickly replaced with "Programmable Intelligent Computer".
Page 21
PIC 16 Series-PIC16F73
PIC16F73/76 devices are available only in 28-pin packages,while PIC16F74/77 devices are available in 40-pin and 44-pin packages. All devices in the PIC16F7X family share common architecture, with the following differences: The PIC16F73 and PIC16F76 have one-half of the total on-chip memory of the PIC16F74 and PIC16F77. The 28-pin devices have 3 I/O ports, while the 40/44-pin devices have 5. The 28-pin devices have 11 interrupts, while the 40/44-pin devices have 12. The 28-pin devices have 5 A/D input channels, while the 40/44-pin devices have 8. The Parallel Slave Port is implemented only on the 40/44-pin devices.
6.1 Introduction
PIC is a family of Harvard architecture microcontrollers made by Microchip Technology, derived from the PIC1640 originally developed by General Instrument's Microelectronics Division. The name PIC initially referred to
PICs are popular with developers and hobbyists alike due to their low cost, wide availability, large user base, extensive collection of application notes, availability of low cost or free development tools, and serial programming (and re-programming with flash memory) capability.
Page 22
Page 23
() RESET
The PIC16F7X differentiates between various kinds of RESET: Power-on Reset (POR) MCLR Reset during normal operation MCLR Reset during SLEEP WDT Reset (during normal operation) WDT Wake-up (during SLEEP) Brown-out Reset (BOR) Some registers are not affected in any RESET condion. Their status is unknown on POR and unchanged n any other RESET. Most other registers are reset to a RESET state on Power-on Reset (POR), on the MCLR and WDT Reset, on MCLR Reset during LEEP, and Brown-out Reset (BOR). They are not affected by a WDT Wake-up, which is viewed as the resumption of normal operation. The TO and PD bits are set or cleared differently in different RESET situations, as indicated
() GND (pin 8)
() OSC1/CLK IN -(pin 9)
Page 25
Oscillator crystal input/external clock source input.
Oscillator Type:
The PIC16F7X can be operated in four different oscillator modes: LP Low Power Crystal XT Crystal/Resonator HS High Speed Crystal/Resonator RC Resistor/Capacitor
() Vss(pin 19)
Ground reference for logic and I/O pins
() Vdd(pin 20)
Positive supply for logic and I/O pins
Page 26
Page 27
Fig: 6.8 Flowchart Showing a typical microcontroller device and its different sub-Units
The PIC architecture is distinctively minimalist. It is characterized by the following features: Separate code and data spaces (Harvard architecture) A small number of fixed length instructions Most instructions are single cycle execution (4 clock cycles), with single delay cycles upon branches and skips A single accumulator (W), the use of which (as source operand) is implied (i.e. is not encoded in the opcode) All RAM locations function as registers as both source and/or destination of math and other functions. A hardware stack for storing return addresses A fairly small amount of addressable data space (typically 256 bytes), Extended through banking Data space mapped CPU, port, and peripheral registers The program counter is also mapped into the data space and writable (this is used to implement indirect jumps). Unlike most other CPUs, there is no distinction between memory space and register space because the RAM serves the job of both memory and registers, and the RAM is usually just referred to as the register file or simply as the registers.
Page 28
Advantages
The PIC architectures have these advantages: Small instruction set to learn. RISC architecture. Built in oscillator with selectable speeds. Easy entry level, in circuit programming plus in circuit debugging. PICKit units available from Microchip.com for less than $50. Inexpensive microcontrollers. Wide range of interfaces including IC, SPI, USB, USART, A/D, programmable comparators, PWM, LIN, CAN, PSP, and Ethernet.
Page 29
7. Project Planning
Now, After The Project Planning Im Very Interested to Add The List Of The Components Thats been Used in the Wireless RF Module Project. So, Heres Gonna Be The Step By Step Listing Of Components Of This Project Under Requirement Analysis.
Page 30
8. REQUIREMENT
ANAL YSIS
Requirement Analysis in electronics engineering, encompasses those tasks that go into determining the needs or conditions to meet for a new or altered product, taking account of the possibly conflicting requirements of the various stakeholders, such as beneficiaries or users. Requirement analysis is critical to the success of a development project. Requirements must be documented, actionable, measurable, testable, related to identified business needs or opportunities, and defined to a level of detail sufficient for system design. Requirements can be functional and non-functional. Any coherent and reasonable system must have requirements that define what the system is ultimately supposed to do. A requirement is an objective that must be met. Planners cast most requirements in functional terms, leaving design and implementation details to the developers. In this wireless RF Module Project, we implemented this phase of requirements gathering by collecting information from various sources like internet & also by eternal knowledge of our trainees. The requirement of any electronics project must be its components & the circuit diagram created by using OrCAD & an etched PCB.
Page 31
Conceptually, requirements analysis includes the components used while created this project. Well, the Softwares & a PC with some other stuff(like soldering wire etc.) also come under requirement section but theyve been already pasted in Tools To Be Used section, So heres goes the Components list section, named Listing The Components.!!
8.1.3 Capacitor
Page 32
A capacitor (originally known as condenser) is a passive two-terminal electrical component used to store energy in an electric field. The forms of practical capacitors vary widely, but all contain at least two electrical conductors separated by a dielectric (insulator); for example, one common construction consists of metal foils separated by a thin layer of insulating film. Capacitors are widely used as parts of electrical circuits in many common electrical devices.
Page 33
8.1.6 relay
A Relay is an electrically operated switch. Many relays use an electromagnet to operate a switching mechanism mechanically, but other operating principles are also used. Relays are used where it is necessary to control a circuit by a low-power signal (with complete electrical isolation between control and controlled circuits), or where several circuits must be controlled by one signal. A type of relay that can handle the high power required to directly control an electric motor or other loads is called a contactor. Solid-state relays control power circuits with no moving parts, instead using a semiconductor device to perform switching. Relays with calibrated operating characteristics and sometimes multiple operating coils are used to protect electrical circuits from overload or faults; in modern electric power systems these functions are performed by digital instruments still called protective relays.
8.1.7 resistors
A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. The current through a resistor is in direct proportion to the voltage across the resistor's terminals. Thus, the ratio of the voltage applied across a resistor's terminals to the intensity of current through the circuit is called resistance. Practical resistors have a series inductance and a small parallel capacitance; these specifications can be important in high-frequency applications. In a low-noise amplifier or pre-amp, the noise characteristics of a resistor may be an issue. The unwanted inductance, excess noise, and temperature coefficient are mainly dependent on the technology used in manufacturing the resistor. A family of discrete resistors is also characterized according to its form factor, that is, the size of the device and the position of its leads (or terminals) which is relevant in the practical manufacturing of circuits using them.
Page 34
8.1.8 BX r433A
The BX R433A/433.92/TO39-1.5 is a true one-port, surface-acoustic-wave (SAW) resonator in a low-profile metal TO-39 case. It provides reliable, fundamental-mode, quartz frequency Stabilization i.e. in transmitters or local oscillators operating at 433.920 MHz.
SAW - Surface Acoustic Wave Resonators are being recognized by more and more public figures because of its good features and performances. They have been widely used in communication, CATV, wireless remote control, satellite receivers, radio and video transmission fields. VTC can supply you high performance, high quality and stability SAW resonators which frequencies cover from 50MHz to 1GHz.
8.1.9 ulN2801A
The ULN2801A is a high-voltage, high-current Darlington transistor array. The device consists of eight npn Darlington pairs that feature high-voltage outputs with common-cathode clamp diodes for switching inductive loads. The collector-current rating of each Darlington pair is 500 mA and Output Voltage is upto 50V. The Darlington pairs may be connected in parallel for higher current Capability. Applications include relay drivers, hammer drivers, lamp drivers, display drivers (LED and gas discharge), line drivers, and logic buffers. The ULN2801A has a 2.7-k series base resistor for each Darlington pair for operation directly with TTL or 5-V CMOS devices.
8.1.10
Battery
An electrical battery is one or more electrochemical cells that convert stored chemical energy into electrical energy. There are two types of batteries: primary batteries (disposable batteries), which are designed to be used once and discarded, and secondary batteries (rechargeable batteries), which are designed to be recharged and used multiple times.
Page 35
Features
Operating voltage -2.4V~5V for the HT12A -2.4V~12V for the HT12E Low power and high noise immunity CMOS technology Low standby current: 0.1A (type.) at VDD=5V HT12A with a 38kHz carrier for infrared transmission medium Minimum transmission word -Four words for the HT12E -One word for the HT12A Built-in oscillator needs only 5% resistor Data code has positive polarity Minimal external components HT12A/E: 18-pin DIP/20-pin SOP package
Page 36
The 212 decoders are a series of CMOS LSIs for remote control system applications. They are paired with Holteks 212 series of encoders (refer to the encoder/decoder cross reference table). For proper operation, a pair of encoder/decoder with the same number of addresses and data format should be chosen. The decoders receive serial addresses and data from a programmed 212 series of encoders that are transmitted by a carrier using an RF or an IR transmission medium. They compare the serial input data three times continuously with their local addresses. If no error or unmatched codes are found, the input data codes are decoded and then transferred to the output pins. The VT pin also goes high to indicate a valid transmission. The 212 series of decoders are capable of decoding informations that consist of N bits of address and 12N bits of data. Of this series, the HT12D is arranged to provide 8 address bits and 4 data bits, and HT12F is used to decode 12 bits of address information.
Features
8.1.13 PIC16F73
Operating voltage: 2.4V~12V Low power and high noise immunity CMOS Technology Low standby current Capable of decoding 12 bits of information Binary address setting Received codes are checked 3 times Address/Data number combination -HT12D: 8 address bits and 4 data bits -HT12F: 12 address bits only Built-in oscillator needs only 5% resistor Valid transmission indicator Easy interface with RF or an infrared transmission Medium Minimal external components Pair with Holteks 212 series of encoders 18-pin DIP, 20-pin SOP package
Features
PIC is a powerful (200 nanosecond instruction execution) yet easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs Microchips powerful PIC architecture into 28-pin package and is upwards compatible with the PIC16C5X, PIC12CXXX and PIC16C7X devices. The PIC16F73 features 5 channels of 8-bit Analog-to-Digital (A/D) converter with 2 additional timers, 2 capture/compare/PWM functions and the synchronous serial port can be configured as either 3-wire Serial Peripheral Interface (SPI) or the 2-wire Inter-Integrated Circuit (IC) bus and a Universal Asynchronous Receiver Transmitter (USART). All of these features make it ideal for more advanced level A/D applications in automotive, industrial, appliances and consumer applications. Parameter Name Program Memory Type Program Memory (KB) CPU Speed (MIPS) RAM Bytes Digital Communication Peripherals Capture/Compare/ PWM Peripherals Timers ADC Temperature Range (C) Operating Voltage Range (V) Pin Count Value Flash 7 5 192 1-A/E/USART, 1-SSP(SPI/I2C) 2 CCP 2 x 8-bit, 1 x 16-bit 5 ch, 8-bit -40 to 125 2 to 5.5 28
2 PWM 10-bit 25mA sink/source per I/O 2 Capture/Compare Parallel Slave Port
Page 37
9. Working Of RF Module
As In The Very First Chapter Of This Report The Introduction has been Pasted. But Now In This Chapter Im Going To Tell The Operating Functionality Of Wireless Radio Frequency Module Using PIC 16F73.
Before Just Directing to the working of RF Module Let us read abut the RF Current & Its Behaviour first.
Electric currents that oscillate at radio frequencies have special properties not shared by direct current or alternating current of lower frequencies. The energy in an RF current can radiate off a conductor into space as electromagnetic waves (radio waves); this is the basis of radio technology. RF current does not penetrate deeply into electrical conductors but flows along their surfaces; this is known as the skin effect. For this reason, when the human body comes in contact with high power RF currents it can cause superficial but serious burns called RF burns. RF current can easily ionize air, creating a conductive path through it. This property is exploited by "high frequency" units used in electric arc welding, which use currents at higher frequencies than power distribution uses. Another property is the ability to appear to flow through paths that contain insulating material, like the dielectric insulator of a capacitor. When conducted by an ordinary electric cable, RF current has a tendency to reflect from discontinuities in the cable such as connectors and travel back down the cable toward the source, causing a condition called standing waves, so RF current must be carried by specialized types of cable called transmission line.
As with any other radio-frequency device, the performance of an RF Module will depend on a number of factors. For example, by increasing the transmitter power, a larger communication distance will be achieved. However, this will also result in a higher electrical power drain on the transmitter device, which will cause shorter operating life for battery powered devices. Also, using a higher transmit power will make the system more prone to interference with other RF devices, and may in fact possibly cause the device to become illegal depending on the jurisdiction. Correspondingly, increasing the receiver sensitivity will also increase the effective communication range, but will also potentially cause malfunction due to interference with other RF devices.
Page 38
Page 39
Page 40
A general RF communication block diagram is shown above. Since most of the encoders/decoders/microcontrollers are TTL compatible, most of the inputs by the user will be given in TTL logic level. Thus, this TTL input is to be converted into serial data input using an encoder or a microcontroller. This serial data can be directly read using the RF Transmitter, which then performs ASK (in some cases FSK) modulation on it and transmit the data through the antenna. In the receiver side, the RF Receiver receives the modulated signal through the antenna, performs all kinds of processing, filtering, demodulation, etc and gives out a serial data. This serial data is then converted to a TTL level logic data, which is the same data that the user has input. RF Modules are used wireless transfer data. This makes them most suitable for remote control applications, as in where we need to control some machines or robots without getting in touch with them (may be due to various reasons like safety, etc). Now depending upon the type of application, the RF module is chosen. For short range wireless control applications, an ASK RF Transmitter-Receiver Module of frequency 315 MHz or 433 MHz is most suitable.
Page 41
Features
Range in open space(Standard Conditions) : 100 Meters RX Receiver Frequency : 433 MHz RX Typical Sensitivity : 105 Dbm RX Supply Current : 3.5 mA RX IF Frequency : 1MHz Low Power Consumption Easy For Application RX Operating Voltage : 5V TX Frequency Range : 433.92 MHz TX Supply Voltage : 3V ~ 6V TX Out Put Power : 4 ~ 12 Dbm This has single channel for data transfer, thus serial data communication is used.
Antenna
Now that all the connections are made, we must choose an antenna for signal transmission. Usually, a 20-30 cm wire serves best. It is sufficient to give a range of 80 meters in open region. To improve the efficiency, we can also use a coiled wire (take a wire and make it into a coil). It increases the signal strength.
Page 42
Since, As We Know The PIC 16F73 is a Micro-Controller Which Without a Pogramming Code is As Dumb As a Small Plastic Stuff With Having Some Sharp Pins. So, To Make This PIC Our Projects CPU Weve Added The Following Programming Written In Embedded C Using MikroC As a Compiler.
// The Decision Oriented Pin Of PORTC. // The Decision Oriented Pin Of PORTC.
Page 43
Features - encoder
18 PIN DIP Operating Voltage : 2.4V ~ 12V Low Power and High Noise Immunity CMOS Technology Low Standby Current and Minimum Transmission Word Built-in Oscillator needs only 5% Resistor Easy Interface with and RF or an Infrared transmission medium Minimal External Components
The HT12D Decoder ICs are series of CMOS LSIs for remote control system applications. This ICs are paired with each other. For proper operation a pair of encoder/ decoder with the same number of address and data format should be selected. The Decoder receive the serial address and data from its corresponding decoder, transmitted by a carrier using an RF transmission medium and gives output to the output pins after processing the data.
Features - decoder
18 PIN DIP Operating Voltage : 2.4V ~ 12.0V Low Power and High Noise Immunity CMOS Technology Low Stand by Current Ternary address setting Capable of Decoding 12 bits of Information 8 ~ 12 Address Pins and 0 ~ 4 Data Pins Received Data are checked 2 times, Built in Oscillator needs only 5% resistor VT goes high during a valid transmission Easy Interface with an RF of IR transmission medium Minimal External Components
Applications
Page 44
Burglar Alarm, Smoke Alarm, Fire Alarm, Car Alarm, Security System Garage Door and Car Door Controllers Cordless telephone Other Remote Control System Compatibility Compatible with RF Modules 433 MHz Link RF Modules (Tx + Rx Pair) 433Mhz
Troubleshooting
Its obvious that we wont get the result in the first go itself! Its completely normal, even in any case! . In that case, just try out the simple wired communica tion. Connect the DOUT of the encoder directly to the DIN of the decoder using a wire. Then check and recheck your connections, check whether the address is the same, whether you have missed any Vcc or GND connection, etc. If still then a successful link is not established, change the encoder/decoder ICs. Once the link is established, connect the RF module and do the same. Try adjusting the antenna position, touch the antenna (touching the antenna will make yourself an antenna!), etc.
Page 45
Page 46
Page 47
Page 48
5. 6.
Page 49
Every line in a hex file always starts from colon (:) The first two digits CC (Character Count) represent the total number of data byte in that line. Here in this example, 10 (hexadecimal) are the first two digits which mean that there is 16 byte (in decimal) of data in the line. The next four digits represent the starting address of the memory where the data stored in the line needs to be dumped. 4. After address the next two digits represent whether this is the last line of code or not. TT=0, means the code is not complete and there are more lines after this line and TT=1 means this is the last line of the code. XXXX..XX are the data bytes which have to be dumped into the memory. The number of data bytes in a particular line is equal to the number indicated by character count digits (CC). SS is the checksum byte of that line. The hex file is a text file so one can easily change contents of a hex file. The corrupted line can be identified using the check sum) (SS) byte.
11.1
Radio-frequency identification (RFID) is the use of a wireless non-contact system that uses radio-frequency electromagnetic fields to transfer data from a tag attached to an object, for the purposes of automatic identification and tracking. Some tags require no battery and are powered by the electromagnetic fields used to read them. Others use a local power source and emit radio waves (electromagnetic radiation at radio frequencies). The tag contains electronically stored information which can be read from up to several meters (yards) away. Unlike a bar code, the tag does not need to be within line of sight of the reader and may be embedded in the tracked object. RFID tags are used in many industries. An RFID tag attached to an automobile during production can be used to track its progress through the assembly line. Pharmaceuticals can be tracked through warehouses. Livestock and pets may have tags injected, allowing positive identification of the animal. RFID identity cards can give employees access to locked areas of a building, and RF transponders mounted in automobiles can be used to bill motorists for access to toll roads or parking. Since RFID tags can be attached to clothing, possessions, or even implanted within people, the possibility of reading personally-linked information without consent has raised privacy concerns.
A radio-frequency identification system uses tags, or labels attached to the objects to be identified. Two-way radio transmitter-receivers called interrogators or readers send a signal to the tag and read its response. The readers generally transmit their observations to a computer system running RFID software or RFID middle ware. The tag's information is stored electronically in a non-volatile memory. The RFID tag includes a small RF transmitter and receiver. An RFID reader transmits an encoded radio signal to interrogate the tag. The tag receives the message and responds with its identification information. This may be only a unique tag serial number, or may be product-related information such as a stock number, lot or batch number, production date, or other specific information. Tags may either be read-only, having a factory-assigned serial number that is used as a key into a database, or may be read/write, where object-specific data can be written into the tag by the system user. Field programmable tags may be writeonce, read-multiple; blank tags may be written with an electronic product code by the user.
Page 50
RFID tags contain at least two parts: an integrated circuit for storing and processing information, modulating and demodulating a radio-frequency (RF) signal, collecting DC power from the incident reader signal, and other specialized functions; and an antenna for receiving and transmitting the signal. Fixed readers are set up to create a specific interrogation zone which can be tightly controlled. This allows a highly defined reading area for when tags go in and out of the interrogation zone. Mobile readers may be hand-held or mounted on carts or vehicles.
Page 51
11.2.1 RF Transmitter
A radio frequency (RF) transmitter is usually integrated inside the mouse. The mouse records its movements and buttons that are clicked and then sends this information via radio signals to the receiver.
11.2.2 RF Receiver
The radio frequency (RF) receiver usually connects to the computers peripheral mouse input. It receives these RF signals, decodes them, and then sends these signals directly to the computer as normal. RF receivers usually come in a few styles. The majority come as built in components that connect to the mouse input, others come as a separate card that is installed in one of the many expansion slots of computers, and the third type of receiver is a separate unit that is connected to a cable going directly to the computers peripheral input. Since the technology has been mastered, most wireless mice have integrated receivers that plug into a computers peripheral input and are very small in size.
11.2.3 RF Frequencies
Wireless mice mainly use Radio frequencies to transmit data from the mouse to the computer. The most common type of RF is the 802.11b or 802.11g. These frequencies operate at 2.4 gigahertz and at these frequencies a mouse can transfer data at very quick speeds, either 11 Mbps or 56 Mbps. 2.4 gigahertz frequencies. These frequencies are very stable and usually have little or no interference in a work or home environment. They also have a decent range of about 100 to 150 feet which is more than enough for mouse operation.
Page 52
RF wireless mice are a great technology because of their overall reliability and stability. Other forms of communication such as Infrared technology need to be in line of sight in order to work properly, which makes using them with a mouse impractical. Some of the reasons that RF technology is great for wireless mice includes the fact that the RF transmitter housed in the mouse requires low power. Usually, RF wireless mice are powered by small, light weight batteries that are either disposable or usually rechargeable with an included recharging dock.
Page 53
In Industrial automation there is an ever-increasing need to monitor and analyse the status or wear and tear of machines and sensors. Using the low power wireless connectivity of the RF Module is a low cost high Reliability method of getting access to this data. A series of mRF prototypes consisting of a contact mechanism and actuator with return spring were fabricated assembled, inspected, and characterized for electromechanical performance. Characterization results led to specific conclusions regarding capabilities of the mRF product, and the integrated manufacturing technique. The performance objectives of low RF loss, high electrical isolation, and device compactness drive the fabrication requirements for modern RF relays. and contact resistance for consistent electrical response. Like: Stationary Transmitter Systems etc.
tion system into their CX-2500M mobile X-ray screening system using Southwest Microwaves M.I.L. PAC 385 system. The unit needed to operate at a EU compliant radio frequency and have multiple safety backups.
The Solution: Remote Control Technology modified several wireless switch systems to have an increased rate of transmission. This way, a barrier penetration or a twelve second failure to transmit (potential vandalism or system error) would be detected. In addition, a custom handheld transmitter and keypad were designed to allow operators a means to enable and disable the system.
Page 54
Fig: 11.5
Page 55
Specifications:
1. 2. 3. 4. 5. 6. Micro controller Dc gare motors Relays Uln2003 Rf modules Power supply
Page 56
Page 57
Receiver Installed On PIC Based PCB With Transformer & Relay Connected
Page 58
Identifying Objects using rF Transmitters And receivers and retrieving data using GSm
Abstract
To provide a system for monitoring and locating objects using Radio Frequency (RF) transmitters and receivers, and querying about the objects using mobile phones. An object represents a real world entity. This system is based on RF transmitters that are tagged to the objects of everyday use and have the capability of transmitting signals and a receiver that detects the transmission of the tagged object and stores its corresponding location in the database which is created specifically for information maintenance of the tagged objects. Mobile phones are used to query the location of the tagged object by sending a message to the Subscriber Identity Module (SIM) connected to a Global System for Mobile Communications (GSM) modem. This GSM modem fetches the location and other relevant information from the database and Encapsulates this information into a message which is sent back to the mobile phone that has requested the information.
Radio transmitter design is a complex topic which can be broken down into a series of smaller topics. A radio communication system requires two tuned circuits each at the transmitter and receiver, all four tuned to the same frequency. The transmitter is an electronic device which, usually with the aid of an antenna, propagates an electromagnetic signal such as radio, television, or other telecommunications. The transmitting system consists of two tuned circuits such that the one containing the spark-gap is a persistent Oscillator; the other, containing the aerial structure, is a free radiator maintained in oscillation by being coupled to the first (Nikola Tesla and Guglielmo Marconi). The oscillating system, including the aerial structure with its associated inductance-coils and condensers, is de Signed to be both a sufficiently persistent oscillator and a Sufficiently active radiator (Oliver Lodge).
Page 59
Page 60
14. APPENDIX
Abstraction allows us to layer semantics of complex system, breaking them into more manageable pieces. Radio Frequency : Radio Frequency (RF) is a rate of oscillation in the range of about 3 kHz to 300 GHz Device : An instrumentality invented for a particular purpose Wireless : Wireless is a term used to describe telecommunications in which Electromagnetic waves carry the signal over part or all of the communication path. Module : A self-contained component (unit or item) that is used in combination with other components LED : Light Emitting Diode LCD : Liquid Crystal Display USB : Universal Serial Bus; a way of attaching peripheral devices to a computer OrCAD : Oregon + CAD, OrCAD is a proprietary software tool suite used primarily for electronics design automation PCB : Printed circuit board (PCB) provides both the physical structure for mounting and holding the components as well as the electrical interconnection between the components. Capture CIS : Component information system (CIS), A Part Of OrCAD Suite Used For Ckt Designing. Mikro C : MikroC is a powerful, feature rich development tool (Compiler) for PICmicros. Bootloader : The bootloader receives a user program from the PC and writes it in the flash memory, then launches this program in execution. Net-list : Net-list file is a document file which contains information about the logical Interconnections between signals and pins. Layout Plus : Layout plus is one part for the PCB design in which we place as well as route the components an set unit of measurement, grids, and spacing in OrCad. PIC Burner : PIC Burner is very versatile software. We can use different kinds of hardware with it, because the pins used on parallel port can be set using a simple ini-file. PIC : Peripheral Interface Controller, A Micro-Controller uSArT : Universal Synchronous Asynchronous Reciever &Transmitter rFId : Radio Frequency Identification Communication : The activity of communicating; the activity of conveying information Automation : The act of implementing the control of equipment with advanced technology; usually involving electronic hardware Transmitter : Any Device Set used to broadcast radio or tv signals
Page 61
15. BIBL
Books:
IOGRAPHY
PIC Microcontroler Notes - NetMax Technologies. Data Sheet- PIC16F73 - Microchip Co. LTD. Data Sheet - HT12E/212 Encoder - HT12D/2 Decoder
12
Web Links:
http://www.wikipedia.org/ http://www.alldatasheet.com/ http://www.microchip.com/ http://www.remotecontroltech.com/ http://www.rentron.com/ http://howstuffworks.com/ http://Mikroelektronika.com/
Page 62
Personal notes
Well, Guys Please Dont consider this page as an another boring chapter of this report of RF Project. Im Abhi Sharma, The Person Who Created That Project & its Report. In This Page Id like to Add Some of My External Stuffs that would definitely be helpful for future purpose if you bother to work on the same project. As long as I believe, This Project Report Covers almost everything that It requires to hold for a complete & an unabridged report should do. It Contains data from data sheets, Web links & Journals so it obviously is an accurate stuff to heed on. Actually, the Main purpose of this Personal Note Page is that In pdf I Cant Add All the Related stuff to the project. i mean the Video, Images & Presentation etc. You know, it would very unhandy & Itd increase the size of Document at a great extent & It definitely would make the document very unstable. So, To deal with this problem Ive find a way to provide you a link to an organized stack Thatd lead you to the related stuff of the project. So, Please Do Click on the Following icon of delicious.com & get the stack into your browser.
Abhi
:)
Page 63
1.3.1
Supply voltage
Most microcontrollers operate with the standard logic voltage of 5 V Some microcontrollers . can operate at as low as 2.7 V and some will tolerate 6 V without any problems. You should check the manufacturers data sheets about the allowed limits of the power supply voltage. A voltage regulator circuit is usually used to obtain the required power supply voltage when the device is to be operated from a mains adaptor or batteries. For example, a 5 V regulator is required if the microcontroller is to be operated from a 5 V supply using a 9 V battery.
1.3.2
The clock
All microcontrollers require a clock (or an oscillator) to operate. The clock is usually provided by connecting external timing devices to the microcontroller. Most microcontrollers will generate clock signals when a crystal and two small capacitors are connected. Some will operate with resonators or external resistorcapacitor pair. Some microcontrollers have built-in timing circuits and they do not require any external timing components. If your application is not time-sensitive you should use external or internal (if available) resistorcapacitor timing components for simplicity and low cost. An instruction is executed by fetching it from the memory and then decoding it. This usually takes several clock cycles and is known as the instruction cycle. In PIC microcontrollers an instruction cycle takes four-clock periods. Thus, the microcontroller is actually operated at a clock rate which is a quarter of the actual oscillator frequency.
1.3.3
Timers
Timers are important parts of any microcontroller. A timer is basically a counter which is driven either from an external clock pulse or from the internal oscillator of the microcontroller. A timer can be 8-bits or 16-bits wide. Data can be loaded into a timer under program control and the timer can be stopped or started by program control. Most timers can be configured to generate an interrupt when they reach a certain count (usually when they overflow). The interrupt can be used by the user program to carry out accurate-timing-related operations inside the microcontroller. Some microcontrollers offer capture and compare facilities where a timer value can be read when an external event occurs, or the timer value can be compared to a preset value and an interrupt can be generated when this value is reached. It is typical to have at least one timer in every microcontroller. Some microcontrollers may have two, three, or even more timers where some of the timers can be cascaded for longer counts.
1.3.4
Watchdog
Most microcontrollers have at least one watchdog facility. The watchdog is basically a timer which is refreshed by the user program and a reset occurs if the program fails to refresh the watchdog. The
watchdog timer is used to detect a system problem, such as the program being in an endless loop. A watchdog is a safety feature that prevents runaway software and stops the microcontroller from executing meaningless and unwanted code. Watchdog facilities are commonly used in real-time systems where it is required to regularly check the successful termination of one or more activities.
1.3.5
Reset input
A reset input is used to reset a microcontroller. Resetting puts the microcontroller into a known state such that the program execution starts from address 0 of the program memory. An external reset action is usually achieved by connecting a push-button switch to the reset input such that the microcontroller can be reset when the switch is pressed.
1.3.6
Interrupts
Interrupts are very important concepts in microcontrollers. An interrupt causes the microcontroller to respond to external and internal (e.g. a timer) events very quickly. When an interrupt occurs the microcontroller leaves its normal flow of program execution and jumps to a special part of the program, known as the Interrupt Service Routine (ISR). The program code inside the ISR is executed and upon return from the ISR the program resumes its normal flow of execution. The ISR starts from a fixed address of the program memory. This address is also known as the interrupt vector address. For example, in a PIC16F84 microcontroller the ISR starting address is 4 in the program memory. Some microcontrollers with multi-interrupt features have just one interrupt vector address, while some others have unique interrupt vector addresses, one for each interrupt source. Interrupts can be nested such that a new interrupt can suspend the execution of another interrupt. Another important feature of a microcontroller with multi-interrupt capability is that different interrupt sources can be given different levels of priority.
1.3.7
Brown-out detector
Brown-out detectors are also common in many microcontrollers and they reset a microcontroller if the supply voltage falls below a nominal value. Brown-out detectors are safety features and they can be employed to prevent unpredictable operation at low voltages, especially to protect the contents of EEPROM-type memories.
1.3.8
Analogue-to-digital converter
An analogue-to-digital converter (A/D) is used to convert an analogue signal such as voltage to a digital form so that it can be read by a microcontroller. Some microcontrollers have built-in A/D converters. It is also possible to connect an external A/D converter to any type of microcontroller. A/D converters are usually 8-bits, having 256 quantisation levels. Some microcontrollers have 10-bit A/D converters with 1024 quantisation levels. Most PIC microcontrollers with A/D features have multiplexed A/D converters where more than one analogue input channel is provided.
Microcontroller systems 9 The A/D conversion process must be started by the user program and it may take several hundreds of microseconds for a conversion to complete. A/D converters usually generate interrupts when a conversion is complete so that the user program can read the converted data quickly. A/D converters are very useful in control and monitoring applications since most sensors (e.g. temperature sensor, pressure sensor, force sensor, etc.) produce analogue output voltages.
1.3.9
Serial I/O
Serial communication (also called RS232 communication) enables a microcontroller to be connected to another microcontroller or to a PC using a serial cable. Some microcontrollers have built-in hardware called USART (Universal SynchronousAsynchronous ReceiverTransmitter) to implement a serial communication interface. The baud rate and the data format can usually be selected by the user program. If any serial I/O hardware is not provided, it is easy to develop software to implement serial data communication using any I/O pin of a microcontroller. We shall see in Chapter 4 how to use the PicBasic and PicBasic Pro statements to send and receive serial data from any pin of a PIC microcontroller. Some microcontrollers incorporate SPI (Serial Peripheral Interface) or I2C (Integrated Inter Connect) hardware bus interfaces. These enable a microcontroller to interface to other compatible devices easily.
1.3.10
EEPROM type data memory is also very common in many microcontrollers. The advantage of an EEPROM memory is that the programmer can store non-volatile data in such a memory, and can also change this data whenever required. For example, in a temperature monitoring application the maximum and the minimum temperature readings can be stored in an EEPROM memory. Then, if the power supply is removed for whatever reason, the values of the latest readings will still be available in the EEPROM memory. PicBasic and PicBasic Pro languages provide special instructions for reading and writing to the EEPROM memory of a microcontroller which has such memory built-in. Some microcontrollers have no built-in EEPROM memory, some provide only 16 bytes of EEPROM memory, while some others may have as much as 256 bytes of EEPROM memories.
1.3.11
LCD drivers
LCD drivers enable a microcontroller to be connected to an external LCD display directly. These drivers are not common since most of the functions provided by them can be implemented in software.
10
1.3.12
Analogue comparator
Analogue comparators are used where it is required to compare two analogue voltages. Although these circuits are implemented in most high-end PIC microcontrollers they are not common in other microcontrollers.
1.3.13
Real-time clock
Real-time clock enables a microcontroller to have absolute date and time information continuously. Built-in real-time clocks are not common in most microcontrollers since they can easily be implemented by either using a dedicated real-time clock chip, or by writing a program.
1.3.14
Sleep mode
Some microcontrollers (e.g. PIC) offer built-in sleep modes where executing this instruction puts the microcontroller into a mode where the internal oscillator is stopped and the power consumption is reduced to an extremely low level. The main reason of using the sleep mode is to conserve the battery power when the microcontroller is not doing anything useful. The microcontroller usually wakes up from the sleep mode by external reset or by a watchdog time-out.
1.3.15
Power-on reset
Some microcontrollers (e.g. PIC) have built-in power-on reset circuits which keep the microcontroller in reset state until all the internal circuitry has been initialised. This feature is very useful as it starts the microcontroller from a known state on power-up. An external reset can also be provided where the microcontroller can be reset when an external button is pressed.
1.3.16
Low power operation is especially important in portable applications where the microcontrollerbased equipment is operated from batteries. Some microcontrollers (e.g. PIC) can operate with less than 2 mA with 5 V supply, and around 15 A at 3 V supply. Some other microcontrollers, especially microprocessor-based systems where there could be several chips may consume several hundred milliamperes or even more.
1.3.17
This is important if the microcontroller is to be connected to an external device which may draw large current for its operation. PIC microcontrollers can source and sink 25 mA of current from each output port pin. This current is usually sufficient to drive LEDs, small lamps, buzzers, small relays, etc. The current capability can be increased by connecting external transistor switching circuits or relays to the output port pins.
These are some features Of PIC Controllers that I found while creating this doc. Unfortunately I forgot to add it in my Report so I'm Putting it at the last. I Strongly believe it is very well explained & understandable. Thanxx, - Abhi Sharma :)