Mechatronics 4
Mechatronics 4
UNIVERSITY
COLLEGE OF ELECTRICAL AND MECHANICAL
ENGINEERING
DEPARTMENT OF MECHANICAL ENGINEERING
MECHATRONICS SYSTEMS
ASSIGNMENT
5/7/2022 GC
Group Members ID
ATM machine has a lot of microprocessors but the main one is Zilog z80 microprocessor made
by USA company Zilog.
The Zilog Z80 family of components are fourth-generation enhanced microprocessors with exceptional
computational power. They offer higher system throughput and more efficient memory utilization than
comparable second- and third-generation microprocessors. The speed offerings from 6–20 MHz suit a
wide range of applications which migrate software. The internal registers contain 208 bits of read/write
memory that are accessible to the programmer. These registers include two sets of six general purpose
registers which may be used individually as either 8-bit registers or as 16-bit register pairs. In addition,
there are two sets of accumulator and flag registers. The CPU is easy to incorporate into a system since it
requires only a single +5V power source. All output signals are fully decoded and timed to control
standard memory or peripheral circuits; the Z80 CPU is supported by an extensive family of peripheral
controllers.
SPECIFICATIONS
Type Microprocessor
CPU part number OEM/troy
Frequency 2.5GHz
Package 40-PIN
Socket DIP 40
Manufacturing process MOS LSI
Manufacturer ZILOG
Physical memory 64 KB
Data 8-bit width
Width 16-bit
Clock frequency 6MHz
EEPROM memory capacity 512B
SRAM memory capacity 16KB
ARCHTECTURE
Clock Generator—Generates system clock from an external crystal or clock input. The
external clock is divided by two or one and provided to both internal and external devices.
Bus State Controller—This logic performs all of the status and bus control activity
Interrupt Controller—This logic monitors and prioritizes the variety of internal and
external interrupts and traps to provide the correct responses from the CPU. To maintain
compatibility with the Z80® CPU, three different interrupts modes are supported.
Memory Management Unit—The MMU allows you to map the memory used by the CPU
organization of the MMU object code allows maintenance compatibility with the Z80
each containing a 16-bit counter (timer) and count reload register. The time base for the
counters is derived from the system clock (divided by 20) before reaching the counter.
individual full-duplex UARTs. Each channel includes a programmable baud rate generator
DMA Controller—The DMA controller provides high speed transfers between memory
and I/O devices. Transfer operations supported are memory-to-memory, memory to/from
I/O, and I/O-to-I/O. Transfer modes supported are request, burst, and cycle steal. DMA
transfers can access the full 1 MB address range with a block length up to 64 KB, and can
Memory
The Z80 uses 8-bit bytes which are stored in memory. These bytes contain both the program that the
processor is executing and the data items that the program is working on. The processor uses 16-bit
addresses to access these bytes So there can be anything up to 64k(65,536) bytes of memory
Figure below shows the timing of memory read or write cycles other than an op code fetch
cycle. These cycles are generally three clock periods long unless wait states are requested
by memory through the WAIT signal. The MREQ signal and the RD signal are used the
same way as in a fetch cycle. In a memory write cycle, the MREQ also becomes active
when the address bus is stable so that it can be used directly as a chip enable for dynamic
memories. The WR line is active when the data on the data bus is stable so that it can be
used directly as a R/W pulse to virtually any type of semiconductor memory. Furthermore,
the WR signal goes inactive one-half T state before the address and data bus contents are
changed so that the overlap requirements for almost any type of semiconductor memory
type is met.