利用两个74LS160构成的57进制计数器
时间: 2024-03-11 20:45:49 浏览: 95
要构成一个57进制计数器,我们需要将两个74LS160级联起来,使其能够计数0-57的数字。
首先,我们需要将第一个74LS160的CPD、CTC、CTB和CTA控制输入接地,使其始终保持在计数状态。然后,将第二个74LS160的CPD接到第一个计数器的QA输出,将CTC、CTB和CTA控制输入连接到适当的控制信号线上,使其能够正确计数。
接下来,我们需要将两个计数器的输出连接起来,以实现57进制计数器。由于每个计数器的输出范围是0-15,因此我们需要使用一个57进制译码器将两个计数器的输出转换为57进制数码。
下面是利用两个74LS160构成的57进制计数器的真值表:
| CPD | CTC | CTB | CTA | QA | QB | QC | QD | Count |
| --- | --- | --- | --- | -- | -- | -- | -- | ----- |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
| 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 3 |
| 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
| 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 5 |
| 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 6 |
| 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 7 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
| 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 9 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 10 |
| 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 11 |
| 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 12 |
| 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 13 |
| 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 14 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 15 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 |
| 1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 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 44 |
| 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 45 |
| 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 46 |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 47 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 48 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 49 |
| 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 50 |
| 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 51 |
| 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 52 |
| 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 53 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 54 |
| 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 55 |
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 56 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 57 |
在以上的表格中,CPD、CTC、CTB和CTA是74LS160的控制输入,QA、QB、QC和QD是74LS160的输出,Count是57进制计数器的计数结果。注意,最大计数值是57,因为我们使用两个四位计数器级联来实现57进制计数。
阅读全文