This circuit is here to demonstrate the idea of sequencing data through a circuit over time. It combines several of the circuits and ideas we have seen already: The Register, the T-Flip Flop, and of course, the NAND, from which all of those are made.
As soon as the simulation starts, the clock will supply a pulse to the T-Flip Flop. The output is inverted (yes we could have used the inverted output) so there are two "phases" to the signal: Phase A goes to the left register, and Phase B goes to the right register. The output of the left register is added to the number input (use the left digit) and that is saved in the output register on the right during Phase B. After the end of Phase B, the output of the right register (the current count) is fed back to the left register during Phase A. This instantly changes the output of the adder, but has no effect on the circuits output becuase the right register is not saving during the A phase.
At first, nothing happens, because the registers are at zero, and the input is at zero. Change the left input digit to "1" by pressing the up arrow in the far upper left corner. Watch the circuit count up. Because it is a 4 bit system, it will count to 9, then A, B, C, D, E, F; it is counting in hexadecimal. After F, it will cycle back to 0 when the adder overflows. Change it to "2" and watch it count by twos.
A simple ALU
Can you make this circuit count down one at a time? Hint: You don't have to change the circuit at all; just the input!
|file: /Techref/logic/countby.htm, 2KB, , updated: 2013/11/12 19:33, local time: 2018/7/22 04:17,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/logic/countby.htm"> Digital Logic Tutorial - Counting Sequencer</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180722 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Isaac M. Bavaresco, Bob Blick, Neil, Denny Esterline, John Gardner, Brent Brown,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!