CSC116 ยท 2079 ยท 5 marks
Write short notes on (Any two): a. Positive Logic b. I2L c. ASCII
Write short notes on (Any two): a. Positive Logic b. I2L c. ASCII [5]
Digital LogicChapter 2: Boolean algebra and Logic GatesIntegrated Circuits
Quick answer
Positive Logic is a convention used in digital systems to assign binary logic values (0 and 1) to the two voltage levels present in a circuit.
Short Notes (Any Two): a. Positive Logic and c. ASCII
a. Positive Logic
Definition:
In positive logic, the higher voltage level is assigned the logic value 1 (HIGH) and the lower voltage level is assigned the logic value 0 (LOW).
| Voltage Level | Logic Value |
|---|---|
| High Voltage (e.g., +5V) | Logic 1 |
| Low Voltage (e.g., 0V) | Logic 0 |
Key Points:
- It is the most commonly used logic convention in digital circuits and computers.
- Logic gates (AND, OR, NOT, etc.) are designed and analyzed based on this convention.
- The opposite convention is called Negative Logic, where the lower voltage level represents logic 1 and the higher voltage level represents logic 0.
- The same physical circuit can perform different logical operations depending on whether positive or negative logic convention is applied.
Example:
- In a TTL (Transistor-Transistor Logic) circuit, +5V = Logic 1 and 0V = Logic 0 under positive logic convention.
c. ASCII
ASCII stands for American Standard Code for Information Interchange.
Definition:
ASCII is a standard character encoding scheme used to represent text and control characters in computers and communication devices using binary numbers.
Key Features (from notes):
- ASCII uses a 7-bit code, consisting of:
- 3 zone bits (higher order bits)
- 4 numeric bits (lower order bits)
- Total possible combinations: 2^7 = 128 characters
Character Representation:
| Category | Number of Characters |
|---|---|
| Alphabets (uppercase A-Z and lowercase a-z) | 62 |
| Numerals (0-9) | 10 |
| Special Characters | 66 |
Example:
| Character | ASCII (Decimal) | ASCII (Binary) |
|---|---|---|
| A | 65 | 100 0001 |
| a | 97 | 110 0001 |
| 0 | 48 | 011 0000 |
Additional Notes:
- ASCII is considered an improvement over the BCD code as it can represent a much wider range of characters.
- It is widely used in data communication, keyboards, and text files.
- An extended version (ASCII-8) uses 8 bits, allowing 256 characters, which includes additional special and graphical symbols.
- Another extended code, EBCDIC (Extended Binary Coded Decimal Interchange Code), is used mainly in IBM mainframe computers.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.