Maker Pro
Maker Pro

synchronous binary counter question

Joseph K.

Nov 6, 2015
3
Joined
Nov 6, 2015
Messages
3
Hi all
I'm trying to wrap my head around the midi2cv circuit from the following link:
http://musicfromouterspace.com/analogsynth_new/THE_CAVE/MIDI to CV Old Design I/midi2cv.htm

The explanation provided on the page is very good, but there is something that
I don't understand.
According to the explanation, the circuit uses a cd4520 binary counter to "count from 0 to 248".
This is where I get lost.
Of course I checked the datasheet and searched for tutorials etc. but from what I can see, the maximum number that can be counted with a 4-bit binary counter is 15. (full range: 0-15)
I can see how one could link several counters in order to increase the overall count, but how does one arrive at the exact number of 248?
I tried to figure it from the circuit schematic, but that did not make me any wiser.
Any explanation would be greatly appreciated.
Cheers!
 

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
Th 4520 is a DUAL 4-bit binary counter. You string the two halves together by connecting the Q4 output of one half to the clock input of the other half to create a single 8-bit counter. Note that each 4520 on the schematic has two clocks, two Q1's, etc. From the text above the schematic (emphasis mine):

Clock Generator
Since MIDI data speed is fixed at 31.25KHz we need to grab the data at the right time so our circuit's timing is critical. We start off with a 2MHz clock module (IC1) and divide this frequency by 8 using IC3 (CD4520 dual binary counter)

ak
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Hi all
I'm trying to wrap my head around the midi2cv circuit from the following link:
http://musicfromouterspace.com/analogsynth_new/THE_CAVE/MIDI to CV Old Design I/midi2cv.htm

The explanation provided on the page is very good, but there is something that
I don't understand.
According to the explanation, the circuit uses a cd4520 binary counter to "count from 0 to 248".
This is where I get lost.
Of course I checked the datasheet and searched for tutorials etc. but from what I can see, the maximum number that can be counted with a 4-bit binary counter is 15. (full range: 0-15)
I can see how one could link several counters in order to increase the overall count, but how does one arrive at the exact number of 248?
I tried to figure it from the circuit schematic, but that did not make me any wiser.
Any explanation would be greatly appreciated.
Cheers!

1.The two 4-bits counters in the 4520 are cascaded to create an
8-bit counter.
2.An 8-bit counter would count from 0 to 255.
(in binary 00000000 to 11111111)
3.To count up to any number in between these values,that value needs "to be recognized" i.e detected and cause the counter to be rest to 0.
4.In the circuit the value 247 (=248-1) in binary 11110111 (=11111000-1 ) is detected by 5 diodes that form a 5 input AND-gate.
note:eek:nly the 5 msb are detected! that is 11110xxx.
5.When the value 247 is detected (#4 above).
The circuit consisting of 2 Schmidt-trigger inverters(U7),a diode and R3-C2, create a logic "1" pulse.
This pulse connected to the counters reset pins,
resets the counter to all 0's (async reset)
-->see the Red arrows in the pic.

CD4520-explained.jpg
 

Joseph K.

Nov 6, 2015
3
Joined
Nov 6, 2015
Messages
3
Hi Chris,
I agree
JMHO but I think it deserved a tad more. Like STELLAR!

Chris
Hi Chris,
I completely agree, but I couldn't find the corresponding button and the selection of available smileys is not exactly top notch either.
Cheers,
Joseph
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
Yes, we need a "Love It!" button. :D

Cheers,
Chris
 
Top