RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.

Similar documents
UNIT 3 THE 8051-REAL WORLD INTERFACING

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Lecture-50 Intel 8255A: Programming and Operating Modes

8051 Advance Trainer

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

DS1306. Serial Alarm Real Time Clock (RTC)

PARALLEL COMMUNICATIONS

DEV-1 HamStack Development Board

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.


2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

UNIT - II PERIPHERAL INTERFACING WITH 8085

TS2043 Preliminary CMOS IC

Bachelor of Engineering in Computer and Electronic Engineering

EMB128. ere co., ltd.

WM1030 Rev Introduction. Ultra low power DASH7 Modem. Applications. Description. 868 / 915 MHz. Features. WIZZILAB Technical datasheet 1/10

Address connections Data connections Selection connections

AVR Board for Projects is the Most Complete Simple to use Development Board For ATmega32 Product Datasheet

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

GRAVITECH GROUP

ZKit-51, 8051 Development Kit

DS1305EN. Serial Alarm Real-Time Clock

Sanguino TSB. Introduction: Features:

2 in 1. BigAVR User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

DM-OLED X 64 BLUE GRAPHIC OLED DISPLAY MODULE WITH SPI, I2C INTERFACE

Dual Interface LCD Display Controller

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

SSD1316. Advance Information. 128 x 39 Dot Matrix OLED/PLED Segment/Common Driver with Controller

Chapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12

RAiO RA x33 Dot Matrix LCD Driver Specification. Version 1.1 March 2, RAiO Technology Inc. Copyright RAiO Technology Inc.

BV4542. I2C or Serial 16x2 with Keypad interface

SSD1309. Advance Information. 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

More PIC Programming. Serial and parallel data transfer External busses Analog to digital conversion

Memory & Simple I/O Interfacing

8. SED1565 Series. (Rev. 1.2)

Home Security System with Remote Home Automation Control

ECE 372 Microcontroller Design

Type Version Ordering Code Package PEB 2025-N V 1.5 Q67100-H6300 P-LCC-28-R (SMD) PEB 2025-P V 1.5 Q67100-H6241 P-DIP-22

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka

SSD1327. Advance Information. 128 x 128, 16 Gray Scale Dot Matrix OLED/PLED Segment/Common Driver with Controller

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

DS1305 Serial Alarm Real Time Clock (RTC)

DS1305. Serial Alarm Real Time Clock (RTC) FEATURES PIN ASSIGNMENT ORDERING INFORMATION

CEIBO FE-5111 Development System

DS1306 Serial Alarm Real-Time Clock

DS1305EN. Serial Alarm Real-Time Clock

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS

Dallas Semiconductor DS1307 Real Time Clock. The DS 1307 is a real-time clock with 56 bytes of NV (nonvolatile)

ECE 480 Team 5 Introduction to MAVRK module

Topics. Interfacing chips

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

SN8200 LI+ DUAL BATTERY CONTROLLER

Hardware Reference. PNP/5280 Board Revision 1.0

SSD1305. Advance Information. 132 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

AZ DISPLAYS, INC. SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY DATE: July 1, Page 1 of 13

4 Multiplexer. Y Fig Keyboard Scan Matrix

TL0313. LCD driver IC. Apr VER 0.0. lsi. ( 5.5V Specification ) 65COM / 132SEG DRIVER & CONTROLLER FOR STN LCD. TOMATO LSI Inc.

Crystal Technology, Inc.

8051 Training Kit Lab Book

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

SSD1322. Product Preview. 480 x 128, Dot Matrix High Power OLED/PLED Segment/Common Driver with Controller

SSD1329. Advance Information. 128 x 128 OLED Segment / Common Driver with Controller Equips with 16 Gray Scale Levels and 64 Hard Icon Lines

Module 12: Elementary Input/Output

GRAVITECH GROUP

US x 32 OLED/PLED Segment/Common Driver with Controller For 20x4 Characters.

Bolt 18F2550 System Hardware Manual

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks)

2 in 1. EasyAVR4 User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Effective Utilization of a Microcontroller Port for Optimisation of Hardware

DS1670 Portable System Controller

DS1673 Portable System Controller

RA8802/8820. Character/Graphic LCD Controller. Specification RA8802/8820. Version 1.1. April 26, 2004

Chapter 1: Basics of Microprocessor [08 M]

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

Microcontroller. BV523 32bit Microcontroller. Product specification. Jun 2011 V0.a. ByVac Page 1 of 8

Shanghai Belling Corp., Ltd BL55077 zip: Tel: Fax:

