Professional Documents
Culture Documents
Ch-02 โครงสร้างระบบคอมพิวเตอร์
Ch-02 โครงสร้างระบบคอมพิวเตอร์
Ch-02 โครงสร้างระบบคอมพิวเตอร์
โครงสร้ างระบบคอมพิวเตอร์
Organization of Computer System
Contents
การทางานของเครื่องคอมพิวเตอร์
ระบบสั ญญาณและการจัดเก็บข้ อมูลภายในเครื่องคอมพิวเตอร์
มาตรฐานการอ้ างอิงรหัสบนระบบคอมพิวเตอร์
หน่ วยโครงสร้ างพืน้ ฐานของคอมพิวเตอร์
อุปกรณ์ สนับสนุนการใช้ งานคอมพิวเตอร์
2
2.1 การทางานของเครื่ องคอมพิวเตอร์
ก่อนที่เราจะนาเครื่ องคอมพิวเตอร์
มาใช้ประโยชน์ในงานด้านใด ๆ ก็
ตาม ผูใ้ ช้จาเป็ นอย่างยิง่ ที่จะต้อง
เลือกใช้เครื่ องคอมพิวเตอร์ที่มี
ความสามารถเหมาะสมกับงานแต่
ละประเภท เราจึงควรจะทราบถึง
ส่ วนประกอบเบื้องต้นของเครื่ อง
คอมพิวเตอร์เพื่อเป็ นพื้นฐานใน
การทางาน
3
2.1 การทางานของเครื่ องคอมพิวเตอร์
4
2.1 การทางานของเครื่ องคอมพิวเตอร์
2 หน่ วยประมวลผลกลาง(CPU)
3.1
3.1 หน่ วยความจาหลัก(Main
3 Memory)
3.2 หน่ วยความจาสารอง
(Secondary Memory)
3.2 4 หน่ วยแสดงผล(Output Unit)
5
2.2 ระบบสัญญาณและการจัดเก็บข้ อมูล
ภายในเครื่องคอมพิวเตอร์
เครื่ องคอมพิวเตอร์ทางานด้วยกระแสไฟฟ้ า จึงอาศัยคุณสมบัติของสัญญาณไฟฟ้ า
ซึ่งมี 2 สถานะ คือ เปิ ดและปิ ด ( On/Off ) สาหรับนามาสร้างสัญลักษณ์ต่าง ๆ
เพื่อใช้งานบนคอมพิวเตอร์ จึงเรี ยกว่าระบบเลขฐานสอง (Binary System)
ในที่น้ ีคาว่า “สัญลักษณ์” หมายถึง
ตัวอักษร (character)
ตัวเลข (numeric)
เครื่ องหมายวรรคตอน (punctuation mark)
สัญลักษณ์พิเศษต่าง ๆ
on 1 1 1 1 1
off 0 0 0 0 0
6
2.2 ระบบสัญญาณและการจัดเก็บข้ อมูล
ภายในเครื่องคอมพิวเตอร์
บิต (Bit) 1
8
2.2 ระบบสัญญาณและการจัดเก็บข้ อมูล
ภายในเครื่องคอมพิวเตอร์
คานาหน้าเพื่อกาหนดปริ มาณของข้อมูลทางคอมพิวเตอร์
Prefix คาอ่ าน จานวน
K Kilo ( กิโล ) 210 = 1,024
M Mega ( เมกะ ) 220 = 210 210
G Giga ( กิกะ ) 230 = 220 210
T Tera ( เทอรา ) 240 = 230 210
P Peta ( เพทตะ ) 250 = 240 210
9
2.3 มาตรฐานการอ้ างอิงรหัสบนระบบคอมพิวเตอร์
10
2.3 มาตรฐานการอ้ างอิงรหัสบนระบบคอมพิวเตอร์
11
2.3 มาตรฐานการอ้ างอิงรหัสบนระบบคอมพิวเตอร์
ยูนิโค้ ด ( Unicode )
เนื่องจากความต้องการที่จะใช้ประโยชน์จากคอมพิวเตอร์มีแนวโน้มสูงขึ้น สร้าง
ขึ้นมาเพื่อรองรับสัญลักษณ์แบบต่าง ๆ อย่างเพียงพอกับภาษาและวัฒนธรรมทาง
สังคมของชนชาติน้ นั ๆ ดังนั้นรหัสยูนิโค้ดจึงถูกพัฒนาขึ้นโดยองค์กรกาหนด
มาตรฐานสากล ( ISO : International Organization for Standardization )
ซึ่งเป็ นรหัสขนาด 16 บิต ทาให้มีรหัสรองรับสัญลักษณ์แบบต่าง ๆ ได้ถึง 65,536
แบบ ( 216 = 65,536 ) โดยรวมรหัสแอสกีไว้ดว้ ยเรี ยกว่า ยูทีเอฟ-8 ( UTF-8 :
Unicode Transformation Formats )
รู ปแบบการเข้ารหัส (Character Encoding Scheme) แบบยูนิโค้ด มีดว้ ยกัน 7 แบบ
คือ UTF-8 , UTF-16 , UTF-16BE , UTF-16LE , UTF-32 , UTF-32BE , UTF-
32LE
12
2.3 มาตรฐานการอ้ างอิงรหัสบนระบบคอมพิวเตอร์
13
2.4 หน่ วยโครงสร้ างพืน
้ ฐานของคอมพิวเตอร์
2. Processing Unit
3. Memory Unit
1 4
4. Output Unit/Device 3.1
3
3.2
14
บัส : BUS
Data Bus
System Bus
Address Bus
Control Bus
15
Data bus
Data Bus หรือ Bus ข้ อมูลจะทาหน้ าทีใ่ นการกาหนดเส้ นทางการเคลือ่ นทีข่ องข้ อมูล
ระหว่ างโมดูลในระบบ ตามปรกติแล้ วบัสมีขนาด 8 ,16,32 เส้ น ซึ้งใช้ ในการอ้ างอิงความ
กว้ างของช่ องสั ญญาณ(Bandwidth) ในแต่ ละเส้ นจะเก็บข้ อมูลได้ 1 บิตในหนึ่งช่ วงเวลา
จานวนของเส้ นจะเป้นตัวกาหนดว่ ามีจานวนบิตเท่ าไรที่สามารถส่ งได้ ในหนึ่งช่ วงเวลา
Ex. เช่ นดาต้ าบัสมีขนาด 8 บิต แต่ คาสั่ งมีความยาว 16 บิต ดังนั้นระบบจะต้ องทาการเอก
เซสหน่ วยความจา 2 รอบต่ อหนึ่งคาสั่ ง
CUP Input/Output
(ALU,Register, Memory
Control) (I/O)
System Bus
Data Bus
Address Bus
Control Bus
16
Address bus
บัสตาแหน่ ง ออกแบบมาเพือ่ เป็ นแหล่งเก็บ (Source and Destination) ข้ อมูลในดาต้ าบัสทีจ่ ะใช้ ส่ง
ตาแหน่ งของข้ อมูลทีต่ ้ องการไปยังหน่ วยความจา
ขนาดของ Address Bus จะเป็ นตัวกาหนดขนาดความจุของหน่ วยความจาในระบบ เช่ น Processors มี
เส้ น Address จานวนมากก็จะทาให้ สามารถอ้ างอิงหน่ วยความจาได้ มากด้ วย เช่ น CUP 8088 มีเส้ น
Address Bus จานวน 20 เส้ นดังนั้นจึงสามารถอ้ างถึงหน่ วยความจาได้ 1 Mb (220) = 1024 x 1024
Ex. Pentium มีเส้ น Address Bus = 32 เส้ น จึงอ้ างถึงหน่ วยความจาได้ 4 Gb
นอกจากนั้นแล้ว Address bus ยังใช้ ในการกาหนดตาแหน่ งของ I/O Port อีกด้ วย
CUP Input/Output
(ALU,Register, Memory
Control) (I/O)
System Bus
Data Bus
Address Bus
Control Bus
17
Control bus
Control Bus หรือบัสควบคุม จะใช้ ในการควบคุมการ Access การใช้ งาน Data Bus และ
Address Bus คอนโทรลบัสจะควบคุมทั้งการควบคุมสั ญญาณทั้งคาสั่ ง (command) และ
เวลา(Timing) ระหว่ างโมดูลในระบบโดยทีส่ ั ญญาณ Timing จะเป็ นตัวบ่ งชี้ข้อมูลและ
ตาแหน่ ง ในขณะที่ Command จะเป็ นตัวระบุการปฎิบัตงิ าน
CUP Input/Output
(ALU,Register, Memory
Control) (I/O)
System Bus
Data Bus
Address Bus
Control Bus
18
2.4 หน่ วยโครงสร้ างพืน
้ ฐานของคอมพิวเตอร์
2 หน่ วยประมวลผลกลาง(CPU)
3.1
3.1 หน่ วยความจาหลัก(Main
3 Memory)
3.2 หน่ วยความจาสารอง
(Secondary Memory)
3.2 4 หน่ วยแสดงผล(Output Unit)
19
หน่ วยรับข้ อมูล : Input Unit / Device
microphone PC camera
keyboard
mouse
scanner
digital
camera
20
หน่ วยประมวลผลกลาง : CPU (Central Processing Unit)
21
หน่ วยประมวลผลกลาง : CPU (Central Processing Unit)
22
หน่ วยประมวลผลกลาง : CUP (Central Processing Unit)
CPU ประกอบด้ วย
ALU (Arithmetic Logic Unit)
CU (Control Unit)
CPU
23
CUP (Central Processing Unit)
24
ALU : Arithmetic Logic Unit
Arithmetic
(addition, subtraction, Logical
multiplication, and (AND, OR,
division) NOT)
25
CU : Control Unit
26
CUP (Central Processing Unit)
e-time i-time
27
CUP (Central Processing Unit)
100 x
An example of a machine cycle
52
Student enters math
problem (100 x 52)
into computer’s
memory
Result in memory
displays on
monitor’s screen
28
CUP (Central Processing Unit)
29
CUP (Central Processing Unit)
32
CPU รุ่ นต่ างๆ ที่มีในตลาดบ้ านเรา
33
Memory
34
Main Memory
35
ชนิดของหน่ วยความจา RAM
36
Cache Memory
37
Secondary Memory
38
Storage
What is storage?
Media and devices used to store and retrieve data,
instructions, and information
39
Memory Versus Storage
40
Memory Versus Storage
Contents of
storage
retained when
power is off
41
Memory Versus Storage
ความสัมพันธ์ระหว่าง
ราคาและความเร็ วของ
หน่วยความจา Memory
(RAM)
Hard
cost Disk speed
Compact
Disc
Floppy Disk
Tape
42
อุปกรณ์ เก็บข้ อมูลโดยคุณสมบัตขิ องสื่ อแม่ เหล็ก
(Magnetic Storage System)
ดิสเก็ตต์ และ ดิสไดรว์ (Diskette and Disk drive)
ฮาร์ดดิสก์ และ ฮาร์ดไดรว์ (Hard disk and Hard drive)
ซิ ปดิสก์ และ ซิ ปไดรว์ (Zip disk and Zip drive)
เทป และ เทปไดรว์ (Tape and Tape drive)
43
Floppy Disks
44
Floppy Disks
liner
shutter
metal
hub
magnetic flexible
shell coating thin film
45
Floppy Disks
Two floppy
drives
drive A
drive B
46
Floppy Disks
47
Floppy Disks
48
Floppy Disks
What is formatting?
Process of preparing disk for reading and writing
Formatting marks bad sectors as unusable
49
Floppy Disks
notch open
means you
cannot write
on the disk write-protected
not write-
notch closed
protected
means you
can write on
the disk
50
Hard Disks
High-capacity storage
Consists of several
inflexible, circular platters
that store items
electronically
Components enclosed in
airtight, sealed case for
protection
hard disk
installed in
system unit
51
Hard Disks
Step 1 Step 2
4: Head actuator
positions
read/write head
arms over correct
location on
platters to read or
write data
Step 3
Step 4
52
Hard Disks
53
Compact Discs (CD)
54
Compact Discs (CD)
56
What is Output?
What Is output?
Data that has been
processed into a
useful form, called
information
text
graphics
video
audio
57
What Are Output Devices?
monitor speakers
printer
58
Display Devices
59
Display Devices
60
Display Devices
Step 5
Step 6
61
Printers
What is a printer?
Output device that produces text and graphics on paper
Result is hard copy, or printout
62
Dot-matrix Printer
63
Line Printer
64
Ink-jet Printer
65
Laser Printer
66
Laser Printer
67
The End and Questions?
68