Electronic – How is this CD4013 application supposed to work

cmosdigital-logicflipflop

I'm trying to troubleshoot an issue in a synthesizer I have, an early 80s synthesizer from Roland called RS-09. I'm just starting to study logic and am perplexed by what's going on. In this synthesizer, a 4013 is being used as a frequency divider to divide or not divide a trigger signal from a master oscillator based on whether the user has selected a feature called "Octave down" via a switch. The output Q of the 4013 then passes to a "top octave generator" that uses it to generate the 12 notes of a chromatic scale from which all the other notes are then made. Right now it is only working in "Octave down" mode; without "Octave down" selected, all keys just produce noise. Here's a closeup of this part of the schematic. The vertical line labeled with "10" connects to the switch, and the horizontal line with the indicator that the square wave should be there connects to the octave generator:

close up of 4013 frequency divider and master oscillator

The 4013 is set up so that the "high" voltage is 0V and the "low" voltage is -10V (down arrow is -10V supply). When the "Octave down" is selected and the 4013 is supposed to divide, the switch applies -10V which sends a little less than that -10V to SET (pin 8) via the 15kohm resistor; when "Octave down" is not selected, 0V is connected to that path.
In Octave down mode, that -10V is also able to pass through the diode D206 to RESET (pin 10) (less 0.6-0.7V from the diode drop) and with reset and set held in the low state, the flip flop is in clocked mode, responding to the trigger signal from the master oscillator. This seems to be working just fine. With Q/ connected to D as it is, the flip flop also "binary divides" and Q outputs a square wave at 1/2 the frequency of the trigger.

My problem is that I don't understand what's supposed to be happening when "Octave down" is not selected. I don't see how it could possibly work, and it doesn't. This is what my understanding is, but something must be wrong:

The ~0V at SET holds it in the high state but cannot pass through D206 to RESET, leaving the reset open to receiving its "instructions" from the oscillator (direct mode). The trigger oscillator starts out oscillating between +5 and -10V but the diode clamps it at 0V to cut off the positive portion and is then sent to RESET [edit: this is not quite what is actually happening– see oscilloscope images below]. But with the Set held high, the only possible outcomes for Q are the high state when the oscillator is at its low point sending ~-10V to Reset, when Q is high and Q/ is 0, and the "disallowed state" of both Set and Reset being high, leading to both Q and Q/ being high, when the oscillator is at its high point. Therefore, Q just sends out a constant "high voltage" (0V in this case) with a little bit of noise. That is what I'd expect and what I'm seeing it do. My meter and oscilloscope measurements confirm that this is what is happening.

truth table

How is this supposed to work? Something is clearly wrong both in my interpretation of how it should work and in the way the circuit is actually working, but I've looked it over so many times and still can't figure it out.

Your help is very much appreciated!

Edit: I am adding these shots of the oscilloscope showing different inputs and outputs in the setting that is not working (higher octave). I left the vertical position where center is 0V to show their relative positions. I am on 0.5V/div. I was surprised to see how far negative the waveform at Reset is and how small the amplitude is. This is a little different from what I thought I observed before and more apparently "incorrect".

oscilloscope inputs and outputs

The output of the master oscillator (where it arrives at CLOCK) is not a great-looking trigger waveform either, and my understanding was that 4013 requires a good trigger, but it seems to be working in clocked mode so maybe that's not an issue.

Best Answer

I know this thread has gone dormant, but I thought it would be a good idea to post anyways in the event that it would be useful to someone working on an old Roland synth with 4013-based issues.

Specifically, I've been working the internal arpeggiator clock on the key-assigner board of a Roland Jupiter-4 (the Jupiter-4 was released the same year as the RS-09). The circuit in question is below:

JP4 Arpeggiator clock

Initially, it would appear that, with the Set line (pin 6) of the first flip-flop tied high, there would be no way that the 1Q (pin 1) would be anything other than high, so that the signal at CP5 would be fixed high, decidedly not the pulse wave shown in the diagram. And this is indeed what happens if one uses in the circuit a modern CD4013 with the conventional Set/Reset behavior (i.e., when both Set and Reset are high, both Q and Q/ are high). However, it seems that not all 4013s behave this way.

To wit, later in the Jupiter-4 service manual, Roland specifies that Toshiba's TC4013 is to be used (specifically, the TC4013BP, according to the bill of materials):

JP4 TC4013 statement

Even later in the service manual, Roland provides the pin-out and truth table for the TC4013, and, lo and behold, the TC4013 uses a Set/Reset functionality that differs from the conventional CD4013. Specifically, the TC4013 behaves such that, when both Set and Reset are high, Q is low and Q/ is high; that is, Reset takes precedence over Set, as this table from the service manual indicates:

JP4 4013 truth table

It is this odd Set/Reset behavior that is critical to producing the pulse wave at CP5 in the Jupiter-4 circuit above. I believe that 4013-based problems in Roland synths of this era - like the RS-09 in this thread as well as the "compatibility" problems identified elsewhere for the SH-101 - probably stem from this divergence from the conventional CD4013 Set/Reset behavior. Roland apparently made the dubious design decision to rely on what the chip manufacturers probably thought of as a "disallowed" Set/Reset configuration...

In any event, Toshiba still makes the TC4013BP in a 14-pin DIP package, but it appears from the current datasheet that Toshiba has adopted the conventional CD4013 Set/Reset behavior, without changing the part suffix. I cannot find any documentation for when this change occurred, but, judging from datasheets I've seen on the web, it appears that this change in behavior was implemented sometime prior to the late 1990s. This means that, while older TC4013s might be available on, say, eBay, I don't know how you would know if they would be old enough to predate this change in functionality. You would probably need to test the chip out on a breadboard - tying the Set and Reset lines high and seeing how the Q output reacts - to be able to determine whether an old TC4013BP is usable in a Roland synth. And, as far as I know, no modern 4013 chips exhibit this odd Set/Reset behavior required by Roland synths of this era.

Anyways, I hope this helps better understand what's going on with your RS-09...!