SSD1307. Advance Information. 128 x 39 Dot Matrix OLED/PLED Segment/Common Driver with Controller

DS1305 Serial Alarm Real-Time Clock

Locus Engineering Inc

Microcontrollers and Interfacing week 10 exercises

9. PERIPHERAL CHIPS 9a

BATSEL KEY3 KEY2 HOSCO GPIO0 DCDIS HOSCI KEY0 D4 KEY1 D3. Reset Default. 2 D7 BI / L Bit7 of ext. memory data bus

DTMF BASED INDUSTRIAL AUTOMATION

SSD1306. Advance Information. 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

HDS Series I2C Application Notes

HFRD REFERENCE DESIGN High-Frequency XFP Host Board. Reference Design: (Includes Integrated RS-232 to I 2 C Conversion)

An 80C31-Controlled Power Supply

Instructions Involve a Segment Register (SR-field)

SSD1329. Advance Information. 128 x 128 OLED Segment / Common Driver with Controller Equips with 16 Gray Scale Levels and 64 Hard Icon Lines

Demo 8 - Programmable Timer. Introduction:

DS1677 Portable System Controller

ECE383: Microprocessors Lab 9 Analog-to-Digital and Digital-to-Analog Conversion with I 2 C Serial EEPROM Data Storage

MSI-P400 PC/104 QUADRATURE DECODER/COUNTER CARD. PC/104 Embedded Industrial Analog I/O Series. Microcomputer Systems, Inc.

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

Lecture 5: Computing Platforms. Asbjørn Djupdal ARM Norway, IDI NTNU 2013 TDT

ElectronFlux USB Module

Transcription:

RTC Interface 89C51 Vcc P1.0 10k 10k 5 SDA DS 1307 8 VCC P1.1 6 SCL X1 1 + 3 BAT X2 2 32.768KHz - 3.6V 4 GND INTB\SQW 7 M. Krishna Kumar MAM/M7/LU17/V1/2004 1

RTC Interface contd. DS 1307 is a real time clock chip Maintains real time clock once powered up Year, Month, Day, Time in hours, Minutes and seconds can be written into or read out serially Has 56 bytes of data space to save or retrieve data of importance like settings Consumes very low power2or 3 uw @ 32.768KHz with a backup battery of 2.5 to 3.6V Has SDA, SCL pins to send data and clock respectively SDA, SCL are directly interfaced to I/O pins of 89C51 M. Krishna Kumar MAM/M7/LU17/V1/2004 2

Keyboard Interface-1 8 9 C 5 1 P2.0 P2.7 1 11 3 18 4 17 7 14 8 18 74374 EN C1 Vcc 2 19 5 16 6 15 9 12 KEY MATRIX 7408 7486 7400 ROW0 ROW1 ROW7 KY CS R0\ WR\ +5V 7430 7486 1 2 3 COL-1 COL-2 COL-6 1 2 3 4 5 6 14 P10 P11 P12 P13 P14 P15 INT1 8 9 C 5 1 M. Krishna Kumar MAM/M7/LU17/V1/2004 3

Keyboard Interface-1 contd Outputs 8 bit row code (0FEH, 0FDH etc.,) on port0 Interrupts micro-controller when a key is pressed Interrupt software to find which column and key is pressed M. Krishna Kumar MAM/M7/LU17/V1/2004 4

Keyboard Interface -2 89C51 + 74F138 10uF P1.7 P1.6 P1.5 ALE V cc A2 A1 A0 E3 E2 O2 74C922 X4 X3 X2 X1 KBM RD INT1 E1 OE Data Available Y1 Y2 Y3 Y4 0 1 2 3 4 5 6 7 8 9 A B C D E F AD3-AD0 4 bit D--A + 0.01uF M. Krishna Kumar MAM/M7/LU17/V1/2004 5

Keyboard Interface-2 contd 74C922 is a 16 key encoder that performs keypad scanning and de-bouncing When key is pressed it outputs a 4 bit code When interfaced to micro-controller, it reads the code through its port pins Has key De-bouncing and key mask features It has a data available output that interrupts the micro-controller Interrupt software to find the key pressed M. Krishna Kumar MAM/M7/LU17/V1/2004 6

Keyboard Interface-3 10Kohms each MC14051 89C51 X7 inhibit X6 5V X5 X4 X INT1 X3 X2 C P1.5 X1 B P1.4 X0 A P1.3 74ALS138 C B A P1.2 P1.1 P1.0 M. Krishna Kumar MAM/M7/LU17/V1/2004 7

