SlideShare a Scribd company logo
1 of 18
Download to read offline
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072)
                               N.Sindhuja (11509106070)
              Department of Electronics communication & engineering
             SRIRAM ENGINEERING COLLEGE, PERUMALPATTU




                            PROJECT REPORT
             EC2308 Microprocessor and Microcontroller Lab
                                       Guided By
                              Ms Philomena Jennifer
                                    Lecturer, ECE
                                   Date: 28/09/2011
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070)




                                         ABSTRACT

              Our Term Project is to study and implement a PRE-SETTABLE ALARM
            SYSTEM using 8253/8254 timer and 8086 Microprocessor .We have
            approached this design without using interrupts and it mainly involves the
            use of thumbwheel switches which are interfaced through 8255 ports. The
            alarm lasts for 5 seconds .The timing parameters are derived from
            8253/54and control signals are generated using 74LS138.




EC2308 Microprocessors and Microcontrollers                                                                  Page 2
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070)




                                 ACKNOWLEDGEMENT


    Our indebted thanks to our respected Dean Prof V.Thyagarajan, to do this project
work. We express our sincere thanks to our Head of the department, Mr.V.Salaiselvam
M.E. (PhD) who has helped us to take this invaluable project. We express our sincere
thanks to our guide Ms PHILOMENA JENNIFER, Lecturer ECE for the untiring
continued technical guidance during the fabrication and preparation of the Project. This is a
major motivation force for us to complete our project work.




EC2308 Microprocessors and Microcontrollers                                                                  Page 3
PRE-SETTABLE ALARM SYSTEM
                                     SETTABLE
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070)




             SRIRAM ENGINEERING COLLEGE
                         Perumalpattu, Thiruvallur Taluk - 602024
   (Approved by AICTE, Affiliated to Anna University Chennai and Accredited by NBA)




     REGISTER NO:                    11509106086, 11509106074, 11509106072, 11509106070


                                       MINI PROJECT REPORT
                                             2011 – 2012
Name of lab: EC2308 MICROPROCESSOR AND MICROCONTROLLERS
                  8
Department: ELECTRONICS AND COMMUNICATION


       Certified that this is a bonafide record of work done by VINI NARAYANANKUTTY, SUBHRATA
SARANGI, P.SOWMIYA,N.SINDHUJA Of 3RD YEAR 5TH SEMESTER Class, having completed the Mini
Project with his team members on the topic “PRE-SETTABLE ALARM SYSTEM          SYSTEM”. In the
MICROPROCESSOR AND MICROCONTROLLER LAB during the year 2011 – 2012.


Submitted for the Demonstration held on: 28/09/2011
                                       : 28




Signature of Head of dept:                                          Signature of lab-in-charge:
                                                                                 lab charge:




EC2308 Microprocessors and Microcontrollers                                                                  Page 4
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070)




                                  TABLE OF CONTENTS


              1. Introduction
                    1.1Design Description

              2. Pre-settable Alarm System
                                           2.1 Block diagram
                                           2.2 Pin diagram and description
                                           2.3 Signal specification
                                           2.4 Address map
                                           2.5 Control word formats


             3. Program Coding

                          3.1 Coding
                          3.2 Delay Routine

            4. Conclusion

                            4.1 Advantage of Pre-settable alarm system


             5. References




EC2308 Microprocessors and Microcontrollers                                                                  Page 5
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)



                                INTRODUCTION

         An electronic alarm timepiece has a time counter, an alarm time memory
circuit and a coincidence detector for detecting a coincidence between the time
count and the stored alarm time for actuating an alarm. The alarm time memory
circuit is a pre-settable counter and it is pre-settable to load the present time count
in the time counter therein. In this way, a coarse adjustment of the alarm time can
be set and a manually operable mechanism is provided to increment the count in
the alarm time memory circuit to obtain the precise desired alarm time. There are
various types of alarm system available in the market.




                          1.1 Design Description

We go with design of simple pre-settable alarm system with alarm lasting for 5
seconds using 8253/54 timer and 8086 microprocessor without using interrupt. We
implement our design with thumbwheel switches to accept 4 digit values in
seconds. These switches are interfaced through 8255 ports. .A delay of 5 seconds is
provided in between each alarm by means of a delay routine.74LS138 decoder is
used to generate chip select signals for 8253/54 and 8255.One more 74LS138
decoder is used to generate     ,      ,        and




EC2308 Microprocessors and Microcontrollers                                                 Page 6
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




            PRE-SETTABLE ALARM SYSTEM


                                    2.1 Block diagram




