CÁC PHÉP TOÁN LOGIC 1 KỸ THUẬT SỐ CHƯƠNG 3 PHẦN MẠCH ĐẾM – THANH GHI DỊCH HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering Assoc Prof Nguyen Thanh Hai HCMC Un[.]
HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering KỸ THUẬT SỐ CHƯƠNG 3: PHẦN MẠCH ĐẾM – THANH GHI DỊCH Assoc Prof Nguyen Thanh Hai HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering MẠCH ĐẾM NHỊ PHÂN ĐỒNG BỘ Mạch đếm lên 1 T0 PRE0 Q0 Q0 CK0 CLR0 CK T0 Assoc Prof Nguyen Thanh Hai T1 PRE1 Q1 Q1 CK1 Q0 CLR1 T2 Q2 CK2 Q1 CLR2 T1 Q0 PRE2 Q2 T3 PRE3 Q3 CK3 Q2 CLR3 T2 Q1Q0 Q3 Q3 T3 Q2 Q1Q0 HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering MẠCH ĐẾM NHỊ PHÂN ĐỒNG BỘ Input Outputs CK Q3 Q2 Q1 ↓ 0 ↓ 0 ↓ 0 ↓ 0 ↓ ↓ ↓ 1 ↓ 1 ↓ 0 ↓ 0 ↓ 1 ↓ 1 ↓ 1 ↓ 1 ↓ 1 ↓ 1 ↓ Nguyen0 Thanh Hai 0 Assoc Prof Q0 1 1 1 1 TP 10 11 12 13 14 15 T0 T1 Q0 T2 Q1Q0 T3 Q2 Q1Q0 HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering MẠCH ĐẾM NHỊ PHÂN ĐỒNG BỘ Mạch đếm xuống 1 T0 PRE0 Q0 Q0 T1 CK0 CLR0 CK Assoc Prof Nguyen Thanh Hai PRE1 Q1 CK1 Q0 T0 Q1 T2 PRE2 Q2 Q2 CK2 CLR1 Q1 T1 Q0 CLR2 T3 PRE3 Q3 Q3 CK3 Q2 T2 Q1 Q0 CLR3 Q3 T3 Q2 Q1 Q0 HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering MẠCH ĐẾM NHỊ PHÂN ĐỒNG BỘ Input Outputs CK Q3 Q2 Q1 ↓ 1 ↓ 1 ↓ 1 ↓ 1 ↓ 1 ↓ 1 ↓ 0 ↓ 0 ↓ 1 ↓ 1 ↓ ↓ ↓ 0 ↓ 0 ↓ 0 ↓ 0 ↓ Nguyen1 Thanh Hai 1 Assoc Prof Q0 1 1 1 1 TP 15 14 13 12 11 10 15 T0 T1 Q T2 Q1 Q T3 Q Q1 Q HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering MẠCH ĐẾM NHỊ PHÂN ĐỒNG BỘ Mạch đếm lên xuống C=U/D 1 T0 PRE0 Q0 Q0 T1 CK0 CLR0 CK Q1 PRE1 Q1 T2 CK1 Q0 CLR1 PRE2 Q2 Q2 CK2 Q1 CLR2 1 T3 PRE3 Q3 Q3 CK3 Q2 CLR3 Q3 T1 C Q0 C Q0 CQ0 T2 T1 C Q1 T1 C Q1 CQ1 T1C Q1 T1 CQ1 T3 T2 C Q2 T2 C Q2 CQ2 T2C Q2 T2 CQ2 Khi cho C = T0 T1 Q0 T2 Q1Q0 T3 Q2 Q1Q0 Khi cho C = T0 T1 Q0 T2 Q1 Q0 T3 Q2 Q1 Q0 Assoc Prof Nguyen Thanh Hai HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering THIẾT KẾ MẠCH ĐẾM ĐỒNG BỘ Thiết kế mạch đếm nhị phân đồng bit - đếm lên từ 0000 đến 1111 - sử dụng FF-T với CK tích cực cạnh xuống Q0 ? T0 PRE0 Q0 CK0 CLR0 CK ? T1 PRE1 Q1 Q1 CK1 Q0 Assoc Prof Nguyen Thanh Hai CLR1 1 ? T2 PRE2 Q2 Q2 CK2 Q1 CLR2 1 ? T3 PRE3 Q3 Q3 CK3 Q2 CLR3 Q3 HCMC University of Technology and Education Faculty of Electrical & Electronic Engineering THIẾT KẾ MẠCH ĐẾM ĐỒNG BỘ Trạng thái TP 10 11 12 13 14 15 CK ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ Q3 0 0 0 0 1 1 1 1 Q2 0 0 1 1 0 0 1 1 T 1 Assoc Prof Nguyen Thanh Hai0 Q1 0 1 0 1 0 1 0 1 Q0 1 1 1 1 Ngõ vào kích FF T3 0 0 0 0 0 0 T1 Q0 T2 0 0 0 0 T1 1 1 1 1 T0 1 1 1 1 1 1 1 1 T2 Q1Q0 Trạng thái kế có xung CK Q3 Q2 Q1 Q0 0 0 0 1 0 1 1 0 1 1 0 0 1 1 1 1 0 1 1 1 1 1 0 0 T3 Q2 Q1Q0