TAILIEUCHUNG - Fundamentals of Digital Electronics - Lab 2

Encoders and Decoders Bộ mã hóa, một chuyển đổi một nhà nước thiết bị đầu vào thành một đại diện nhị phân hoặc số không. Hãy xem xét một chuyển đổi quay với 10 vị trí được sử dụng đầu vào 0 số đến 9. Mỗi vị trí chuyển đổi được mã hóa bởi một chuỗi nhị phân độc đáo. Ví dụ, chuyển đổi 7 vị trí có thể được mã hóa là 0111. Bộ giải mã thực hiện việc chuyển đổi ngược lại, từ mã nhị phân vào các mã đầu ra. Xem xét trường hợp của một. | Lab 2 Encoders and Decoders An encoder converts an input device state into a binary representation of ones or zeros. Consider a rotary switch with 10 positions used to input the numbers 0 through 9. Each switch position is to be encoded by a unique binary sequence. For example switch position 7 might be encoded as 0111. A decoder performs the opposite conversion from binary codes into output codes. Consider the case of a single die. On each of its six sides one of the following patterns appears representing the numbers 1-6. Figure 2-1. The Six Sides of a Die These patterns are traditional. They can be thought of as seven lights arranged in an H pattern o o o o o o o Figure 2-2. Dot Arrangement Used in Dice Codes By turning on the appropriate lights you can create any of the six patterns on the face of a die. National Instruments Corporation 2-1 Fundamentals of Digital Electronics Lab 2 Encoders and Decoders On closer inspection there are only four unique patterns from which the pattern for any face can be formed. Call these base patterns A B C and D A B C D Figure 2-3. Four Base Patterns Used in Dice Codes If you write down the truth table for the presence or absence of these base patterns as a function of die face the meaning of these base states becomes clear. Table 2-1. Base States Used for Each Die Number Die Face A B C D 1 2 3 4 5 6 The base pattern A is used by all odd numbers 1 3 and 5 . Pattern B is in the representation of all of the numbers except 1. Base pattern C is found in the numbers 4 5 and 6. Pattern D is used only when representing 6. The Die To build a virtual die place seven LED indicators in the H pattern on the front panel together with four switches. On the diagram page the LED terminals are wired to display the four unique patterns A B C and D. The four switches on the front panel can now simulate turning on and off the base patterns. Figure 2-4. LabVIEW Front Panel for Virtual Die Display Fundamentals of Digital Electronics 2-2 National .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.