EC2308 Microprocessors and Microcontrollers                                                 Page 7
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)


                          2.2 Pin diagram and description

   A. 8253/54




Clock This is the clock input for the counter. The counter is 16 bits. The maximum
clock frequency is 1 / 380 nanoseconds or 2.6 megahertz. The minimum clock
frequency is DC or static operation.

Out This single output line is the signal that is the final programmed output of the
device. Actual operation of the outline depends on how the device has been
programmed.

Gate This input can act as a gate for the clock input line, or it can act as a start
pulse, depending on the programmed mode of the counter.




EC2308 Microprocessors and Microcontrollers                                                 Page 8
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




EC2308 Microprocessors and Microcontrollers                                                 Page 9
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)


   B. 8255




   1 D0 - D7 These are the data input/output lines for the device. All information
     read from and written to the 8255 occurs via these 8 data lines.

   2      (Chip Select Input). If this line is a logical 0, the microprocessor can read
       and               write                 to                the             8255.

   3       (Read Input): whenever this input line is a logical 0 and the RD input is
       a logical 0, the 8255 data outputs are enabled onto the system data bus.

   4       (Write Input) Whenever this input line is a logical 0 and the CS input is
       a logical 0, data is written to the 8255 from the system data bus

   5 A0 - A1 (Address Inputs): The logical combination of these two input lines
     determines which internal register of the 8255 data is written to or read
     from.

   6 RESET The 8255 is placed into its reset state if this input line is a logical 1.
     All peripheral ports are set to the input mode.




EC2308 Microprocessors and Microcontrollers                                                Page 10
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)


   7 PA0 - PA7, PB0 - PB7, and PC0 - PC7: These signal lines are used as 8-bit
       I/O ports. They can be connected to peripheral devices.




                                 2.3 Signal specification

        The figure shows interfacing of 8253/54 with 8086 with 16-bit address.




           Here      and       signals are activated when M/        signal is low,
indicating I/O Bus cycle. To get absolute address, all remaining address lines (A3-
A15) are used to decode the address for it. In order to access it we must use
indirect addressing modes




EC2308 Microprocessors and Microcontrollers                                                Page 11
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




                                     2.4 Address map


        The address map shows how addresses have been allocated for memory
and any other devices connected to the address bus.


Ports/Control Register                          Address lines                            Address

                                    A7 A6 A5 A4 A3 A2 A1 A0

Counter 0                           0      0     0      0      0     0      0      0     00H
Counter 1                           0      0     0      0      0     0      1      0     02H
Counter 2                           0      0     0      0      0     1      0      0     04H
Control register                    0      0     0      0      0     1      1      0     06H
Port A                              0      0     0      0      1     0      0      0     08H
Port B                              0      0     0      0      1     0      1      0     0AH
Port C                              0      0     0      0      1     1      0      0     0CH
Control register                    0      0     0      0      1     1      1      0     0EH




EC2308 Microprocessors and Microcontrollers                                                Page 12
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




                              2.5 Control Word Format


1. Control word to Read/write value in count register of counter 0 of 8253/54
D7          D6           D5          D4           D3           D2          D1           D0
SC1         SC2          RW1         RW0          M2           M1          M0           BCD
0           0            1           1            0            0           0            1

Control word =31H
D0=1          ; BCD count
D3, D4, D5=000; Mode: interrupt on terminal count
D5, D4=11     ; Read/write lower byte first and then higher byte
D7, D6=00     ; Counter 0


2. Control word to Read/write value in count register of counter 1 of 8253/54

D7          D6           D5          D4           D3           D2          D1           D0
SC1         SC2          RW1         RW0          M2           M1          M0           BCD
0           1            1           1            0            1           1            1

Control word =77H
D0=1          ; BCD count
D3, D4, D5=011; Mode: Square Wave Rate Generator
D5, D4=11     ; Read/write lower byte first and then higher byte
D7, D6=01     ; Counter 1




EC2308 Microprocessors and Microcontrollers                                                Page 13
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




3. Control word to latch value in count register of counter 0 of 8253/54

D7          D6           D5          D4           D3           D2          D1           D0
SC1         SC2          RW1         RW0          M2           M1          M0           BCD
0           0            0           0            0            0           0            1

Control word =01H
D0=1          ; BCD count
D3, D4, D5=000; Mode: interrupt on terminal count
D5, D4=00     ; Counter latch command
D7, D6=00     ; Counter 0

4. Control word to latch value in count register of counter 2 of 8253/54

D7          D6           D5          D4           D3           D2          D1           D0
SC1         SC2          RW1         RW0          M2           M1          M0           BCD
1           0            0           0            0            0           0            1

