Upload
gaurav-sharma
View
214
Download
0
Embed Size (px)
Citation preview
8/19/2019 Lec09.pptx
1/32
Interfacing Display with MPUwithout Peripheral Controller
Dr A Sahu
Dept of Computer Science &Engineering
IIT Guwahati
8/19/2019 Lec09.pptx
2/32
Outline• Peripheral communications
• Display
• LED Display – Decoder
–
Generic model – Interfacing
• Character Display onitor – Decoder
– Generic odel• Graphics monitor
– !hy graphics" #ector #s $aster
•
%eyoard type and Interfaces
8/19/2019 Lec09.pptx
3/32
Introduction
• Peripherals ' (D monitor) *+, spea-er
•Interfaces : IntermediateHardware – Nvidia GPU card !reative "ound
#laster card
•
Processor
$%M
8/19/2019 Lec09.pptx
4/32
&ransmission controller•
Transmission Controller' – MPU control) De0ice Control 3DA4
• Type of I5 mapping – Peripheral 'IN(Out4) emory mapped I5 3LD.ST)#4
• 6ormat of communication – "ynchronous 3T & $ sync with cloc-4)
%synchronous
• ode of Data Transfer
– Parallel) Serial 31A$T4• Condition for data transfer
– Uncond)) Polling) Interrupt) $eady signal)(andsha-e
8/19/2019 Lec09.pptx
5/32
Display
* "eg + "eg ,- "eg ./0 DotMati/
0/* +/,,
Dot Matri/ DisplayPanel 10/23 character
monitor
8/19/2019 Lec09.pptx
6/32
Generic Model 'Data4 ofDisplay
Data%"!II(#!D
DecoderOrMemory
Display
Monitor(56Ds
&ime to Decode &ime to Display
8/19/2019 Lec09.pptx
7/32
* "egment 56DInterfaces
• Data to 7 Segment Decoder
a
7
c
d
e
f
g
!ommon
!athode
a
7
c
f
g
e
d
D
!
#
%
5&
$#I#I
Decoder
08
1
0
0
0
1
0
1
1
10
1
5
0
v
08
1
1
1
1
11
1
5
0
v
$#O
8/19/2019 Lec09.pptx
8/32
Multiple * "egment 56DInterfaces
• Data to 7 Segment Decoder
a c d e f g
D C 2 A
$2I $25
a c d e f g
D C 2 A
$2I $25
a c d e f g
D C 2 A
$2I $25
a c d e f g
D C 2 A
$2I $25
a c d e f g
D C 2 A
$2I $25
*#
8 8 8 8 8 8 88
8 8 ,,
8 8 88
8 , ,,
,8
#lan9
8
#lan9
, ,
8/19/2019 Lec09.pptx
9/32
Multiple/ed line andMemory use
98 2it dataline
: 2it dataline
8 ,; < 9
Data ,Data ;Data
8/19/2019 Lec09.pptx
10/32
Multiple/ed line(Memoryused
7 SegmentDecoder
,'/ Decoder
Counte
r
$A
*=8
8/19/2019 Lec09.pptx
11/32
Interface 56D DisplayUsing Delay
• !rite a program to display contentsof 2)C)D and E register to LED display
• !rite to u>er memory to display to7 Seg+ LEDs
• 1se address 6C ()6D ()6E ( and 66 (to display
8/19/2019 Lec09.pptx
12/32
Interface Diagram
56Ds#uer
Memory
%ddressline
CS
!$ $D
Datalines
Ctr
7 Seg+
Decoder
MPU
A7A?A*A9A<A;
79LS
8/19/2019 Lec09.pptx
13/32
Monitor program
• Interface program to Display contentof 2)C)D and E after , Sec Delay
DIS' #I A)251T 6C(#I A)C51T 6D(#I A)D
51T 6E(#I A)E51T 66(CALL DELA@ ,sec delay
BP DIS
8/19/2019 Lec09.pptx
14/32
Multiple/ed 10/23 !harDisplay
10/23 character
monitor
C A T
6 I $ E
8 , ; < 9 ++ 7:
7=8,;
;<;9
A
Decoder
Or$OM
Memory
Decoded 2its
$ow
!tr
!ol
!tr
!5; <
03H=/10/23
8/19/2019 Lec09.pptx
15/32
Generic Model of !harMonitor
• Delay of onitor is ,.*8 Sec) After E0ery *8Second it ma-es ready
• 6rom stream u>er it writes to 6rame u>er after
getting command+ 36lush stream command4
!har
>rame#uer
Memory
%ddressline
CS
!$
Datalines
Counter
Stream2u>er
!henC8$eady
Address3r)c4
8/19/2019 Lec09.pptx
16/32
"peed of Display• LED is 0ery high speed
– @ou can write to LEDs at 0ery high speed
– Display meant for to see some thing 3Is it good"4
•
8/19/2019 Lec09.pptx
17/32
8/19/2019 Lec09.pptx
18/32
Migration from !har toGraphics(8ideo
• Char display 3:8F;* char)*F7piFel988F,7*4
• C$T onitor 3988F?88)
?98F9:8)?88F:884• LCD onitor 3,8;9F7?:),;:8F,8;9)
4
• Graphics 0isually more appealing• Display Line) Circle) $ectangle)
Cur0e) Polygon – Character using this primiti0es
$EDA$$5! Circle
8/19/2019 Lec09.pptx
19/32
Multiple/ed ,31?/*-2 pi/eldisplay
,31?/*-2 Pi/el
5!D
8 , ; < 9 ++
,8;rame#uer
$efresh screen 03time a "ec
8/19/2019 Lec09.pptx
20/32
>rame #uer ', #itPi/el4: Grey
PiFels in6rame 2u>er
, 2it PerPiFels
PiFels ontheScreen
Graphical representation of ,it color
8/19/2019 Lec09.pptx
21/32
>rame #uer ',0 #itPi/el4
PiFels in6rame 2u>er
PiFels ontheScreen
,* 2it Per PiFels
Graphical representation of ,07it color
8/19/2019 Lec09.pptx
22/32
>rame #uer '1? #itPi/el4
PiFels in6rame 2u>er
PiFels ontheScreen
;9 2it Per PiFels
Graphical representation of 1?7it color
8/19/2019 Lec09.pptx
23/32
,7it 2 7it A ,- 7it color
,H it color :Hit color ,?Hitcolor
8/19/2019 Lec09.pptx
24/32
Graphics
• 8ector graphics: – 1se geometrical primiti0es ased
on mathematical eKuations) torepresent images in computer
graphics – Points) Lines) Cur0e) shapes or
Polygons
• $aster Graphics'Complementary to #ectorGraphics – $epresentation of images as an
array of piFels
– photographic images
8/19/2019 Lec09.pptx
25/32
8ector graphics•
Store the primiti0es in the 6ILE – !ord) Photoshop) g) G/1Plot) PS)
(TL Tag
•
$aster' Store the PiFel 0alues in the6ILE – 2P) P/G) BPG
•
At runtime) process the primiti0eand generate PiFel to raster thescreen 3Display4
• !ho do this" – Software
8/19/2019 Lec09.pptx
26/32
!haracter 8s >ont• Computer font formats' TrueType
6ont – !here each letter is created from 2Mier
cur0es
• any 0arieties of font for a character1nits
Points withunit and cur0eproperties are
stored
8/19/2019 Lec09.pptx
27/32
Graphics !ards
• GP1 ' specialied processor thataccelerates
8/19/2019 Lec09.pptx
28/32
8/19/2019 Lec09.pptx
29/32
Graphics "ystem
Memory"ystem
&e/tureMemory
>rame#uer
8erte/Processi
ng
Pi/elProcessi
ng
8ertices'/y=4
Pi/el$ G#
8erte/
"hadder
Pi/el"hadder
8/19/2019 Lec09.pptx
30/32
;ey7oard
8/19/2019 Lec09.pptx
31/32
$eference• $ S Gaon-ar) Oicroprocessor Architecture) 1nit II
preface) Chapter ,9 and ,7
8/19/2019 Lec09.pptx
32/32