Beruflich Dokumente
Kultur Dokumente
ABSTRACT
TeleCommunication 1
PIC Microcontroller based Wireless Notice Board MVJCE
Technologies involved
• Radio Frequency Communication
• Embedded Controller Architecture and Programming
• Communication Protocols
Project Cycle
• Determining the requirements of the embedded system
• Designing the system architecture
• Selecting the Operating system
• Choosing the processor and the associated peripherals
• Choosing the development platform
• Coding the application and optimizing the code
• Verification of the software on the host system
• Circuit Designing.
• PCB Layout.
• Device Test.
• Verification of the software on the target system
• Documentation
TeleCommunication 2
PIC Microcontroller based Wireless Notice Board MVJCE
CONTENTS
1. INTRODUCTION……………………………………………………....5
TeleCommunication 3
PIC Microcontroller based Wireless Notice Board MVJCE
4. ALPHANUMERIC LCD………………………………………………28
4.1 Introduction………………………………………………29
4.2 Types of dot matrix LCD’s………………………………29
4.2.1 Alphanumeric LCD……………………………..29
4.3 Construction and nomenclature of LCD…………………31
4.4 Interfacing the LCD module……………………………..32
4.5 PIN Description………………………………………….33
5. I2C EXPANDER…………………………………………………........36
5.1 Features…………………………………………………..37
5.2 Block Diagram…………………………………………...38
5.3 Characteristics of I2C bus………………………………..39
5.4 Addressing the I2C expander…………………………….41
7. MAX 232………………………………………………………………..49
9. SOFTWARE SECTION………………………………………………56
9.1 Software description……………………………………………57
TeleCommunication 4
PIC Microcontroller based Wireless Notice Board MVJCE
10. APPLICATIONS……………………………………………………..60
11. ENHANCEMENTS…………………………………………………..63
12. CONCLUSION……………………………………………………….67
BIBLOGRAPHY…………………………………………………………68
TeleCommunication 5
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 1
INTRODUCTION
TeleCommunication 6
PIC Microcontroller based Wireless Notice Board MVJCE
1. INTRODUCTION
Here any display can be used as the notice board .The user can type the
messages to be displayed on the remote display board using the hyper terminal
of the PC and can be sent to the notice board using the RF link. The PIC
microcontroller based Embedded System connected to the serial port of the PC
receives the data sent from the PC at the baud rate set and modulates it (ASK
Modulation) and sends it to the display system through the wireless link.
TeleCommunication 7
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 2
TeleCommunication 8
PIC Microcontroller based Wireless Notice Board MVJCE
Wireless Link
Z8 µC
Based RF RF
PC Embed Txr Receiver
ded
System
RS 232
Communication
PIC µC
16 x 2 Based
I2C
Alphanumeric Display Embedded
Protocol
System
TeleCommunication 9
PIC Microcontroller based Wireless Notice Board MVJCE
2.2.2 Driver:
The IC used to serve this purpose is MAX 232.It is a dual driver/receiver
that includes a capacitive voltage generator to supply EIA-232 inputs to +5V
TTL/CMOS levels. In this project the IC is an interface between the PC and the
microcontroller.
It receives +12V digitized serial data stream from the PC and thus
converts the same to TTL/CMOS levels as required to be sent to microcontroller
16F877.
TeleCommunication 10
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 11
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 3
PIC16F877 MICROCONTROLLER
DETAILS
TeleCommunication 12
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 13
PIC Microcontroller based Wireless Notice Board MVJCE
memory which will suffice our program requirements. PIC16F877 also has an in-
built I2C module.
3.1.3 Features:
• High performance RISC CPU
• Only 35 single word instructions to learn
• All single cycle instructions except for program branches which are two cycle
• Operating speed: DC - 20 MHz clock input DC - 200 ns instruction cycle
• Up to 8K x 14 words of FLASH Program Memory,
Up to 368 x 8 bytes of Data Memory (RAM)
Up to 256 x 8 bytes of EEPROM Data Memory
• Pin out compatible to the PIC16C73B/74B/76/77
• Interrupt capability (up to 14 sources)
• Eight level deep hardware stack
• Direct, indirect and relative addressing modes
• Power-up Timer (PWRT) and Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation
• Programmable code protection
• Power saving SLEEP mode
• Selectable oscillator options
• Low power, high speed CMOS FLASH/EEPROM technology
• Fully static design
• In-Circuit Serial Programming(ICSP) via two pins
• Single 5V In-Circuit Serial Programming capability
• In-Circuit Debugging via two pins
• Processor read/write access to program memory
• Wide operating voltage range: 2.0V to 5.5V
• High Sink/Source Current: 25 mA
• Commercial, Industrial and Extended temperature ranges
• Low-power consumption:
- 0.6 mA typical @ 3V, 4 MHz
- 20 µA 3V, 32 kHz
- 1 µA typical standby current
TeleCommunication 14
PIC Microcontroller based Wireless Notice Board MVJCE
Fig 2: Architecture
TeleCommunication 15
PIC Microcontroller based Wireless Notice Board MVJCE
3.2.2 Registers:
The register segment of the microcontroller includes various types of
registers that are used to hold memory addresses. A few important registers are
status register, file select register (FSR) and program counter.
The program counter (PC) is a 13-bit register that holds that program
memory address of the instruction that is to be read next. The MC uses the
program counter as a memory pointer to fetch an instruction. FSR’s are 8-bit
registers that are used in indirect addressing.
TeleCommunication 16
PIC Microcontroller based Wireless Notice Board MVJCE
3.2.4 MEMORY:
TeleCommunication 17
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 18
PIC Microcontroller based Wireless Notice Board MVJCE
Bit 7 RP: Register Bank Select bit (used for indirect addressing)
1 = Bank 2, 3 (100h - 1FFh)
0 = Bank 0, 1 (00h - FFh)
Bit 6-5 RP1:RP0: Register Bank Select bits (used for direct addressing)
11 = Bank 3 (180h - 1FFh)
10 = Bank 2 (100h - 17Fh)
01 = Bank 1 (80h - FFh)
00 = Bank 0 (00h - 7Fh)
Each bank is 128 bytes
Bit 4 TO: Time-out bit
1 = after power-up, CLRWDT instruction, or SLEEP instruction
0 = A WDT time-out occurred
Bit 3 PD: Power-down bit
1 = after power-up or by the CLRWDT instruction
0 = by execution of the SLEEP instruction
Bit 2 Z: Zero bit
1 = the result of an arithmetic or logic operation is zero
0 = the result of an arithmetic or logic operation is not zero
Bit 1 DC: Digit carry/borrow bit (ADDWF, ADDLW, SUBLW, SUBWF I)
1 = A carry-out from the 4th low order bit of the result occurred
TeleCommunication 19
PIC Microcontroller based Wireless Notice Board MVJCE
3.2.7 Timers/Counters:
Timer0: 8-bit timer/counter with 8-bit prescaler.
Timer1: 16-bit timer/counter with prescaler, can be incremented during
SLEEP via external crystal/clock
Timer2: 8-bit timer/counter with 8-bit period register, prescaler and
postscaler.
TeleCommunication 20
PIC Microcontroller based Wireless Notice Board MVJCE
software).
0 = none of the RB7:RB4 pins have changed state
PIE1 Register
TeleCommunication 21
PIC Microcontroller based Wireless Notice Board MVJCE
PIR1 REGISTER:
TeleCommunication 22
PIC Microcontroller based Wireless Notice Board MVJCE
SSPSTAT Register
TeleCommunication 23
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 24
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 25
PIC Microcontroller based Wireless Notice Board MVJCE
Don’t care
Synchronous mode:
1 = Master mode (clock generated internally from BRG)
0 = Slave mode (clock from external source)
Bit 6 TX9: 9-bit Transmit Enable bit
1 = Selects 9-bit transmission
0 = Selects 8-bit transmission
Bit 5 TXEN: Transmit Enable bit
1 = Transmit enabled
0 = Transmit disabled
Note: SREN/CREN overrides TXEN in SYNC mode.
Bit 4 SYNC: USART Mode Select bit
1 = Synchronous mode
0 = Asynchronous mode
Bit 3 Unimplemented: Read as '0'
Bit 2 BRGH: High Baud Rate Select bit
Asynchronous mode:
1 = High speed
0 = Low speed
Synchronous mode:
Unused in this mode
Bit 1 TRMT: Transmit Shift Register Status bit
1 = TSR empty
0 = TSR full
Bit 0 TX9D: 9th bit of Transmit Data, can be parity bit
RCSTA
TeleCommunication 26
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 27
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 28
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 4
ALPHANUMERIC LCD
TeleCommunication 29
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 30
PIC Microcontroller based Wireless Notice Board MVJCE
active switching element. The current in an active matrix display can be switched
on and off more frequently; improving the screen refresh time. In contrast to
passive-matrix LCDs, AMLCDs have no inherent limitation in the number of scan
lines, and they present fewer cross-talk issues. There are many kinds of
AMLCDs. For their integrated switching devices most use transistors made of
deposited thin films, which are therefore called thin-film transistors (TFTs).
The most common semi conducting layer is made of amorphous silicon
(a-Si). A-Si TFTs are amenable to large-area fabrication using glass substrates
in a low-temperature (300°C to 400°C) process. An alternative TFT technology,
polycrystalline silicon - or polysilicon or p-Si-is costly to produce and especially
difficult to fabricate when manufacturing large-area displays. Nearly all TFT
LCDs are made from a-Si because of the technology's economy and maturity,
but the electron mobility of a p-Si TFT is one or two orders of magnitude greater
than that of an a-Si TFT. This makes the p-Si TFT a good candidate for TFT
array containing integrated drivers, which is likely to be an attractive choice for
small, high definition displays such as view finders and projection displays.
LCD modules can be split into two groups: those that have built-in
controller and driver chips, and those that have only driver chips. LCD displays
that do not have controllers are typically used with powerful hardware, such as a
laptop computer, where a video controller is available to generate the complex
drive signals necessary to run the display. Most color and large (greater than
320x240) monochrome displays are of this type. The category of display
modules that have built-in controllers can be split again into character LCD
modules and graphic LCD modules. Character modules can display only text
and perhaps some special symbols, while graphic modules can display lines,
circles, squares, and patterns in addition to text. Some examples of graphic LCD
controller chips are the Toshiba T6963, Seiko-Epson SED1330, and Hitachi
HD61202.
TeleCommunication 31
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 32
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 33
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 34
PIC Microcontroller based Wireless Notice Board MVJCE
Instructions: The different instructions available for use with the 44780 are
shown below:
TeleCommunication 35
PIC Microcontroller based Wireless Notice Board MVJCE
Before sending commands or data to the LCD module, the Module must be
initialized. For eight bit mode, this is done using the following series of
operations:
Once the initialization is complete, the LCD can be written to with data or
instructions as required. Each character to display is written like the control
bytes, except that the "R/S" line is set. During initialization, by setting the "S/C"
bit during the "Move Cursor/Shift Display" command, after each character is sent
to the LCD, the cursor built into the LCD will increment to the next position
(either right or left). Normally, the "S/C" bit is set (equal to "1") along with the
"R/L" bit in the "Move Cursor/Shift Display" command for characters to be written
from left to right (as with a "Teletype" video display).
TeleCommunication 36
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 5
I2C EXPANDER
(PCF8574)
TeleCommunication 37
PIC Microcontroller based Wireless Notice Board MVJCE
5.1 Features:
· Operating supply voltage 2.5 to 6 V
· Low standby current consumption of 10 mA maximum
· I2C-bus to parallel port expander
· Open-drain interrupts output
· 8-bit remote I/O port for the I2C-bus
· Compatible with most microcontrollers
· Latched outputs with high current drive capability for directly driving LEDs
· Address by 3 hardware address pins for use of up to 8 devices (up to 16 with
PCF8574A)
TeleCommunication 38
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 39
PIC Microcontroller based Wireless Notice Board MVJCE
Bit transfer
One data bit is transferred during each clock pulse. The data on the SDA
line must remain stable during the HIGH period of the clock pulse as changes in
the data line at this time will be interpreted as control signals.
TeleCommunication 40
PIC Microcontroller based Wireless Notice Board MVJCE
System configuration
A device generating a message is a ‘transmitter’, a device receiving is the
‘receiver’. The device that controls the message is the ‘master’ and the devices
which are controlled by the master are the ‘slaves’.
Acknowledge
The number of data bytes transferred between the start and the stop
conditions from transmitter to receiver is not limited. Each byte of eight bits is
followed by one acknowledge bit (see Fig.8). The acknowledge bit is a HIGH
level put on the bus by the transmitter whereas the master generates an extra
acknowledge related clock pulse .A slave receiver which is addressed must
generate an acknowledge after the reception of each byte. Also a master must
generate an acknowledge after the reception of each byte that has been clocked
out of the slave transmitter. The device that acknowledges has to pull down the
SDA line during the acknowledge clock pulse, so that the SDA line is stable
LOW during the HIGH period of the acknowledge related clock pulse, set-up and
hold times must be taken into account.
A master receiver must signal an end of data to the transmitter by not
generating an acknowledge on the last byte that has been clocked out of the
slave. In this event
the transmitter must leave the data line HIGH to enable the master to generate a
stop condition.
TeleCommunication 41
PIC Microcontroller based Wireless Notice Board MVJCE
F
ig.8 Acknowledgment on the I2C-bus.
TeleCommunication 42
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 43
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 6
TeleCommunication 44
PIC Microcontroller based Wireless Notice Board MVJCE
RF transmitter and receiver are one of the important components used in our
project to give a wider touch, where these RF transmitter and receiver are used
to obtain a wireless application for our project. It plays a vital role for all wireless
devices and application. We are going for RF ASK Low Cost Hybrid Modules
TPL434 and RLP434 for transmitter and receiver application. Both of them
employ ASK (amplitude shift keying) modulation, which is linear and sensitive to
atmosphere and also they are inexpensive.
Above block diagram represents the basic of RF Transmitter and receiver where
a single antenna is working for both transmission and receiving propose. An
input digital signal is given to DAC stage which converts the digital input signal to
analog signal, so generated analog signal is feed to LPF block. The output from
LPF is given to down convertor and Local oscillator (L.O) combination which
works as super heterodyne. Here the analog signal is converted to a particular
frequency range at which the transmitter is supposed to operate. So obtained
TeleCommunication 45
PIC Microcontroller based Wireless Notice Board MVJCE
signal is passed through low noise amplifier (LNA) and given to Duplexer from
where it is transmitted on the medium using antenna.
While the Receiver part operates exactly vice versa. Here on receiving
signals from the medium Antenna gives it to LNA from where it is given to super
heterodyne receiver i.e. a combination of local oscillator and down convertor.
Here the signal is driven back into its original range. And the ADC converts it
back to its original digital form. This is how a general RF Transmitter and
Receiver works as explained
The amplitude of an analog carrier signal varies in accordance with the bit
stream (modulating signal), keeping frequency and phase constant. The level of
amplitude can be used to represent binary logic 0s and 1s. We can think of a
carrier signal as an ON or OFF switch. In the modulated signal, logic 0 is
represented by the absence of a carrier, thus giving OFF/ON keying operation
and hence the name given.
TeleCommunication 46
PIC Microcontroller based Wireless Notice Board MVJCE
6.1.2 Encoding:
The simplest and most common form of ASK operates as a switch, using the
presence of a carrier wave to indicate a binary one and its absence to indicate a
binary zero. This type of modulation is called on-off keying, and is used at radio
frequencies to transmit Morse code (referred to as continuous wave operation).
TeleCommunication 47
PIC Microcontroller based Wireless Notice Board MVJCE
SPECIFICATIONS:
• Modulation: ASK
TeleCommunication 48
PIC Microcontroller based Wireless Notice Board MVJCE
SPECIFICATIONS:
• Modulation: ASK
• Circuit Shape: LC
TeleCommunication 49
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 7
MAX 232
TeleCommunication 50
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 51
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 52
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 8
CIRCUIT DIAGRAM OF
TRANSMITTER & RECEIVER
TeleCommunication 53
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 54
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 55
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 56
PIC Microcontroller based Wireless Notice Board MVJCE
TeleCommunication 57
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 9
SOFTWARE SECTION
TeleCommunication 58
PIC Microcontroller based Wireless Notice Board MVJCE
START
INTIALISE
MICRO
CONTROLLE
RECEIVE
THE DATA
SERIALLY
STORE IN
MICRO
CONTROLLE
TRANSMIT
THROUGH
SERIAL
PORT TO
TRANSMITT
END
TeleCommunication 59
PIC Microcontroller based Wireless Notice Board MVJCE
START
INITIALISE
MICROCONTROLLER
IS RECEIVED DATA
VALID?
END
TeleCommunication 60
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 10
APPLICATIONS
TeleCommunication 61
PIC Microcontroller based Wireless Notice Board MVJCE
APPLICATIONS
• Uses in hospitals.
As in the hospitals we have to keep track of so many things like
management of the resources and the scheduling of everyone and
everything. There are different types of labs and the devices for diagnosis of
the different kinds of disease. By using this technology we can make proper
utilization of resources, timely and proper management of people without any
hassles.
• Uses in Banks
There is a huge mass of population which depends upon the banks for all
their monetary transactions. To keep a proper track of such huge mass of
people and their transactions this technology helps with certain degree of
effectiveness.
TeleCommunication 62
PIC Microcontroller based Wireless Notice Board MVJCE
• Information purpose
It would be wiser to make a use of this technology for information purpose
like news and its updates, real time reporting, live telecasting, inclusive of
various information which adds to the advanced and busy life on daily basis.
• Stock Exchange
The stock exchange is the hot topic nowadays. There are millions of sales
of shares every hours and it is very necessary to maintain the real time
services with the certain measures of reliability because it deals with the
money large number of the small or bigger investors. With the help of this
technology we can make it far easier and reliable.
• Organizations
Every organization has large number of employees who are assigned to
accomplish the various tasks and each and everything should be
documented for the future reference purpose. And also their schedules work,
reports, leaves, presentation as well as distribution of salary etc….
TeleCommunication 63
PIC Microcontroller based Wireless Notice Board MVJCE
CHAPTER 11
ENHANCEMENTS
TeleCommunication 64
PIC Microcontroller based Wireless Notice Board MVJCE
ENHANCEMENTS
This technology can be used for broader application with the help of Further
Enhancements. Such as:-
• It can be used to cover a wider range by the use of Effective RF
Transmitter and Receiver.
• Even we can increase the size of LCD so that it will be more practical and
advanced with its various features like wireless communication, remote
controlling and monitoring.
• As the RF Transmitters and Receivers are temperature sensitive we can
make a proper use of them to overcome its sensitivity.
• Even if we see in wider application we can use it for the display of
symbols, signs and figures which can be easily understood and followed
by normal non technical and general people, mean while it also aids to the
time utilization as time is the most important factor in daily lives.
• On the other hand we have got the freedom to make it as two way
communication medium. Which adds to one of the essential further
enhancement, as communication and information interchange has
become one of the essential tools for the researches and innovations?
• As mobile has become the major device to give the access to the
information and to get connected with desired people and communication
world which directly relates to almost all of the people and it seems like
impossible to keep track of everything without the help of mobile we
should be able to do further enhancement in mobile and communication.
TeleCommunication 65
PIC Microcontroller based Wireless Notice Board MVJCE
As we see from the above discussion it has the wide and extensive further
enhancements which add to the wider application, deployment of information
technology, which can change the face of present communication system
providing better services in the communication field to the people and
organization.
TeleCommunication 66
PIC Microcontroller based Wireless Notice Board MVJCE
Conclusion:
Form this article we conclude implementing Wireless Notice Board that:-
TeleCommunication 67
PIC Microcontroller based Wireless Notice Board MVJCE
BIBLOGRAPHY
WEBSITES
www.microchip.com
www.laipac.com
www.howstuffworks.com
www.u2.semiconductors.philips.com/i2c/facts/
www.wikipedia.com
www.kartoo.com
www.google.com
TeleCommunication 68