Control word =81H
D0=1          ; BCD count
D3, D4, D5=000; Mode: interrupt on terminal count
D5, D4=11     ; Counter latch command
D7, D6=10     ; Counter 2




EC2308 Microprocessors and Microcontrollers                                                Page 14
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




4. Control word to latch value in count register of counter 2 of 8253/54

D7          D6           D5          D4           D3           D2          D1           D0
SC1         SC2          RW1         RW0          M2           M1          M0           BCD
1           0            1           1            0            0           0            1

Control word =B1H
D0=1          ; BCD count
D3, D4, D5=000; Mode: interrupt on terminal count
D5, D4=11     ; Read back command in 8254
D7, D6=10     ; Counter 2

5. Control word to INITIALISE 8255:

BSR/IO             MODE A              PA          PCH MODE B PB                         PCL
1      0             0                 1           0   0      1                          0

Control word =92H
BSR/IO=1            ; IO Mode
MODE A=00; Mode0
PA=1; Port A=simple input
PCH=0, PCL=0; Port C=simple output
PB=1; Port B=simple input




EC2308 Microprocessors and Microcontrollers                                                Page 15
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)


                          3. PROGRAM CODING

3.1    Main Program Coding

            MOV AL, 92H; Load control word in accumulator
            OUT 0EH, AL; Initialize 8255 by sending control word at the addresses of
                     Control register
 START: IN AL, 08H; Get the lower two digit of count
         MOV BL, AL; Store the lower two digit of the count
         IN AL, 0AH; Get the higher two digit of count
         MOV BH, AL; Store the higher two digit of the count
            MOV AL, 31H
            OUT 06, AL; Load control word (31H) in the control register to load 16-bit
                               Count in count register of counter 0
        MOV AL, BL
       OUT 00, AL; Loads lower byte of the count
       MOV AL, BH
       OUT 00, AL; Loads higher byte of the count
 BACK MOV AL, 01H;
 BACK:
       OUT 06, AL; Load control word (01H) in the control register to load 16-bit
                            Count in count register of counter 0
            IN AL, 00H; Get the lower two digit of count
            CMP AL, 00H; Compare with zero
           JNZ BACK; Repeat
            IN AL, 00H; Get the higher two digit of count
           CMP AL, 00H; Compare with zero
           JNZ BACK; Repeat
               BACK;
           MOV AL, 01H; Load bit pattern to run alarm
           OUT 0CH, AL; send it to Port C
           CALL DELAY; Wait for 5 seconds
           MOV AL, 00H; Load bit pattern to stop alarm
           OUT 0CH, AL; send it to Port C
           JMP START; Repeat
                START;


3.2    Delay Routine

EC2308 Microprocessors and Microcontrollers                                                Page 16
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)



            This delay routine gives a delay of 5 seconds. Counter 1 of 8253/54 is
       used to give delay of 1 second. As output of counter1 is used as a clock for
       counter2, the count in the counter2 acts as a multiplying factor. Therefore,
       by loading 05H in the count register of counter 2 we get a delay of (5×1)
       seconds.

      MOV AL, 77H
      OUT 06, AL; Loads control word (71H) in the control register
      MOV AL, 10H
      OUT 02, AL
      MOV AL, 27H
      OUT 02H
      MOV AL, B1H
      OUT 06H, AL
      MOV AL, 05H
      OUT 04, AL; Loads lower byte of the count
      MOV AL, 00H; Loads higher byte of the count
      OUT 04, AL
BACK MOV AL, 81H
BACK:
      OUT 06, AL; Loads control word (81H) in the control register to latch
                     16-bit count in the count registers of counter 2
        IN AL, 04H; Get lower two digits of the count
        CMP AL, 00H; Compare with zero
        JNZ BACK If not zero, repeat
            BACK:
        IN AL, 04H; Get the higher two digits of the count
        CMP AL, 00H; Compare with zero

        JNZ BACK If not zero, repeat
            BACK:
        RET; Return to main program




EC2308 Microprocessors and Microcontrollers                                                Page 17
PRE-SETTABLE ALARM SYSTEM
ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja
(11509106070)




                                 4. CONCLUSION


       4.1 Advantages


        1. Simple to design.
        2. Reduces the need of using Schmitt –trigger NAND gate usually used in
           alarms.




                                 5. REFERENCES

   1 Pre-settable alarm clock-Wikipedia.
   2 www.seminarprojects.com
   3 Microprocessors and interfacing: Programming and hardware
     Douglas V. Hall




EC2308 Microprocessors and Microcontrollers                                                Page 18

More Related Content

What's hot

