Introduction to Computer ชนิดของคอมพิวเตอร์ คอมพิวเตอร์แบ่งตามลักษณะข้อมูล 1. อนาลอกคอมพิวเตอร์ (Analog Computer) ทางานโดยการนาค่าตัวแปรที่ต่อเนื่อง เช่น ค่าแรงดัน ไฟฟ้ าในวงจรมาใช้ในการคานวณ ลักษณะข้อมูลเป็ น แบบ continuous data 2.
Download ReportTranscript Introduction to Computer ชนิดของคอมพิวเตอร์ คอมพิวเตอร์แบ่งตามลักษณะข้อมูล 1. อนาลอกคอมพิวเตอร์ (Analog Computer) ทางานโดยการนาค่าตัวแปรที่ต่อเนื่อง เช่น ค่าแรงดัน ไฟฟ้ าในวงจรมาใช้ในการคานวณ ลักษณะข้อมูลเป็ น แบบ continuous data 2.
Introduction to Computer ชนิดของคอมพิวเตอร์ คอมพิวเตอร์แบ่งตามลักษณะข้อมูล 1. อนาลอกคอมพิวเตอร์ (Analog Computer) ทางานโดยการนาค่าตัวแปรที่ต่อเนื่อง เช่น ค่าแรงดัน ไฟฟ้ าในวงจรมาใช้ในการคานวณ ลักษณะข้อมูลเป็ น แบบ continuous data 2. ดิจิตอลคอมพิวเตอร์ (Digital Computer) ทางานโดยการนาค่าที่เป็ นเลขโดด เช่น เลขฐานสองมา ใช้ในการคานวณ ลักษณะข้อมูลเป็ นแบบ discrete data 3. ไฮบริ ดคอมพิวเตอร์ (Hybrid Computer) คอมพิวเตอร์ แบ่ งตามวัตถุประสงค์ การใช้ งาน 1. Special purpose computer 2. General purpose computer คอมพิวเตอร์ แบ่ งตามขนาด ราคา และขีดความสามารถ 1. Supercomputer 2. Mainframes 3. Minicomputer 4. Microcomputer 10 million Supercomputer 1 million Mainframe 100,000 Cost 10,000 (US$) 1,000 100 Mini Micro 10 0 Increasing system performance ส่ วนประกอบของระบบคอมพิวเตอร์ ระบบคอมพิวเตอร์ที่ใช้กนั อยูท่ วั่ ไปจะสามารถ ทางานได้อย่างสมบูรณ์ จะต้องประกอบด้วยสิ่ งต่อไปนี้ 1. ฮาร์ดแวร์ (HARDWARE) 2. ซอฟท์แวร์ (SOFTWARE) 3. พีเพิลแวร์ (PEOPLEWARE) The hierarchy of abstraction in the hardware of a typical personal computer ประโยชน์ ของคอมพิวเตอร์ คอมพิวเตอร์ได้ถูกนามาใช้งานในวงการต่างๆ มากมาย ทั้งภาครัฐและธุรกิจของเอกชน ซึ่ งอาจแบ่งเป็ นลักษณะที่สาคัญ ได้ 4 ประเภท ดังนี้ 1. งานบารุ งรักษาแฟ้ มข้อมูล (File Maintenance Application) 2. ระบบงานสารสนเทศ (Information System Application) 3. การใช้คอมพิวเตอร์สาหรับงานคานวณ (Mathematical Processing Application) 4. การใช้คอมพิวเตอร์สาหรับงานวิจยั และแก้ปัญหา ตางๆ ่ การใช้คอมพิวเตอร์ทางาน File Maintenance จะเกี่ยวข้อง กับการใช้คอมพิวเตอร์ในการทาหน้าที่ต่อไปนี้ • Edit data • Add (Insert) record • Delete record • Update data • Sort data • Search record • Select data • Reports Learning About Your Computer Hardware Monitor System Unit (CPU) Keyboard Floppy Disk drive Mouse Another way of looking at a computer is the Box that contains everything - the main system board (motherboard) - CPU: Central processing unit - BIOS: Basic Instruction Operating System - RAM (Random Access Memory) - System Bus - Expansion slots PC Motherboard INSIDE THE COMPUTER BOX Motherboard INSIDE THE COMPUTER BOX Motherboard การทางานของคอมพิวเตอร์ Input การรับข้ อมูลและคาสั่ ง Process การประมวลผล Output การนาเสนอผลลัพธ์ Expansion Slots PCI ISA RAM Slots Boards, Cards Modem, sound, ethernet, video... Central Processing Unit (CPU) is the “brain” of the computer. It has two components: - The Central Unit or Control Unit and - The Arithmetic Logic Unit (ALU). CPU=Control Unit +ALU The Control Unit: - coordinates the operation of all the other components. The ALU: - all arithmetic calculations and logical decisions. CPU and Programs Program is an instruction to the CPU Compatibility Not all software is compatible with any given CPU. New processors of the same family run older software. New software is not usually compatible with old processors. CPU Speed •Speed is determined by the internal clock of a computer. •Speed of a computer’s CPU is measured in Megahertz. •The architecture of a computer determines its speed. •One cannot compare speeds across different architectures. Communication devices CPU Control Unit Arithmetic & Logic Unit Input Unit Data Control Memory Unit Secondary storage Output Input Unit Unit Primary Storage Section Input Storage Area Program Storage Area Working Storage Area Output Storage Area Arithmetic and Logic Unit Memory Unit (หน่วยความจา) bit - the smallest unit of binary digit byte - a group of 8 bits word - a group of bits and may represent a number, an instruction code, or any other binary-coded information. Each word in memory is assigned an identification number, called an address, starting from 0 and continuing with 1, 2, 3, up to k-1 2 where k is the number of address line เช่น 16-bit word = 2 bytes A Bit About Bits - In genaral using n bits, it is possible to represent upto 2x2x2x2x2 ….. (n times) values, 2n - e.g., 3 bits allow us to distinguish between 8 tings 4 bits ----> 16 things 5 bits ----> 32 8 bits (1 byte) ----> 256 12 bits ----> 4096 16 bits ----> 65536 32 bits ----> over 4 billion things Address (in binary) Word 000 001 0 1 1 001 0 11 01 1 011 1 00 01 Bit (Binary digit) 000 1 10 0 1 0 010 0 1 00 0 1 1 011 0 1 10 0 1 001 001 0 1 1010 0 011 0 1 0100 0 100 0 0 0 0 0 0 1 1 0 0 0 0 1 1 1 0 1 101 100 010 ตาแหน่ง(Address)ของคา (Word) และ ค่าคอนเทนท์ (Content) The organization of a byte-size memory cell Memory cells arranged by address การบอกขนาดของหน่วยความจา KB (kilobyte) = 210 = 1,024 byte M (megabyte) = 220 = 1,048,576 byte G (gigabyte) = 230 T (Terabyte) = 240 เช่น 64K = 64 x 1024 byte Primary Storage: Computer Memory RAM (random access memory; DRAM, SRAM): is the most common memory chip. will not remain if power goes off. must move data onto a disk if it is to be saved. ROM (read-only memory): information is stored permanently on a chip. contains startup information and other permanent data. PROM, EPROM, EEPROM PROM: Programmable once!. EPROM: Erasable (via ultraviolet light) and programmable EEPROM: Electrically Erasable and programmable n data input lines k address lines Read Write Memory Unit n data output lines Block diagram of RAM k address input lines ROM n data output lines Block diagram of ROM Instruction Cycle A program residing in the memory unit of the computer consists of a sequence of instructions. The program is executed in the computer by going through a cycle for each instruction. In the basic computer each instruction cycle consists of the following phases : 1. Fetch an instruction from memory 2. Decode the instruction 3. Execute the instruction The machine cycle Input Devices Keyboard Mouse Computers accept information from outside world using its input devices. Touch screen Joystick Graphics tablet Track ball Microphone Video camera …... Output Devices Monitor The information on the computer are sent to the outside world using output devices. Printer Speakers Other instruments/devices ... Screen Output image is stored in video memory—VRAM. monitor size is measured diagonally across screen. images are made up of dots called pixels. color depth is the amount of information per pixel. the number of pixels affects resolution of the monitor. Main Types: CRT LCD (Liquid Crystal Display) Secondary Storage Peripherals with both input and output functions. This form of storage is semi-permanent. Examples include: Magnetic tape (sequential access) Magnetic disks (random access) HD: IDE, SCSI Floppy disks Optical disks (CD-ROM) Disk storage Logical records versus physical records on a disk CD storage format A magnetic tape storage mechanism One block Inter - record gap One block One block Record Record Record 1. Single record block Inter - record gap One block Record Record Record Record 2. Multiple record block ลักษณะการเรียงข้ อมูลในเทปแม่ เหล็ก Pulses to Outside World Paper Output There are basically 2 types of printers - Impact printers - Line printers (set of characters) - Dot matrix printers - Non-Impact printers - Laser printers - Ink-jet printers - Plotters ระบบการประมวลผลข้อมูลด้วยเครื่ องคอมพิวเตอร์ สามารถแบ่งเป็ น 2 ระบบ คือ 1. ระบบ Batch (Batch Processing System) 2. ระบบ Online (Online Processing System) - Time Sharing System - Real Time System - Multiprogramming - Multiprocessing - etc.