Professional Documents
Culture Documents
1. INTRODUCTION
2. MICROCONTROLLER
2.5 Timers
2.6 Interrupts
3. POWER SUPPLY
3.1 Description
4.2 Description
5. LCD
5.2 Description
7. KEIL SOFTWARE
9. CIRCUIT DIAGRAM
FUTURE SCOPE
BIBLIOGRAPHY
REFERENCES
At the time when data will transfer from the transmitter a predefined
code will be
Added with every eight bit data and when this data receive by the
receiver this code
Will be decode by the receiver and generate the exact data that will be
displayed
On LCD.
In this project Wireless Encoding and decoding are using one of the
techniques
Hardware components:
Software tools:
• Kiel vision.
Advantages:
Applications:
LCD
Regulated
Power
supply
Regulated
Power
Supply
MA
P
X23
C
2 EMBEDDED
EMBEDDED CONTROLLER RF
CONTROLLE Receive
RF R r
Transmit
module
ter
module
TRANSMITTER
RECEIVER
2. MICROCONTROLLER
The 8051 is an original member of the 8051 family. There are two
other members in the 8051 family of microcontrollers. They are 8052
and 8031. All the three microcontrollers will have the same internal
architecture, but they differ in the following aspects.
The Idle Mode stops the CPU while allowing the RAM,
timer/counters, serial port and interrupt system to continue functioning.
The Power down Mode saves the RAM contents but freezes the oscillator
disabling all other chip functions until the next hardware reset.
2.3 Block Diagram of Microcontroller
Figure 2.1 Block Diagram Of 89C52
2.4 Pin Configurations
• VCC
• GND.
• Port 0
• Port 1
• Port 3
• RST
• ALE/PROG
Note, however, that one ALE pulse is skipped during each access
to external Data Memory. If desired, ALE operation can be disabled
by setting bit 0 of SFR location 8EH. With the bit set, ALE is active
only during a MOVX or MOVC instruction. Otherwise, the pin is
weakly pulled high. Setting the ALE-disable bit has no effect if the
microcontroller is in external execution mode.
PSEN
EA/VPP
• XTAL1
• XTAL2
• Oscillator Characteristics
In idle mode, the CPU puts itself to sleep while all the on-chip
peripherals remain active. The mode is invoked by software. The
content of the on-chip RAM and all the special functions registers remain
unchanged during this mode. The idle mode can be terminated by any
enabled interrupt or by a hardware reset. It should be noted that when
idle is terminated by a hardware reset, the device normally resumes
program execution, from where it left off, up to two machine cycles
before the internal reset algorithm takes control.
Down Mode
• Program Memory Lock Bits
On the chip are three lock bits which can be left unprogrammed
(U) or can be programmed (P) to obtain the additional features listed in
the table 5.4. When lock bit 1 is programmed, the logic level at the EA
pin is sampled and latched during reset. If the device is powered up
without a reset, the latch initializes to a random value, and holds that
value until reset is activated. It is necessary that the latched value of EA
be in agreement with the current logic level at that pin in order for the
device to function properly.
TIMERS
• Timer 0 and 1
Register pairs (TH0, TL1), (TH1, TL1) are the 16-bit counter
registers for timer/counters 0 and 1.
• Timer 2
• Capture Mode
The Timer 0 and Timer 1 flags, TF0 and TF1, are set at S5P2 of
the cycle in which the timers overflow. The values are then polled by the
circuitry in the next cycle. However, the Timer 2 flag, TF2, is set at S2P2
and is polled in the same cycle in which the timer overflows.
a) Accumulator (0E0h)
b) B register (oFoh)
The stack pointer holds 8-bit value. This is used to indicate where
the next value to be removed from the stack should be taken from.
When a value is to be pushed on to the stack, the 8052 first store the
value of SP and then store the value at the resulting memory location.
When a value is to be popped from the stack, the 8052 returns the
value from the memory location indicated by SP and then decrements
the value of SP.
e) Program counter
The power control SFR is used to control the 8052’s power control
modes. Certain operation modes of the 8052 allow the 8052 to go into a
type of “sleep mode” which consumes low power.
The timer mode control SFR is used to configure and modify the
way in which the 8052’s two timers operate. This SFR controls whether
each of the two timers is running or stopped and contains a flag to
indicate that each timer has overflowed. Additionally, some non-timer
related bits are located in TCON SER. These bits are used to configure
the way in which the external interrupt flags are activated, which are set
when an external interrupt occur.
Gate C/ T M1 M0 Gate C/ T M1 M0
TIMER1 TIMER0
This is port 0 latch. Each bit of this SFR corresponds to one of the
pins on a micro controller. Any data to be outputted to port 0 is first
written on P0 register. For e.g., bit 0 of port 0 is pin P0.0, bit 7 is pin
P0.7. Writing a value of 1 to a bit of this SFR will send a high level on
the corresponding I/O pin whereas a value of 0 will bring it to low level.
This is port 1 latch. Each bit of this SFR corresponds to one of the
pins on a micro controller. Any data to be outputted to port 1 is first
written on P1 register. For e.g., bit 0 of port 1 is pin P1.0, bit 7 is pin
P1.7. Writing a value of 1 to a bit of this SFR will send a high level on
the corresponding I/O pin whereas a value of 0 will bring it to low level.
This is port 2 latch. Each bit of this SFR corresponds to one of the
pins on a micro controller. Any data to be outputted to port 2 is first
written on P2 register. For e.g., bit 0 of port 2 is pin P2.0, bit 7 is pin
P2.7. Writing a value of 1 to a bit of this SFR will send a high level on
the corresponding I/O pin whereas a value of 0 will bring it to low level.
This is port 3 latch. Each bit of this SFR corresponds to one of the
pins on a micro controller. Any data to be outputted to port 3 is first
written on P3 register. For e.g., bit 0 of port 3 is pin P3.0, bit 7 is pin
P3.7. Writing a value of 1 to a bit of this SFR will send a high level on
the corresponding I/O pin whereas a value of 0 will bring it to low level.
___ ___
7.1 Description:
Circuit Features:
IN OUT
Vin 78XX
Vout
C1
GND
C2
7805 +5
7806 +6 35V
7808 +8
7810 +10
7812 +12
7815 +15
7818 +18
This compact radio frequency (RF) receiver module is suitable for remote control or
telemetry applications. The double sided circuit board is pre-populated with Surface
Mount Devices (SMD) and is tuned to 433MHz. No module assembly or
adjustments are required. RF receiver module RX433 receives RF control signals
from the 8 channel RF remote control transmitter K8058 and performs as an RF
receiver interface when used on the 8 channel remote control relay board K8056.
(Only one RX433 RF receiver is needed for full RF remote control operation of the
8 channel relay board K8056). RF receiver module RX433 is a highly sensitive
passive design that is easy to implement with a low external parts count. (Download
datasheet with hook-up schematic below)
RF remote receiver module RX433 can also be used with 433MHz RF Transmitter
TX433N for your custom remote control or telemetry requirements. (However, the
FCC has restrictions on the sale of the TX433N transmitter module in the U.S., so
we don't have these transmitters available).
Specifications
Modulation : AM
RF output : 8mW
Power supply : 3 - 12Vdc
Power Supply and All Input /
VIEW LARGER
IMAGE Output Pins: -0.3 to +12.0 V
*Non-Operating Case Temperature: -20 to +85
*Soldering Temperature ( 10 Seconds ) : 230 ( 10 Seconds )
Features
no adjustments required
stable output
suitable for remote controls, telemetry, ..
Specifications
frequency : 433MHz
modulation : AM
RF output : 8mW
power supply : 3 - 12Vdc
Circuit Shape: SAW
pin numbers :
1 : GND
2 : Data_IN
3 : Vcc
4 : ANT
LCD:-
To send any of the commands from given table to the lcd, make
pin RS =0.For data, make RS=1.then send a high to low pulse to the E
pin to enable the internal latch of the LCD. As shown in figure for LCD
connections.
Pin
Symbol Level I/O Function
number
1 Vss - - Power supply (GND)
2 Vcc - - Power supply (+5V)
3 Vee - - Contrast adjust
0 = Instruction input
4 RS 0/1 I
1 = Data input
0 = Write to LCD module
5 R/W 0/1 I
1 = Read from LCD module
6 E 1, 1->0 I Enable signal
7 DB0 0/1 I/O Data bus line 0 (LSB)
8 DB1 0/1 I/O Data bus line 1
9 DB2 0/1 I/O Data bus line 2
10 DB3 0/1 I/O Data bus line 3
11 DB4 0/1 I/O Data bus line 4
12 DB5 0/1 I/O Data bus line 5
13 DB6 0/1 I/O Data bus line 6
14 DB7 0/1 I/O Data bus line 7 (MSB)
SOFTWARE DESCRIPTION:
1. Click on the Keil uVision Icon on Desktop
2. The following fig will appear
15. Click on the file option from menu bar and select “new”
16. The next screen will be as shown in next page, and just
maximize it by double clicking on its blue boarder.
19. Now right click on Source group 1 and click on “Add files to Group
Source”
20. Now you will get another window, on which by default “C” files will
appear.
21. Now select as per your file extension given while saving the file
22. Click only one time on option “ADD”
23. Now Press function key F7 to compile. Any error will appear if so
happen.
24. If the file contains no error, then press Control+F5 simultaneously.
25. The new window is as follows
28. Drag the port a side and click in the program file.
29. Now keep Pressing function key “F11” slowly and observe.
CONCLUSION
FUTURE SCOPE
This system is a rapidly growing field and there are new and
improved strategies popping up all the time. For the most part these
systems are all built around the same basic structure, a central box that
business center the points where an intruder would enter the building. In
system
call is not put forward the first time, the auto dialer will dial the
system.
REFERENCES
1. The 8051 Microcontroller and Embedded Systems By Muhammad Ali
Mazidi
3..www.howsstuffworks.com
4. www.alldatasheets.com
5. www.electronicsforu.com
6. www.knowledgebase.com
7.www.8051 projectsinfo.com