Interrupt programming with 8051 microcontroller
Interrupt programming with 8051  microcontrollerInterrupt programming with 8051  microcontroller
Interrupt programming with 8051 microcontrollerAnkit Bhatnagar
 
digital electronics Design of 101 sequence detector without overlapping for...
digital  electronics Design of 101 sequence detector without  overlapping for...digital  electronics Design of 101 sequence detector without  overlapping for...
digital electronics Design of 101 sequence detector without overlapping for...sanjay kumar pediredla
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorMOHIT AGARWAL
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerUmar Shuaib
 
Design of ANN controller for power converter using MATLAB GUI
Design of ANN controller for power converter using MATLAB GUIDesign of ANN controller for power converter using MATLAB GUI
Design of ANN controller for power converter using MATLAB GUIDr M Muruganandam Masilamani
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERsravannunna24
 
Pspice software+ presentation
Pspice software+ presentationPspice software+ presentation
Pspice software+ presentationRAhul Soni
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogSTEPHEN MOIRANGTHEM
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 MicrocontrollerASHISH RANJAN
 
DHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity SensorDHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity SensorRaghav Shetty
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDLanand hd
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Revathi Subramaniam
 

What's hot (20)

PIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC InterfacingPIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC Interfacing
 
Interrupt programming with 8051 microcontroller
Interrupt programming with 8051  microcontrollerInterrupt programming with 8051  microcontroller
Interrupt programming with 8051 microcontroller
 
digital electronics Design of 101 sequence detector without overlapping for...
digital  electronics Design of 101 sequence detector without  overlapping for...digital  electronics Design of 101 sequence detector without  overlapping for...
digital electronics Design of 101 sequence detector without overlapping for...
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 Microprocessor
 
Dynamic logic circuits
Dynamic logic circuitsDynamic logic circuits
Dynamic logic circuits
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontroller
 
Design of ANN controller for power converter using MATLAB GUI
Design of ANN controller for power converter using MATLAB GUIDesign of ANN controller for power converter using MATLAB GUI
Design of ANN controller for power converter using MATLAB GUI
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLER
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
Pspice software+ presentation
Pspice software+ presentationPspice software+ presentation
Pspice software+ presentation
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilog
 
Lecture 5: The Convolution Sum
Lecture 5: The Convolution SumLecture 5: The Convolution Sum
Lecture 5: The Convolution Sum
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
Data Flow Modeling
Data Flow ModelingData Flow Modeling
Data Flow Modeling
 
DHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity SensorDHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity Sensor
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDL
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
 

Viewers also liked

Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharShivnaresh Likhar
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORSubash Sambath Kumar
 
Automatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessorAutomatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessorsubhradeep mitra
 
Automatic Sliding Door
Automatic Sliding DoorAutomatic Sliding Door
Automatic Sliding DoorPrashant Rao
 
Number Guessing Game - A 8085 Project
Number Guessing Game - A 8085 ProjectNumber Guessing Game - A 8085 Project
Number Guessing Game - A 8085 ProjectSneh Pahilwani
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableSubhashini Sundaram
 
PART -1 TRAFFIC LIGHT CONTROL USING 8085
PART -1 TRAFFIC LIGHT CONTROL USING 8085PART -1 TRAFFIC LIGHT CONTROL USING 8085
PART -1 TRAFFIC LIGHT CONTROL USING 8085Subash Sambath Kumar
 
PLC based Multichannel Automatic Liquid Level Controller
PLC based Multichannel Automatic Liquid Level ControllerPLC based Multichannel Automatic Liquid Level Controller
PLC based Multichannel Automatic Liquid Level ControllerVijay Badgujar
 
Sample Acknowledgement of Project Report
Sample Acknowledgement of Project ReportSample Acknowledgement of Project Report
Sample Acknowledgement of Project ReportMBAnetbook.co.in
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature ControllerRevanth Reddy
 
List of microcontroller 8051 projects
List of microcontroller 8051 projectsList of microcontroller 8051 projects
List of microcontroller 8051 projectsSushil Mishra
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)ufaq kk
 
Applications of microprocessor
Applications of microprocessorApplications of microprocessor
Applications of microprocessorAnjali Agrawal
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock deviceAmitoj Kaur
 
Password based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportPassword based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportChinaraja Baratam
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed controlSai Malleswar
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessorGeorge Thomas
 

Viewers also liked (20)

Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likhar
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
Project ppt
Project pptProject ppt
Project ppt
 
Automatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessorAutomatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessor
 
Automatic Sliding Door
Automatic Sliding DoorAutomatic Sliding Door
Automatic Sliding Door
 
