Interfacing Display With MPU: Without Peripheral Controller
Interfacing Display With MPU: Without Peripheral Controller
Outline
Peripheral communications
Display
LED Display
Decoder
Generic model
Interfacing
Graphics monitor
Why graphics? Vector Vs Raster
Introduction
Process
or
R
A
M
Transmission controller
Transmission Controller:
MPU control, Device Control (DMA)
Type of IO mapping
Peripheral (IN/Out), Memory mapped IO (LD/ST,MV)
Format of communication
Synchronous (T & R sync with clock),
Asynchronous
Display
7 Seg
5x7
9 Seg
9x11
16 Seg
3x5 DotMatix
25x80 character
monitor
Data
ASCII/BCD
Decoder
Or
Memory
Time to Decode
Display
Monitor/L
EDs
Time to Display
7 Segment LED
Interfaces
Data to 7 Segment Decoder
5
5
v
a 1
0
b 1
1
f
g 1
LT
c 1
0
e 1
5V
RB
I
BI
d 1
RBO
Decoder
b
f
Common
Cathode
g
e
d
Blank
a b c d e
f g
RBI
RBO
a b c d e
f g
RBI
RBO
a b c d e
f g
RBI
RBO
a b c d e
f g
RBI
RBO
5V a b c d e
RBI
f g
RBO
D C B A
D C B A
D C B A
D C B A
D C B A
0000
000
0
001
1
000
0
011
1
40 Bit data
line
2
01 34
Mod 5
Counter
Data 0
Data 1
Data 2
Data 3
Data 4
8 Bit data
line
Multiplexed line/Memory
used
7 Segment
Decoder
RAM
590
1:N Decoder
Counte
r
Interface Diagram
A7
A6
A5
A4
A3
A2
MPU
IO/
M RD
W
R
Ctr
C
S
A1
A0
Address
line
D7
D6
D5
D4
D3
D2
D1
D0
L
74LS37
E
3
Latches
WR R
D
LEDs
Buffer
Memory
Data
lines
7 Seg.
Decod
er
Monitor program
Interface program to Display content
of B,C,D and E after 1 Sec Delay
DIS:
MVI
A,B
OUT FCH
MVI
A,C
OUT FDH
MVI
A,D
OUT FEH
MVI
A,E
OUT FFH
CALL DELAY
JMP DIS;
;1sec delay
Ctr
0
1 2
0 79
C A T
1
2 F I R E
50Hzx25x80
4 .. 78
23
24
25x80 character
monitor
Decode
r
Or
ROM
Memory
Decode
d Bits
C=0
C
S
Stream
Buffer
Address
(r,c)
Address
line
Count
er
WR
Char
Frame
Buffer
Memory
Data
lines
Speed of Display
LED is very high speed
You can write to LEDs at very high speed
Display meant for to see some thing (Is it good?)
$ a.out
$ a.out > outputfile
$ a.out > /dev/null
0
1 2
0 1023
1
2
Ctr
1024x768x50Hz
4 ..
1024x768 Pixel
LCD
76
7
Frame
Buffer
R B G
8x3=24
Bits
Refresh screen 50
time a Sec
1 Bit Per
Pixels
Pixels on
the
Screen
Graphical representation of 1
bit color
Graphical representation of 15
bit color
Graphical representation of 24
bit color
1- bit color
8-bit color
16-bit
color
Graphics
Vector graphics:
Use geometrical primitives based
on mathematical equations, to
represent images in computer
graphics
Points, Lines, Curve, shapes or
Polygons
Raster Graphics:
Complementary to Vector
Graphics
Representation of images as an
array of pixels
photographic images
Vector graphics
Store the primitives in the FILE
Word, Photoshop, Xfig, GNUPlot, PS,
HTML Tag
Character Vs Font
Points with
Many varieties of font for a character
unit and curve
properties are
stored
Graphics Cards
GPU : specialized processor that
accelerates 3D or 2D graphics
primitives operations
Lots of Floating point operations
Accelerates Primitives
Line, circle, polygon, mesh, projection,
sphere,
Graphics System
3D
application
3D API
Commands
3D API:
OpenGL
CPU-GPU Boundary
DirectX/3D
GPU
Command
Pixel
Assembl
& Data
Location
ed
Vertex
Stream
Stream
Index Primitipolygon, Rastereisat
GPU
Raster
Stream
ve line
ion
Operati
Comma
Assem& points Interpolati
on
nd
blytransformed
on
Rastorized
Pretransfor
med
Vertices
Vertices
Programma
ble
Vertex
Processor
Pretransfor
med
Programma
Fragments
ble
Fragment
Processors
Pixel
Updates
Frame
Buffer
Transfor
med
Fragmen
ts
Graphics System
Vertices
(x,y,z)
Verte
x
Shad
der
Pixel
Shad
der
Memory
System
Vertex
Processi
ng
Pixel
Processi
ng
Texture
Memory
Pixel
R, G,B
Frame
Buffer
Keyboard
Reference
R S Gaonkar, Microprocessor Architecture, Unit II
preface, Chapter 14 and 17
Thanks