Keyboard Interface-3 contd The circuit interfaces 64 keys It consists of 14051 a 8:1 multiplexer and 74138 a 3:8 decoder When a key is pressed 89C51 is interrupted The 3 bit input of multiplexer and 3 bit input of the decoder gives the key code which is read in the interrupt routine M. Krishna Kumar MAM/M7/LU17/V1/2004 8

Serial ADC Interface 89C511 ADC 1031 5V P1.5 S CLK VCC P1.6 D0 VRF P1.7 CS Vin Analog Input 1 MHz C CLK C CLK GND M. Krishna Kumar MAM/M7/LU17/V1/2004 9

Serial ADC Interface contd ADC1031 from National semiconductor is a 10 bit ADC with Serial interface Conversion time is 13.7 us @ 3MHz. Conversion starts as soon as CS is enabled External clock 1MHz is connected to C CLK M. Krishna Kumar MAM/M7/LU17/V1/2004 10

Serial DAC Interface 5V 0.1uF 10uF 1K 1K V IN 89C51 AD7703 P4.0 SCLK V DD V OUT A + fail P4.1 DIN LM393A Pass P4.2 SYNC GND V OUT REF B + LM393A 74HC05 0.1uF M. Krishna Kumar MAM/M7/LU17/V1/2004 11

Serial DAC Interface contd AD7303 is dual channel 8 bit DAC Has 16 bit input registers, 8 bit for data and 8 bit for control Out put voltage = 2 x Vref x N 255 Interface is shown to realize window detector If the data is between upper limit and lower limit pass LED glows else fail LED glows M. Krishna Kumar MAM/M7/LU17/V1/2004 12

Battery Backup 230Vac Power supply +12Vdc +5Vdc Trickle- Charge Circuit 1N194 diode 10 K MAX690 2 Vcc Vcc of 89C51 4.8 V Ni-Cad battery Varta Aafetronic (100 mah) + 8 Vbatt Vout 1 Reset 7 Vcc of memory Vss 3 Reset M. Krishna Kumar MAM/M7/LU17/V1/2004 13

Battery Backup Max 690 is a battery switchover/reset generator chip It provides a voltage thresh hold mechanism for bringing the chip out of reset at startup and for returning it to reset at power down The reset out is connected to the reset pin of 89C51 through an inverter V OUT is connected to the Vcc of any memory chip which requires battery back up M. Krishna Kumar MAM/M7/LU17/V1/2004 14

Serial Interface 89C51 +12V +5V 1 16 TX 14 V DD D V CC 1488 3 Transmitted data RX 15 1489 R 2 Received data 89C51 TX Vss GND 8 9-12V 11 Max 232 D 1 6 16 14 +5V Transmitted data RX 22uf 22uf + + 10 1 3 2 R 15 7 4 5 6 + + 22uf 22uf Received data M. Krishna Kumar MAM/M7/LU17/V1/2004 15

Serial Interface RS 232 interface can be realised with 1488 (transmitter) and 1489 (receiver) level translator Ics These ICs require +\- 12V supplies Max 232 IC require only 5V and four external capacitors M. Krishna Kumar MAM/M7/LU17/V1/2004 16

LCD Interface 89C51 74F138 P2.7/A15 P2.6/A14 P2.5/A13 ALE V CC A 2 A 1 A 0 E 3 E 2 E 1 LM015 WR R\W 74F373 AD7-AD0 LE D7-D0 O0 OE RS DB7-DB0 M. Krishna Kumar MAM/M7/LU17/V1/2004 17

LCD Interface LCD module LM015 displays one line of 16 characters. LM015 is initialized with some command words through its control register The data to be displayed is written into its data register in ASCII format RS pin distinguishes the control and data registers when E is logic high M. Krishna Kumar MAM/M7/LU17/V1/2004 18

LED Interface-1 +5V MC14489 V CC A B C 8 D 3.6K R X E F G H 8 8 8 8 8 89C51 P1.2 P1.1 P1.0 Data IO Clock Enable Bank 5 Bank 4 Bank 3 Bank 2 Bank 1 M. Krishna Kumar MAM/M7/LU17/V1/2004 19

LED Interface-1 MC14489 is a multi character LED driver With out additional ICs 89C51 can be interfaced to drive five 7 Segment LED displays. 24 bit data is serially transmitted to the the driver by the 89C51 to display five digits with decimal point option MC14489s can be cascaded for more number of displays The brightness is controlled by the external resister 3.6K M. Krishna Kumar MAM/M7/LU17/V1/2004 20