Sách Học Vi Xử Lý Cực Hay Cho Người Bắt Đầu Học potx

617 669 0
Sách Học Vi Xử Lý Cực Hay Cho Người Bắt Đầu Học potx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... (cont’) Address bus For a device (memory or I/O) to be recognized by the CPU, it must be assigned an address The address assigned to a given device must be unique The CPU puts the address on the address bus, and the decoding circuitry finds the device Data bus The CPU either gets data from the device or sends data to it Control bus Provides read or write signals to the device to indicate if the CPU... Engineering National Cheng Kung University, TAIWAN 21 INSIDE THE COMPUTER Internal Organization of Computers CPU (Central Processing Unit) Execute information stored in memory I/O (Input/output) devices Provide a means of communicating with CPU Memory RAM (Random Access Memory) – temporary storage of programs that computer is running The data is lost when computer is off ROM (Read Only Memory) – contains... More about Address Bus The more address buses available, the larger the number of devices that can be addressed The number of locations with which a CPU can communicate is always equal to 2x, where x is the address lines, regardless of the size of the data bus ex a CPU with 24 address lines and 16 data lines can provide a total of 224 or 16M bytes of addressable memory Each location can have a maximum... primary CPU’s Relation to RAM and ROM ROM provides information that is fixed and permanent memory Tables or initialization program RAM stores information that is not permanent and can change with time Various versions of OS and application packages CPU gets information to be processed first form RAM (or ROM) if it is not there, then seeks it from a mass storage device, called secondary memory, and transfers... Information Engineering National Cheng Kung University, TAIWAN 30 INSIDE THE COMPUTER Inside CPUs (cont’) ALU (arithmetic/logic unit) Performs arithmetic functions such as add, subtract, multiply, and divide, and logic functions such as AND, OR, and NOT Program counter Points to the address of the next instruction to be executed As each instruction is executed, the program counter is incremented to point... Action Code Data Move value 21H into reg A Add value 42H to reg A Add value 12H to reg A B0H 04H 04H 21H 42H 12H Mem addr 1400 1401 1402 1403 1404 1405 1406 Contents of memory address (B0) code for moving a value to register A (21) value to be moved (04) code for adding a value to register A (42) value to be added (04) code for adding a value to register A (12) value to be added (F4) code for halt . University, TAIWAN 4 HANEL NUMBERING AND CODING SYSTEMS Converting from Decimal to Binary  Divide the decimal number by 2 repeatedly  Keep track of the remainders  Continue this process. to binary first and then convert to hex  Convert directly from decimal to hex by repeated division, keeping track of the remainders Ex. Convert 45 10 to hex 32 16 8 4 2 1 1 0 1 1 0 1 32 +

Ngày đăng: 09/08/2014, 17:20

Từ khóa liên quan

Mục lục

  • The 8051 Microcontroller and Embbeded Systems.jpg

  • The 8051 Microcontroller and Embedded Systems.pdf

  • Binder.pdf

    • Introduction to Computing.pdf

    • 8051 Microcontrollers.pdf

    • Assembly Language Programming.pdf

    • Branch Instructions.pdf

    • IO Port Programming.pdf

      • I/O PORTPROGRAMMING

      • I/O PROGRAMMING

      • I/O PROGRAMMINGI/O Port Pins

      • I/O PROGRAMMINGPort 0

      • I/O PROGRAMMINGPort 0(cont’)

      • I/O PROGRAMMINGPort 0 as Input

      • I/O PROGRAMMINGDual Role of Port 0

      • I/O PROGRAMMINGPort 1

      • I/O PROGRAMMINGPort 1 as Input

      • I/O PROGRAMMINGPort 2

      • I/O PROGRAMMINGPort 2 as Input or Dual Role

      • I/O PROGRAMMINGPort 3

      • I/O PROGRAMMINGPort 3(cont’)

      • I/O PROGRAMMINGPort 3(cont’)

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan