micro controller hardware architechture

11
CIT 673 Created by Suriyo ng 1 Micro controller hardware architechture

Upload: jace

Post on 13-Jan-2016

30 views

Category:

Documents


2 download

DESCRIPTION

Micro controller hardware architechture. Scope. Hardware Diagram Operating Mode Architecture installing clock external memory attachment. Pin configuration. MCS51Core CPU Atmel 89S8252. Pins. Address/Port: High address/P2: 8 pins A8-A15 or Port 2 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Micro controller hardware architechture

CIT 673 Created by Suriyong 1

Micro controller hardware architechture

Page 2: Micro controller hardware architechture

CIT 673 Created by Suriyong 2

Scope

• Hardware Diagram • Operating Mode• Architecture• installing clock• external memory attachment

Page 3: Micro controller hardware architechture

CIT 673 Created by Suriyong 3

Pin configuration

MCS51Core CPUAtmel 89S8252

Page 4: Micro controller hardware architechture

CIT 673 Created by Suriyong 4

Pins• Address/Port: High address/P2: 8 pins

• A8-A15 or Port 2 • Address/Data/Port: Low address/Data/P0

• 8 pins• A0-A7/D0-D7/Port 0

• Port: port 1 8 bits• Signal pin

• ALE: Address Latch Enable : • active high, signal to express that the signal is low address at P0

• PSEN: Program Strobe Enable: • active low, signal when access to external program memory

• EA: External Access: • active low, signal to control the CPU to access the external memory

• RST: CPU Reset input• Signal/Alternate function port pin : port 3

• WR: Write signal to external data • RD: Read signal to external data• TXD: Transmit Data, serial communication• RXD: Receive Data, serial communication• External interrupt source and signal

• Clock : pin X1 and X2• Power Supply : VCC:GND

Page 5: Micro controller hardware architechture

CIT 673 Created by Suriyong 5

Page 6: Micro controller hardware architechture

CIT 673 Created by Suriyong 6

Operating Mode

• 1 chip mode • operating use only CPU and its SFR

• Multi-chip mode• when extend or need more peripherals• such as extend external RAM, more I/O

Page 7: Micro controller hardware architechture

CIT 673 Created by Suriyong 7

Architecture• busses

• address bus• data bus

• ports• registers

• register that control CPU operating• clock signals

• hardware connection• Address space• memory address decoding• External Input/output

• address decoding and interfacing• Interrupt Hardware architechture

Page 8: Micro controller hardware architechture

CIT 673 Created by Suriyong 8

BUS• Address BUS

• 16 bit able to decode of 65536 address• Use alternate function of P2 as high address bus• P0 as low address bus and multiplex with data bus• use Address Latch Enable (ALE) signal as multiplex signal• need Latching IC : 74LS373 to latch the low address

• Data bus• 8 bit • alternate function of P0• multiplex with low address bus• first as address, next as data

Page 9: Micro controller hardware architechture

CIT 673 Created by Suriyong 9

External data and program memory accessing

• when external memory is needed use Program Strobe ENable (PSEN) to signal to decode the memory

• when PSEN • low: program memory is accessed and data is

get after Read (RD) signal is active• high: data memory is accessed and data is get

or write after RD or WR signal

Page 10: Micro controller hardware architechture

CIT 673 Created by Suriyong 10

External memory diagram

Page 11: Micro controller hardware architechture

CIT 673 Created by Suriyong 11

CPU Register

• Unable to manipulate directly• PC: Program Counter

• Contain the address of the code

• ALU: Arithmetic Logical Unit• the calculation zone