Number Guessing Game - A 8085 Project
Number Guessing Game - A 8085 ProjectNumber Guessing Game - A 8085 Project
Number Guessing Game - A 8085 Project
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
 
PART -1 TRAFFIC LIGHT CONTROL USING 8085
PART -1 TRAFFIC LIGHT CONTROL USING 8085PART -1 TRAFFIC LIGHT CONTROL USING 8085
PART -1 TRAFFIC LIGHT CONTROL USING 8085
 
PLC based Multichannel Automatic Liquid Level Controller
PLC based Multichannel Automatic Liquid Level ControllerPLC based Multichannel Automatic Liquid Level Controller
PLC based Multichannel Automatic Liquid Level Controller
 
Sample Acknowledgement of Project Report
Sample Acknowledgement of Project ReportSample Acknowledgement of Project Report
Sample Acknowledgement of Project Report
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature Controller
 
List of microcontroller 8051 projects
List of microcontroller 8051 projectsList of microcontroller 8051 projects
List of microcontroller 8051 projects
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)
 
Applications of microprocessor
Applications of microprocessorApplications of microprocessor
Applications of microprocessor
 
Lcd
LcdLcd
Lcd
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock device
 
Password based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportPassword based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final report
 
Complete-Mini-Project-Report
Complete-Mini-Project-ReportComplete-Mini-Project-Report
Complete-Mini-Project-Report
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed control
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 

Similar to Ec2308 mini project

Ec2306 mini project report-matlab
Ec2306 mini project report-matlabEc2306 mini project report-matlab
Ec2306 mini project report-matlabunnimaya_k
 
FINAL REPORT_B.tech
FINAL REPORT_B.techFINAL REPORT_B.tech
FINAL REPORT_B.techafzal usmani
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic doorIndira Kundu
 
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counterAnn Francis Olita
 
RGB colour detection and tracking on MATLAB
RGB colour detection and tracking on MATLABRGB colour detection and tracking on MATLAB
RGB colour detection and tracking on MATLABNirma University
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Scienceresearchinventy
 
Implementation of Transformer Protection by Intelligent Electronic Device for...
Implementation of Transformer Protection by Intelligent Electronic Device for...Implementation of Transformer Protection by Intelligent Electronic Device for...
Implementation of Transformer Protection by Intelligent Electronic Device for...IJERA Editor
 
Backpropagation Neural Network Modeling for Fault Location in Transmission Li...
Backpropagation Neural Network Modeling for Fault Location in Transmission Li...Backpropagation Neural Network Modeling for Fault Location in Transmission Li...
Backpropagation Neural Network Modeling for Fault Location in Transmission Li...ijeei-iaes
 
cell phone based device control
cell phone based device controlcell phone based device control
cell phone based device controlstudent
 
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...IJMER
 
75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-system75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-systemstk25
 
Fpga implementation of power efficient all digital phase locked loop
Fpga implementation of power efficient all digital phase locked loopFpga implementation of power efficient all digital phase locked loop
Fpga implementation of power efficient all digital phase locked loopIAEME Publication
 
Ls catalog thiet bi tu dong dpr e_dienhathe.vn
Ls catalog thiet bi tu dong dpr e_dienhathe.vnLs catalog thiet bi tu dong dpr e_dienhathe.vn
Ls catalog thiet bi tu dong dpr e_dienhathe.vnDien Ha The
 

Similar to Ec2308 mini project (20)

Main cerificate
Main cerificateMain cerificate
Main cerificate
 
Micro unit 8
Micro unit 8Micro unit 8
Micro unit 8
 
Ec2306 mini project report-matlab
Ec2306 mini project report-matlabEc2306 mini project report-matlab
Ec2306 mini project report-matlab
 
complet finalised
complet finalisedcomplet finalised
complet finalised
 
FINAL REPORT_B.tech
FINAL REPORT_B.techFINAL REPORT_B.tech
FINAL REPORT_B.tech
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic door
 
Singh2017
Singh2017Singh2017
Singh2017
 
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
 
RGB colour detection and tracking on MATLAB
RGB colour detection and tracking on MATLABRGB colour detection and tracking on MATLAB
RGB colour detection and tracking on MATLAB
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
 
Download file
Download fileDownload file
Download file
 
Team7 report
Team7 reportTeam7 report
Team7 report
 
Implementation of Transformer Protection by Intelligent Electronic Device for...
Implementation of Transformer Protection by Intelligent Electronic Device for...Implementation of Transformer Protection by Intelligent Electronic Device for...
Implementation of Transformer Protection by Intelligent Electronic Device for...
 
