type
status
date
slug
summary
tags
category
icon
password

說明

這份筆記主要是可以簡單地知道Digital System會涉及到的一些名詞知識,目標不是在讓你考過Digital System並且擁有強大的計算能力
 
例外,書裡面提到的PLD, HDL不會在筆記內,需要會再另外開個筆記記錄
 
notion image

Ch1

目錄
notion image
notion image
 
要點:
  • 知道為什麼數位(離散)對於電腦重要
  • 一些名詞(在名詞區)

概念區

  • Digital vs Analog
  • 各種進位制(2,8,10,16)轉換

名詞區

Period:
notion image
Duty Cycle:
notion image
Edges/Events:
Events指的是「高轉低」或「低轉高」
Edges指的是那個轉的地方
notion image
Parallel & Serial Transmission:
notion image
Memory Circuit(第五章會看到它):
notion image

Ch2

目錄
notion image
notion image
要點:
  • 各種數字系統轉換(2-1 to 2-3)
  • 知道甚麼是BCD和Gray Code和Alphanumeric Codes
  • Parity Method會在第四章有實作,簡單知道就好

BCD Code

notion image

Gray Code

只要記得:每一個數字之間,都只差一個bit
notion image
 

Byte, nibble, word

  • byte: 8bit
  • nibble: 4bit(byte)
  • word: 不一定,但personal computer是8byte(utf-8),代表一個word的unit

Ch3

目錄
notion image
 
notion image
 
這章主要就是一直算,主要會紀錄沒有要算的章節

常用的圖示

notion image
 
notion image
 
notion image
 

Analysis Table

notion image

經常用到的rule

notion image
 

阿蛇火燒屁股補充 - 用NOR和NAND來組成其他元件

 
 

用程式寫邏輯電路

  • PLD: programmable logic devices These devices are not like microcomputers or microcontrollers that “run” the program of instructions. Instead, they are configured electronically, and their internal circuits are “wired” together electronically to form a logic circuit. This programmable wiring can be thought of as thousands of connec- tions that are either connected (1) or not connected (0).
    • notion image
  • HDL: Hardward describe language,有VHDL和AHDL,用來弄PLD

Ch4 Combinational Logic Circuits

目錄
notion image

簡單帶過的章節

  • 4-1: 一個form,把電路整理成統一的形式
    • notion image
  • 4-2: Simplfy logic circuits如字面上所說,下面4-3, 4-5分別是兩種實際方法
  • 4-4: 把truth table變成邏輯電路
4.4 example
notion image
notion image
 
k-map的範例

Exclusive-OR, NOR

notion image
Exclusive-OR
 
notion image
Exclusive-NOR

Parity Generator & Checker

用 XOR 做出來的,前者是生出奇偶確定碼,後者是確定前者是不是對的
notion image

Enable/Disable Circuit

就想像成控制桿,不是很重要
notion image

Basic Characterstics of Legacy Digital ICs

名詞:
  • resistors:電阻
  • diodes:二極體
  • transistors fabricated: 晶體製造管
  • semiconductor: 半導體
  • substrate: 基質
DIP:
这个芯片被封装在一个保护性的塑料或陶瓷壳体里,从这个壳体中伸出连接脚,用于将集成电路(IC)连接到其他设备。其中一种比较常见的封装类型是双列直插封装(DIP)。
notion image
IC依照複雜度(一個chip有幾個gate),分成以下的東東
notion image
 

Bipolar 和 Unipolar Digital ICs

  1. Bipolar Digital ICs: 這些集成電路使用双极型晶体管(Bipolar Junction Transistors, BJT)作為主要的電子元件。BJT晶体管有两种载流子(电子和空穴)参与电流传输,因此被稱為“双极型”。這些IC具有較高的轉換速度,但也會消耗更多的功耗。 代表人: TTL
  1. Unipolar Digital ICs: 這些集成電路主要使用场效应晶体管(Field-Effect Transistors, FET),特別是金属氧化物半导体场效应晶体管(MOSFET)作為主要的電子元件。在這種情況下,只有一種載流子(通常是電子)參與電流傳輸,因此被稱為“单极型”。這些IC通常具有較低的功耗但轉換速度可能較慢。 代表人: CMOS

