Beruflich Dokumente
Kultur Dokumente
Operation Chapter 5
A Microprocessor (P)
contains the controller,
ALU and internal
registers
A Microcomputer (C)
contains a
microprocessor, memory
(RAM, ROM, etc), input
and output units
A P and C can deliver
an inexpensive (cost and
hours) solution to a
design problem
Custom circuits are
generally preferred in
areas where very high
speed is necessary, but
they are very costly
2003-2016 Roberto Muscedere
Typical Applications
Microcomputer Architecture
The 68HC11 is set in expanded mode by pulling
MODA and MODB high
This mode allows external memory and I/O
devices to be connected directly to the MPU
busses
Not all the information is shown; still a simple diagram
Ports
A port is a set of pins
on the chip through
which digital
information is
transmitted to and
from the MPU
68HC11 has 5 ports:
A, B, C, D, and E
We are only interested
in ports B and C for
expanded mode
2003-2016 Roberto Muscedere
Ports B and C
Control Bus
Clock Signals
68HC11 uses a single
clock signal known as the
E-clock both internally and
externally
The frequency is
determined by the
external clock
components connected to
EXTAL and XTAL
E-clock is always this
frequency
Maximum external clock is
8MHz; maximum internal
is 2MHz
2003-2016 Roberto Muscedere
Clock Signals
10
WRITE:
Transfers data from internal register to memory (STAA)
Transfers data from internal register to output device
11
Read Operations
Everything is in
reference to
PH2, E-clock
and AS
1. Rising edge of
AS
R/W = 1
Address is set
2. Rising edge of
PH2
PC is
incremented
12
Read Operations
3. Falling edge of AS
Enable selected
devices (RAM,
ROM, I/O)
Port C becomes
an input
13
Read Operations
5. Falling edge of Eclock
When E-clock
goes low, external
memory is
disabled and bus
goes to high-Z
2003-2016 Roberto Muscedere
14
Write Operations
1. Rising edge of
AS
R/W = 0
Address is set
2. Rising edge of
PH2
Nothing
happens
15
Write Operations
3. Falling edge of AS
Enable selected
devices (RAM,
ROM, I/O)
Port C becomes
an output
Data is placed on
port C
16
Write Operations
5. Falling edge of
E-clock
Data on port C
is latched into
selected
memory device
Memory must
commit this
value within
this time
17
Memory
Address
Contents
Mnemonic
Description
$C300
$C301
$C302
$BB
$D7
$5C
ADDA
ADD contents
of $D75C to
Accumulator A
$C303
$C304
$C305
$B7
$D2
$50
STAA
STORE
contents of
Accumulator A
to $D250
$C306
??
????
Next op-code
18
19
Read operation:
a. Rising edge of AS
Increment PC
c. Falling edge of AS
20
Write operation:
a. Rising edge of AS
c. Falling edge of AS
21
22
23
24
Memory Pages
The 64K of memory can be
divided into 256 blocks of 256
addresses
25
26
27
28
29
30
31