Backpropagation Neural Network Modeling for Fault Location in Transmission Li...
Backpropagation Neural Network Modeling for Fault Location in Transmission Li...Backpropagation Neural Network Modeling for Fault Location in Transmission Li...
Backpropagation Neural Network Modeling for Fault Location in Transmission Li...
 
M010527678
M010527678M010527678
M010527678
 
cell phone based device control
cell phone based device controlcell phone based device control
cell phone based device control
 
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
 
75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-system75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-system
 
Fpga implementation of power efficient all digital phase locked loop
Fpga implementation of power efficient all digital phase locked loopFpga implementation of power efficient all digital phase locked loop
Fpga implementation of power efficient all digital phase locked loop
 
Ls catalog thiet bi tu dong dpr e_dienhathe.vn
Ls catalog thiet bi tu dong dpr e_dienhathe.vnLs catalog thiet bi tu dong dpr e_dienhathe.vn
Ls catalog thiet bi tu dong dpr e_dienhathe.vn
 

Recently uploaded

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Ec2308 mini project

  • 1. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) Department of Electronics communication & engineering SRIRAM ENGINEERING COLLEGE, PERUMALPATTU PROJECT REPORT EC2308 Microprocessor and Microcontroller Lab Guided By Ms Philomena Jennifer Lecturer, ECE Date: 28/09/2011
  • 2. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) ABSTRACT Our Term Project is to study and implement a PRE-SETTABLE ALARM SYSTEM using 8253/8254 timer and 8086 Microprocessor .We have approached this design without using interrupts and it mainly involves the use of thumbwheel switches which are interfaced through 8255 ports. The alarm lasts for 5 seconds .The timing parameters are derived from 8253/54and control signals are generated using 74LS138. EC2308 Microprocessors and Microcontrollers Page 2
  • 3. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) ACKNOWLEDGEMENT Our indebted thanks to our respected Dean Prof V.Thyagarajan, to do this project work. We express our sincere thanks to our Head of the department, Mr.V.Salaiselvam M.E. (PhD) who has helped us to take this invaluable project. We express our sincere thanks to our guide Ms PHILOMENA JENNIFER, Lecturer ECE for the untiring continued technical guidance during the fabrication and preparation of the Project. This is a major motivation force for us to complete our project work. EC2308 Microprocessors and Microcontrollers Page 3
  • 4. PRE-SETTABLE ALARM SYSTEM SETTABLE ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) SRIRAM ENGINEERING COLLEGE Perumalpattu, Thiruvallur Taluk - 602024 (Approved by AICTE, Affiliated to Anna University Chennai and Accredited by NBA) REGISTER NO: 11509106086, 11509106074, 11509106072, 11509106070 MINI PROJECT REPORT 2011 – 2012 Name of lab: EC2308 MICROPROCESSOR AND MICROCONTROLLERS 8 Department: ELECTRONICS AND COMMUNICATION Certified that this is a bonafide record of work done by VINI NARAYANANKUTTY, SUBHRATA SARANGI, P.SOWMIYA,N.SINDHUJA Of 3RD YEAR 5TH SEMESTER Class, having completed the Mini Project with his team members on the topic “PRE-SETTABLE ALARM SYSTEM SYSTEM”. In the MICROPROCESSOR AND MICROCONTROLLER LAB during the year 2011 – 2012. Submitted for the Demonstration held on: 28/09/2011 : 28 Signature of Head of dept: Signature of lab-in-charge: lab charge: EC2308 Microprocessors and Microcontrollers Page 4
  • 5. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) TABLE OF CONTENTS 1. Introduction 1.1Design Description 2. Pre-settable Alarm System 2.1 Block diagram 2.2 Pin diagram and description 2.3 Signal specification 2.4 Address map 2.5 Control word formats 3. Program Coding 3.1 Coding 3.2 Delay Routine 4. Conclusion 4.1 Advantage of Pre-settable alarm system 5. References EC2308 Microprocessors and Microcontrollers Page 5
  • 6. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) INTRODUCTION An electronic alarm timepiece has a time counter, an alarm time memory circuit and a coincidence detector for detecting a coincidence between the time count and the stored alarm time for actuating an alarm. The alarm time memory circuit is a pre-settable counter and it is pre-settable to load the present time count in the time counter therein. In this way, a coarse adjustment of the alarm time can be set and a manually operable mechanism is provided to increment the count in the alarm time memory circuit to obtain the precise desired alarm time. There are various types of alarm system available in the market. 1.1 Design Description We go with design of simple pre-settable alarm system with alarm lasting for 5 seconds using 8253/54 timer and 8086 microprocessor without using interrupt. We implement our design with thumbwheel switches to accept 4 digit values in seconds. These switches are interfaced through 8255 ports. .A delay of 5 seconds is provided in between each alarm by means of a delay routine.74LS138 decoder is used to generate chip select signals for 8253/54 and 8255.One more 74LS138 decoder is used to generate , , and EC2308 Microprocessors and Microcontrollers Page 6
  • 7. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) PRE-SETTABLE ALARM SYSTEM 2.1 Block diagram EC2308 Microprocessors and Microcontrollers Page 7
  • 8. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 2.2 Pin diagram and description A. 8253/54 Clock This is the clock input for the counter. The counter is 16 bits. The maximum clock frequency is 1 / 380 nanoseconds or 2.6 megahertz. The minimum clock frequency is DC or static operation. Out This single output line is the signal that is the final programmed output of the device. Actual operation of the outline depends on how the device has been programmed. Gate This input can act as a gate for the clock input line, or it can act as a start pulse, depending on the programmed mode of the counter. EC2308 Microprocessors and Microcontrollers Page 8
  • 9. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) EC2308 Microprocessors and Microcontrollers Page 9
  • 10. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) B. 8255 1 D0 - D7 These are the data input/output lines for the device. All information read from and written to the 8255 occurs via these 8 data lines. 2 (Chip Select Input). If this line is a logical 0, the microprocessor can read and write to the 8255. 3 (Read Input): whenever this input line is a logical 0 and the RD input is a logical 0, the 8255 data outputs are enabled onto the system data bus. 4 (Write Input) Whenever this input line is a logical 0 and the CS input is a logical 0, data is written to the 8255 from the system data bus 5 A0 - A1 (Address Inputs): The logical combination of these two input lines determines which internal register of the 8255 data is written to or read from. 6 RESET The 8255 is placed into its reset state if this input line is a logical 1. All peripheral ports are set to the input mode. EC2308 Microprocessors and Microcontrollers Page 10
  • 11. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 7 PA0 - PA7, PB0 - PB7, and PC0 - PC7: These signal lines are used as 8-bit I/O ports. They can be connected to peripheral devices. 2.3 Signal specification The figure shows interfacing of 8253/54 with 8086 with 16-bit address. Here and signals are activated when M/ signal is low, indicating I/O Bus cycle. To get absolute address, all remaining address lines (A3- A15) are used to decode the address for it. In order to access it we must use indirect addressing modes EC2308 Microprocessors and Microcontrollers Page 11
  • 12. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 2.4 Address map The address map shows how addresses have been allocated for memory and any other devices connected to the address bus. Ports/Control Register Address lines Address A7 A6 A5 A4 A3 A2 A1 A0 Counter 0 0 0 0 0 0 0 0 0 00H Counter 1 0 0 0 0 0 0 1 0 02H Counter 2 0 0 0 0 0 1 0 0 04H Control register 0 0 0 0 0 1 1 0 06H Port A 0 0 0 0 1 0 0 0 08H Port B 0 0 0 0 1 0 1 0 0AH Port C 0 0 0 0 1 1 0 0 0CH Control register 0 0 0 0 1 1 1 0 0EH EC2308 Microprocessors and Microcontrollers Page 12
  • 13. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 2.5 Control Word Format 1. Control word to Read/write value in count register of counter 0 of 8253/54 D7 D6 D5 D4 D3 D2 D1 D0 SC1 SC2 RW1 RW0 M2 M1 M0 BCD 0 0 1 1 0 0 0 1 Control word =31H D0=1 ; BCD count D3, D4, D5=000; Mode: interrupt on terminal count D5, D4=11 ; Read/write lower byte first and then higher byte D7, D6=00 ; Counter 0 2. Control word to Read/write value in count register of counter 1 of 8253/54 D7 D6 D5 D4 D3 D2 D1 D0 SC1 SC2 RW1 RW0 M2 M1 M0 BCD 0 1 1 1 0 1 1 1 Control word =77H D0=1 ; BCD count D3, D4, D5=011; Mode: Square Wave Rate Generator D5, D4=11 ; Read/write lower byte first and then higher byte D7, D6=01 ; Counter 1 EC2308 Microprocessors and Microcontrollers Page 13
  • 14. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 3. Control word to latch value in count register of counter 0 of 8253/54 D7 D6 D5 D4 D3 D2 D1 D0 SC1 SC2 RW1 RW0 M2 M1 M0 BCD 0 0 0 0 0 0 0 1 Control word =01H D0=1 ; BCD count D3, D4, D5=000; Mode: interrupt on terminal count D5, D4=00 ; Counter latch command D7, D6=00 ; Counter 0 4. Control word to latch value in count register of counter 2 of 8253/54 D7 D6 D5 D4 D3 D2 D1 D0 SC1 SC2 RW1 RW0 M2 M1 M0 BCD 1 0 0 0 0 0 0 1 Control word =81H D0=1 ; BCD count D3, D4, D5=000; Mode: interrupt on terminal count D5, D4=11 ; Counter latch command D7, D6=10 ; Counter 2 EC2308 Microprocessors and Microcontrollers Page 14
  • 15. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 4. Control word to latch value in count register of counter 2 of 8253/54 D7 D6 D5 D4 D3 D2 D1 D0 SC1 SC2 RW1 RW0 M2 M1 M0 BCD 1 0 1 1 0 0 0 1 Control word =B1H D0=1 ; BCD count D3, D4, D5=000; Mode: interrupt on terminal count D5, D4=11 ; Read back command in 8254 D7, D6=10 ; Counter 2 5. Control word to INITIALISE 8255: BSR/IO MODE A PA PCH MODE B PB PCL 1 0 0 1 0 0 1 0 Control word =92H BSR/IO=1 ; IO Mode MODE A=00; Mode0 PA=1; Port A=simple input PCH=0, PCL=0; Port C=simple output PB=1; Port B=simple input EC2308 Microprocessors and Microcontrollers Page 15
  • 16. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 3. PROGRAM CODING 3.1 Main Program Coding MOV AL, 92H; Load control word in accumulator OUT 0EH, AL; Initialize 8255 by sending control word at the addresses of Control register START: IN AL, 08H; Get the lower two digit of count MOV BL, AL; Store the lower two digit of the count IN AL, 0AH; Get the higher two digit of count MOV BH, AL; Store the higher two digit of the count MOV AL, 31H OUT 06, AL; Load control word (31H) in the control register to load 16-bit Count in count register of counter 0 MOV AL, BL OUT 00, AL; Loads lower byte of the count MOV AL, BH OUT 00, AL; Loads higher byte of the count BACK MOV AL, 01H; BACK: OUT 06, AL; Load control word (01H) in the control register to load 16-bit Count in count register of counter 0 IN AL, 00H; Get the lower two digit of count CMP AL, 00H; Compare with zero JNZ BACK; Repeat IN AL, 00H; Get the higher two digit of count CMP AL, 00H; Compare with zero JNZ BACK; Repeat BACK; MOV AL, 01H; Load bit pattern to run alarm OUT 0CH, AL; send it to Port C CALL DELAY; Wait for 5 seconds MOV AL, 00H; Load bit pattern to stop alarm OUT 0CH, AL; send it to Port C JMP START; Repeat START; 3.2 Delay Routine EC2308 Microprocessors and Microcontrollers Page 16
  • 17. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) This delay routine gives a delay of 5 seconds. Counter 1 of 8253/54 is used to give delay of 1 second. As output of counter1 is used as a clock for counter2, the count in the counter2 acts as a multiplying factor. Therefore, by loading 05H in the count register of counter 2 we get a delay of (5×1) seconds. MOV AL, 77H OUT 06, AL; Loads control word (71H) in the control register MOV AL, 10H OUT 02, AL MOV AL, 27H OUT 02H MOV AL, B1H OUT 06H, AL MOV AL, 05H OUT 04, AL; Loads lower byte of the count MOV AL, 00H; Loads higher byte of the count OUT 04, AL BACK MOV AL, 81H BACK: OUT 06, AL; Loads control word (81H) in the control register to latch 16-bit count in the count registers of counter 2 IN AL, 04H; Get lower two digits of the count CMP AL, 00H; Compare with zero JNZ BACK If not zero, repeat BACK: IN AL, 04H; Get the higher two digits of the count CMP AL, 00H; Compare with zero JNZ BACK If not zero, repeat BACK: RET; Return to main program EC2308 Microprocessors and Microcontrollers Page 17
  • 18. PRE-SETTABLE ALARM SYSTEM ViniNarayanankutty (11509106086), SubhrataSarangi (11509106074), P.Sowmiya (11509106072) N.Sindhuja (11509106070) 4. CONCLUSION 4.1 Advantages 1. Simple to design. 2. Reduces the need of using Schmitt –trigger NAND gate usually used in alarms. 5. REFERENCES 1 Pre-settable alarm clock-Wikipedia. 2 www.seminarprojects.com 3 Microprocessors and interfacing: Programming and hardware Douglas V. Hall EC2308 Microprocessors and Microcontrollers Page 18