esmaspäev, 9. veebruar 2015

Sisend/väljund

 Arvuti ei ole enam mänguasi, selle eesmärk on juhtida mingit seadet või protsessi.
Sisend/väljend tähistab arvuti suhtlust kas selle kasutajaga, andmekandijate, üle arvutivõrgu teiste arvutite või välise maailmaga. Sisendid on signaalid või info vastuvõtjad süsteemi poolt ja väljundid on signaalid või info, mis on saadetud selle poolt.
  • Hiired, klaviatuur, mälupulk jne on sisendid e input
 mo|dem-tuletatud sõnadest: modulate ja demodulate, mis tähendavad vastavalt moduleerima ja demoduleerima.
Modem on seade, mis moduleerib analoogsignaali, et edastada kodeeritud digitaalset sõnumit üle sidekanali ning demoduleerib sellise analoogsignaali, et dekodeerida saadud sõnum. Seadme eesmärk on tekitada signaal, mida on lihtne edastada ja mida on võimalik dekodeerida, et taastada esialgne info. 
Veel infot: Sisend/väljund inglise keeles
Modem eesti keeles

Inimestele loetavad
  • sobiv suhtluseks arvuti kasutajaga
  • printerid, terminalid, video displayd, klaviatuur, hiir
Masinale loetavad:
  • Sobiv suhtluseks elektrooniliste seadmetega
  • disk drivers...
 Erinevused I/O seadmetes
Teema
Sisendi seade
Väljundi seade
Definitsioon An input device is any peripheral used to provide data and control signals to an information processing system. Any device that outputs information from a computer is called, not surprisingly, an output device
Form Input devices are physically interacted with by the user and have buttons, keys, a lens or some other component that is responsible for the actual data input. Output devices are never contacted, are usually larger, and typically have a screen or set of speakers for data output.
Sequence Input device works before Output Device Output device works after input device.
Price Usually, Input devise cheaper than Output Device. Usually Output Device price higher than input device.
Conversation It converts commands to Binary digit It converts binary result to our language.
Data flow User to CPU via input device CPU to User via Output Device
Picture


Arvutis on emaplaat, emaplaadile paigutatakse protsessorid. Emaplaadil on ka kiibid, millest üks on põhjasild e mälukontroller- MCH, mis ühendab kiireid seadeid ja teine, lõunasild, ühendab kõiki aeglasemaid seadeid-ICH
MCH
  • mälu, videokaart, protsessor
 ICH
  •  CPU, emakaart



Arvuti arhitektuuris protsessori ja peamälu kombinatsioon on arvuti aju.
device driver - seadme ajur
algorütm - seadme eeskiri








Katkestuspõhine sisend/väljund süsteem
In systems programming, an interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention. An interrupt alerts the processor to a high-priority condition requiring the interruption of the current code the processor is executing. The processor responds by suspending its current activities, saving its state, and executing a function called an interrupt handler (or an interrupt service routine, ISR) to deal with the event. This interruption is temporary, and, after the interrupt handler finishes, the processor resumes normal activities. There are two types of interrupts: hardware interrupts and software interrupts.
Veel infot: Interrupt 



Direct memory acces
I/O mudeli paiknemine

Buffer on tavaliselt mälu ruum.
All I/O devices are classified as either character or block devices. With block devices data is transferred in a block of bytes and required a buffering mechanism to allow faster input and output operations. Also, block devices accept input and output only in blocks. On the other hand, character devices (also called stream of bytes devices) transfer data in a few streams of bytes. Such devices don’t required buffering mechanism, and they don’t operate with a fixed block size
Ketta pöördumise algorütmid
*väikseim teenindus aeg kõigepealt
*

Kommentaare ei ole:

Postita kommentaar