Logic-Level Voltage Ranges

notion image
如圖,沒啥好說的

Floating input

當數字集成電路(Digital IC)的輸入端口未連接(也稱為浮動輸入)時會發生什麼情況
 
對於TTL:
  • 一個浮動的TTL輸入會被視為邏輯1(HIGH)。
  • 雖然這一特點在測試TTL電路時經常被利用,但它不是推薦的做法,因為浮動的TTL輸入非常容易受到噪音信號的干擾,從而可能不利於設備的運行。
對於CMOS:
  • 如果CMOS輸入浮動,可能會有災難性的後果,包括IC過熱甚至摧毀自身。
  • 浮動的CMOS輸入不會測量為特定的直流電壓,而會隨機波動,因為它會捕捉到噪音。
  • 因此,其對輸出的影響是不可預測的,有時會因為捕捉到的噪音而使輸出振盪。
另外,許多較為複雜的CMOS ICs內建有減少對開放輸入有任何破壞性反應的可能性的電路。但即使如此,在最終的電路實施中,仍然建議將未使用的輸入連接到HIGH或LOW。
總的來說,了解浮動輸入在TTL和CMOS電路中的行為是在故障排除和電路設計時非常有價值的。

Logic-Circuit Connection Diagrams

notion image
notion image

TroubleShooting區域 (4-10 - 13)

  • TROUBLESHOOTING DIGITAL SYSTEMS
  • INTERNAL DIGITAL IC FAULTS
  • EXTERNAL FAULTS
  • TROUBLESHOOTING PROTOTYPED CIRCUITS

PLD區域

看起來有一大堆的解釋性文字,有機會找一下影片科普一下
 

Ch5 Flip-Flops and Related Devices

簡介Flip-Flops

基本上就是一個電路的記憶體,可以記錄目前的狀態,應用就在RAM上面

簡單的Flip-Flops(S-R latches)

可以看到是由NAND組成的,我們會叫它NAND Latch
notion image
還有NOR版本
notion image

Digital Pulse(脈衝)

notion image

Clock與它的小夥伴

notion image
  • PGT, NGT請參考上圖,一看就懂
  • period(T) = seconds/cycle
  • frequency(f) = 1/T,赫茲
notion image
Clock Flip-Flop,多了一個CLK input,並且只有在PGT或NGT讀取Control inputs
notion image
notion image

Edge-Triggered S-R Flip-Flop

notion image
notion image
增值表
notion image
增值表
notion image
edge-detecter 本人

JK filp-flop

notion image
其中一個動態的Example

JK觸發器的工作模式:

  1. Reset(重設): 當 J=0 和 K=1 時,觸發器的輸出Q會在下一個時鐘邊緣被清除(設為0)。
  1. Set(設置): 當 J=1 和 K=0 時,觸發器的輸出Q會在下一個時鐘邊緣被設置(設為1)。
  1. Hold(保持): 當 J=0 和 K=0 時,觸發器的輸出會保持其當前狀態,不進行變化。
  1. Toggle(切換): 當 J=1 和 K=1 時,觸發器的輸出Q會在下一個時鐘邊緣反轉(如果原來是0,就變為1;如果原來是1,就變為0)。
notion image
詳細電路板本

Flip-Flop的應用們

Data Storage & Transfer

notion image
平行的Transfer

SERIAL DATA TRANSFER: SHIFT REGISTERS

notion image
  • 可以用來:FREQUENCY DIVISION AND COUNTING
  • Frequency division example: 石英錶
  • Counting: 一個一個數的感覺,數到幾會歸零叫做MOD Number
 

Clock Generator Circuit

notion image
主要還是要有一個東西負責震盪
 
home_assistant的MQTT設定篇數位邏輯 - ch6 - ch7