Computer Science

운영체제의 주요 서비스는 하드웨어 자원을 각 사용자 애플리케이션에 적절히 분배해주는 것이다. 하드웨어 자원은 CPU, 메인 메모리, 입출력 장치 등이 존재하며, 이러한 하드웨어 자원을 사용자 애플리케이션이 요구하거나 운영체제 내의 규칙에 의해 적절히 분배하여 컴퓨터 성능을 최대한 효율 적으로 사용해야 한다. 운영체제 내에서는 각 하드웨어를 관리하는 기능 프로세스 관리(Process Management) 기억 장치 관리(Memory Management) 저장 공간 관리(Storage Management) 입출력 장치 관리(I/O deviece Management) 시스템 콜(System Call) 운영체제 정의(Operating System Definition) 사용자가 응용 프로그램을 실행할 수 있는 기..
Outline 1.Pin Description 2.Intel HEX file Pin Description Pin Layout ->전체 40 pin을 갖고 있다. ->입출력 포트(port)로 32 pin이 사용된다. ->나머지 8 pin은 VCC, GND, XTAL1, XTAL2, RST, EA, PSEN, ALE가 있다. VCC(40핀) -> 칩에 VCC 전압(5V)을 공급한다. -> +5V 전원 GND(20핀) ->Ground 클럭 : XTAL1/ XTAL2 (19,18핀) ->단순한 크리스털 발진기를 XTAL1과 XTAL2에 연결 ->외부에서 발진 클럭을 XTAL1에만 공급 RST(Reset, input pin) ->Active high : 리셋 시 1을 입력 CPU 동작 시 적어도 2 머신 사이클 ..
Outline 1.Loop and Jump Instructions 2.Call instructions 3.Time delay Loop and Jump Instructions Loop : DJNZ (decrease jump not zero) - Conditional Jump Instructions DJNZ reg, label ->DJNZ는 레지스터의 값을 1 감소한다. 만일 초기 값이 0이면, 그 값을 감소하여 FFH로 만든다. 만일 결과의 레지스터 값이 0이 아니면 프로그램은 상대 주소에 의해 지시되는 주소로 분기한다. 만일 레지스터의 결과 값이 0이면, 제어는 DJNZ 다음의 명령에서 계속된다. MOV A, #0 MOV R2, #4 AGAIN: ADD A, #03 DJNZ R2, AGAIN ; reg:..
Outline 1.inside 8051 2.introduction to assembly programming 3.program counter and rom space 4.psw register and flag bits 5.register bank and stack inside 8051 inside 8051 : block diagram -8051 내부에 있는 ROM은 프로그램 코드가 저장되어 있다. -8051 내부에 있는 RAM에는 임시적인 데이터가 저장되어 있다. -8051 내부에 있는 CPU는 RAM에 저장되어 있는 임시적인 데이터(temporary data)를 가져와 ROM에 저장되어 있는 코드를 실행한다. -8051 내부에 있는 입출력 포트(I/O PORTS)는 8bit로 4개의 포트가 존재한다. ..
Outline 1.what is Microcontroller? 2.8051 Microcontroller what is Microcontroller? 컴퓨터 내부(inside a computer) CPU(Central Processing Unit) -> 메모리에 저장되어 있는 정보를 실행(process)한다. Memory -> 정보를 저장한다. -> 메모리에 랜덤(Random)하게 접근(RAM) -> 메모리 읽기(ROM) I/O(input/output) devices -> 모니터, 키보드, 하드 드라이브, CD –ROM, 비디오 카드,... 등등 Bus -> CPU, 메모리 및 I/O 장치를 연결하는 와이어 스트립 Microperocessor ->단일 통합 칩(IC)의 CPU Microcontroller ..
#lang racket (provide (all-defined-out)) ;; exports the defined variables in this file. ;; definition of structures for MUPL programs - Do NOT change (struct var (string) #:transparent) ;; a variable, e.g., (var "foo") (struct int (num) #:transparent) ;; a constant number, e.g., (int 17) (struct add (e1 e2) #:transparent) ;; add two expressions (struct ifgreater (e1 e2 e3 e4) #:transparent) ;; i..
#lang racket (provide (all-defined-out)) (define (node_value node) (car node)) (define (node_left_child node) (cadr node)) (define (node_right_child node) (caddr node)) (define (check_bst ROOT) (if (null? ROOT) #t (letrec ([value (node_value ROOT)] [check_right_child_value (lambda(node) (if (null? node) #t (< value (node_value node))))] [check_left_child_value (lambda(node) (if (null? node) #t (..
2020/06/15 - [컴퓨터 전공 공부/프로그래밍언어론] - [프로그래밍언어/ML] pairs, lists, local bindings, benefit of no mutation - 컴도리돌이-(1) 2020/06/15 - [컴퓨터 전공 공부/프로그래밍언어론] - [프로그래밍 언어/ ML] Records, Datatypes, Case Expressions and more - 컴도리돌이-(2) 2020/06/15 - [컴퓨터 전공 공부/프로그래밍언어론] - [프로그래밍 언어론/ ML] Nested Patterns Exceptions tail Recursion -컴도리돌이-(3) 2020/06/16 - [컴퓨터 전공 공부/프로그래밍언어론] - [프로그래밍언어/ML] ML Modules - 컴도리돌이-(4..
행복한쿼콰
'Computer Science' 카테고리의 글 목록 (3 Page)