ECR Machine
ECR Machine
Register
(Based on 89C51RD2
Microcontroller)
Under the supervision of
Mr. Arvind Toshniwal
(Arun Infotech Pvt. Ltd. Pune)
Ms. Preeti Salunkhe
(ICIT Pvt. Ltd. Pune)
Presented by
Gaurav Sharma
Gopinath Sridara
Mohit Kumar Rawat
AIM & OBJECTIVE
Aim:
Self-design and self-development of “Electronic Cash Register”
with two user operating modes:
Printing Mode
Setup Mode
Objective:
Printing the bill for the customer in detailing about the
purchases he/she made.
Printing details are names of the items, quantity of the item,
cost of the each item, Sub Total cost of the each item, & grand
total with time, day & date of the purchase as well as welcome
note & greetings.
OVERVIEW OF THIS PROJECT
We have designed a Electronic Cash Register. We have selected
89C51RD2 microcontroller as a platform. So the interfacing
modules (with microcontroller) of this ECR are as follows:
Interfacing Modules
89C51RD2
EEPROM Display Unit
RTC Keyboard
I2C
MICROCONTROLLER 89C51RD2
Basic Features:
80C51 Central Processing Unit
On-chip Flash Program Memory with ISP capability
Boot ROM contains low level Flash programming routines for
downloading via the UART
6 clocks per machine cycle operation (standard)
12 clocks per machine cycle operation (optional)
RAM expandable externally to 64 kB
4 level priority interrupt
8 interrupt sources
Four 8-bit I/O ports
Full-duplex enhanced UART
What is I2C Protocol
?
I2C PROTOCOL
Two-wired bus
Serial data line (SDA)
Serial clock line (SCL
Originally to interact within small num. of devices
Speeds:
100 kbps (standard mode)
400 kbps (fast mode)
3.4 Mbps (high-speed mode)
Data transfers: serial, 8-bit oriented, bi-directional
Master/slave relationships with multi-master option (arbitration)
Master can operate as transmitter or receiver
BASIC FRAMES
Start Condition
SDA 1-0 transition
when SCL = 1
Pin Description
RS (Rate Select):
These bits control the freq. of the square wave output when the square
wave output has been enabled.
RTC AND RAM Address Map
DS1307 TIMEKEEPER REGISTERS
RTC READ
RTC Write
2-Wire Serial EEPROM
512K (65,536 x 8)
2-wire Serial EEPROM
512K (65,536 x 8)
•Low-voltage and Standard-voltage Operation
– 2.7 (VCC = 2.7V to 5.5V)
– 1.8 (VCC = 1.8V to 3.6V)
• Internally Organized 65,536 x 8
• 2-wire Serial Interface
• Schmitt Triggers, Filtered Inputs for Noise Suppression
• Bidirectional Data Transfer Protocol
• 1 MHz (5V), 400 kHz (2.7V) and 100 kHz (1.8V) Compatibility
• Write Protect Pin for Hardware and Software Data Protection
• 128-byte Page Write Mode (Partial Page Writes Allowed)
• Self-timed Write Cycle (5 ms Max)
• High Reliability
– Endurance: 100,000 Write Cycles
– Data Retention: 40 Years
• Automotive Grade, Extended Temperature and Lead-free/Halogen-free
LCD (HD44780)
16*2 Character Display
LCD Hitachi HD44780
16x2 character by line display