TIC4 Time Interval Counter: 64 bit timestamps – 100 ns resolution

A time interval counter – this little device, based on an Atmel AVR ATMega32L assigns 64 bit time-stamps to events (event being a rising edge on INT1 interrupt), based on a 10 MHz OCXO, a Trimble 65256 10 MHz double oven oscillator. So, 100 ns resolution. The main purpose: precise monitoring of pendulum clocks – in combination with a temperature-air pressure-real time clock data logger.

Why TIC4 – well, there are several other (earlier designs), some with better resultion by interpolation (via a clock synchronizer and interpolation circuit). But for the given purpose, there is no need for any more than a few microseconds of resolution, because it is really hard to detect the zero-crossing of a mechnical pendulum to any better resolution.

For test purposes, I had the circuit running on a 16 MHz clock, with ordinary (not very precise or phase locked) 20 Hz, and 2 Hz signals at the input – running overnight to check for any glitches.

tic4 allan dev 50 ms

tic4 allan dev 500 ms

The Allen deviation plots show that for single events, the timing accuracy is about 150-200 ns, close to what is theoretically possible for a 16 MHz clock.

The AVR program code, it looks simple, but believe me, it isn’t. There are quite a few pitfalls, because for any timing of the interrupt, there needs to be a precise time-stamp generated, and transmitted to the host. Maximum time stamp rate is 100 Hz nominal (1 timestamp every 10 ms), but will work up to about 150 Hz, without missing any events. Timestamps are transmitted with every 16 bit timer overflow, chiefly, every about 6.6 ms (65535 x 100ns). Each timestamp and control info is 120 bit long (12 bytes, 8N1 protocol, 57600 baud) – 2.1 ms.

tic4.c AVR code

For test purposes, the serial data is sent to a PC, via a MAX3232 TTL to RS232 converter. Alavar is used to process the information into Allan deviation plots.
Test showed absolutely no glitch in about 1.3 million events – fair enough!

More details to follow.

Ordinary Wheat Bread: well-proven US recipe

This is a good, fast and simple wheat bread. Optimized for baking in gas-fired ovens.

1600 g wheat flour (1:1 mix of ordinary and bread flour; up to about 300 g wholewheat flour is OK)
30 g salt
1 package dry yeast

Dry-mix thoroughly.

Add 1200 mL of warm water.

Mix/knead. Let rise thoroughly. Knead again – add some flour as needed.

Form elongated shape breads. Let rise.

Bake in pre-heated oven to 425 F. For best result, add water in tray at start of baking.

ordinary wheat bread

Some (good old German) baking recipes: strudel, marble cake, Gugelhupf

Gugelhupf

500 g Weizenmehl Type 405
1 Msp. Salz
1 Würfel Hefe
150 g Butter
100 g Zucker
3 Eier
225 mL Milch

Hefeteig zubereiten. Gehen lassen.

100 g Rosinen (abbrühen und durchsehen – schlechte aussortieren) unterkneten.

In Gugelhupfform geben, gehen lassen

180 Grad Unter-/Oberhitze, 50 min backen – etwas in Form auskühlen lassen, dann stürzen. Puderzucker aufbringen wenn kalt. Fertig!!

gugelhupf

Marmorkuchen

250 g Butter
260 g Zucker
6 Eier
1 Msp. Salz
Gründlich schaumig schlagen.
400 g Mehl mit 1 Pck. Backpulver mischen und durchsieben.
170 mL Milch

Rührteig zubereiten.

Hälfte davon in Gugelhupfform.

Zum Rest: 100 g geriebene Bitterschokolade und 40 g Kakao. Gründlich durchrühren.
In die Form geben und mit Messer durchmischen (marmorieren)

Backen: 160 Grad Umluft, 50-55 Minuten (mit Holzstab prüfen)
In Form etwas abkühlen lassen, dann stürzen. Puderzucker drauf oder Glasur (nach Geschmack). Fertig!!

Strudel (Quark- und/oder Kirsch)

Strudelteig zubereiten aus
500 g Weizenmehl Type 405
1 TL Salz
1/4 L lauwarmes Wasser
80 g geschmackloses Öl (Sonnenblume, Raps)

30-60 Minuten ruhen lassen!!

Füllung:
500 g Magerquark
200 g 40% Fett Quark
4 Eier
120 g Zucker
40 g Gries
Alles gut mit Schneebesen durchrühren.

150 g Mandeln gemahlen (auf Füllmasse aufbringen)
1 Glas Kirschen (gründlich abtropfen, für Kirschstrudel), oder 200 g Rosinen (gut wässern und aussortieren), fuer Quarkstrudel

Zweckmässig 3 Strudel formen auf bekannte Art (Teig dünn ausziehen, Quarkmasse aufbringen, gemahlene Mandeln aufbringen, Kirschen oder Rosinen aufbringen, Strudel zusammenrollen)

100 g geschmolzene Butter – Form gut ausstreichen, Strudel gut streichen.

Evtl. Vanillesauce dazu.

175 Grad Umluft, 45 Minuten backen. Fertig!!

strudel

quarkstrudel

kirschstrudel

HP 436A Power Meter: smoke and stench – X-rated cap failure

By coincidence, another HP 436A power meter – this one, emitting smoke and terrible stench! The culprit was easily found, a defective X-rated cap. One of the known-bad epoxy covered capacitors that tend to blow after about 30 or 40 years of service.

436a x2 capacitor 100 n

The residue, oily stuff, terrible smell. Use plenty isopropanol or methylated spirits to clean – otherwise, the stench will stay with the instrument for years, and I can’t say that it is a healthy smell.

436a 100n oily

The cap is of the well-known PME271M series. Still available, but hopefully, with improved construction.

436a pme 271 m 610

436a pme271 series

A replacement is easily found – taken from an old switchmode power supply. Make sure to take a “X2” cap, not an ordinary cap. Only X2 caps are specified for mains voltage service, and self-exinguishing, anything else will present a major fire hazard, don’t compromise on the choice of capacitor!

436a 100n x2 replacement

Fix complete – new cap soldered in, and insulated with some electrical tape. In general, I tend to avoid electrical tape where possible, but in this case, it appears to be the only viable solution.

436a fix complete

HP 436A Power Meter: a strange analog ground issue

This power meter had been received with strange defect, a permanent overrange error, irrespective of any settings or input to the sensor. Sure enough, in most cases, this would be because of a dead sensor – but not here.
The 436A is a really simple instrument, at first glance, but with its design dating back over 40 years (mid-1970s), it has a remarkable complex design to achieve the A/D conversion, and to use something close to a CPU, at the time, called a state controller.

What was wrong with this unit? Something with the analog ground driver.

Checking the A2 and A3 assemblies, it turned out that the analog ground was floating, at about -6 V. Strange! And, simple enough, grounding the analog ground on either A2 or A3 solved the issue! For a temporary fix, a wire was added, from the board edge connector, to chassis ground. Need to look at the analog ground driver…

436a analog ground wire

Using chassis ground for general grounding – an indication of the dated design, and some of these board use 3 or 4 separate grounding path to keep noise down…

436a analog gnd schematic

After this fix, working again (still need to check out what it wrong with the analog ground driver).

Update: found the issue – lower right and corner of above diagram, this is the analog ground driver (also supplying analog ground to the A3 assembly (via mother board) – transistor Q1 found dead, a 1854-0003 (which is equivalent to 1854-0637, JEDEC 2n2219A, or any other ordinary 0.8 W NPN transistor).

436a 1854-0003 2n2219a

Soldered in a 2n2219A, and removed the temporary ground wire. Fix done.

436a analog ground circuit

After a full calibration and extended test, the instrument is rock stable, both for zero point, and 1 mW input. Also checked linearity, and it appears to be better than any means available here to check… most likely, better than 0.1 dB.

Output of the 50 MHz 1 mW cal source – cross checked with a calibrated HP power meter, 437B , and in agreement within 0.01 dB – good enough!

436a pwr meter working

Some other issue with this unit – a stuck analog indicator. After disassembling the front panel, used a razor blade to open up the plastic case of the indicator, and some mechanical adjustment of the inner workings fixed the issue.

436a analog indicator

436a front panel

The 7 segment decoders, these use heat transfer compound, for some pretty unusual way for HP design – being pushed vs. the front panel for cooling. To make sure these stay cool, I added some fresh white stuff.

436a dm9374 7seg decoder driver latch

The decoders are quite remarkable anyway, for their time – these are latching decoders with constant current output, high level integration for the early 70s….

HP 8663A Signal Generator: another power supply repair

Always good to do a proper test of equipment after repair – especially, after a power supply repair – see recent post 8663A pwr supply repair. In most cases, all will be fine, but this time, another failure followed the initial repair: the -10 V rail showed an error, only providing about -8 V to the instrument, not enough, to keep it going. An issue with the A7A1 assembly, linear regulator board, hp part 08662-60157 (the HP 8662A uses an identical assembly).

After some checks it was clear that the final pass transistor Q2 was OK, and that there was no current limit issue (by checking the voltage drop over the sense resistor, R36).

8663a pwr -10v section a7a1 08662-60157

So, I guessed, something must be wrong with U2, the actual regulator. This is a 1826-0016, alias LM104H. Not quite a common part, at least, I didn’t have a spare on hand. Found some new old stock online, about USD 3 per piece, well, not too bad. It arrived a few days later, but, the exchange of U2 was to no avail – still no regulation.

8663a pwr lm104h alias hp 1826-0016

Well, I should have done a proper check earlier – turns out, the transistor Q7 (2N2904A) didn’t provide enough current for the final stage, despite being fully driven by U2. This time, I had more luck and found a 2N2904A in my parts collection (datecode: 7050 – 46 years old – but still working, hfe=170).

8663a pwr 2n2904a

Some final test with a 25 Ohms power resistor to test under load, before risking any damage to the venerable 8663A. And, long story short, all is good now.

8663a pwr test setup

HP 8569B Spectrum Analyer: sweep issues on larger spans, A18 full multiband assy issue

A quick repair story from a kind contributor (Martin, you can find him at www.mjbrf.com).

Symptoms:
(1) I have a unit that generally works OK but has stopped displaying spans above 2MHz/div.

(2) I still get a display on the higher frequency settings e.g. span/div frequency etc etc are displayed at top. However, no trace is displayed.

(3) If I manually sweep using the 100 MHz test signal / comb generator or external frequency source I can still identify the peaks of the signals in the higher span/div settings.

Note that there is a “NARROW” signal used in these machines, which will switch state when span is set above 2 MHz/div. So, best start with looking at all the circuits that are affected by the NARROW signal.

Solution:

The problem was with the A18 (Full multiband assembly board).
When I scoped out the “over sweep blanking signal” (TP1) the signal was high as soon as the unit was set to >= 5MHz/div.
The signal into the board was OK though.

Anyway, I checked U3B opamp and the signal on the output was stuck high on all the higher ranges.

Note:
After inspection of the schematics and downstream circuitry ……
* Removing the multiband board allowed viewing of the higher span/div settings, without the full / multi band and over sweep blanking functionality.
* Isolating the over sweep blanking connector pin from the A18 board to the backplane allowed all ranges to be viewed, but without the over sweep blanking function. Note: The display still looked OK without the over sweep blanking.

Anyway, I changed U3 and U7, but still no luck with the operation. Then I re-checked all diodes and feedback resistors around the opamps.
On inspection, I found that the feedback resistor R29 for U3B (see schematic below) had failed open circuit and was effectively putting U3 into an open loop configuration and thus saturating the output.

The resistor has been replaced and it all seems OK at the moment.

8569b a18 full multi-band assy

This is a quite uncommon fault, on a low-power resistor – maybe a singular fault, or a lot of defective resistors, who can tell for sure.

HP 8663A Signal Generator: switchmode power supply repair

A heavy guest on my bench, a 8663A signal generator. These generators are exceptionally clean, perfect for close-in noise measurement and receiver checks. Still today, hard to find a cleaner source, especially not, if you are on a less than USD 30k budget.

Symptom – easy to describe. Unit turns on, but only briefly, then switches off; over voltage protection light activated at times; a lot of noise on the DC rails when shorting out the safety circuits.

After some probing, the culprit could be located: one of the input capacitors. While this is a common failure mode of other equipment, these caps don’t fail too often for such HP equipment, because only best-in-class components were used, and these are typically run cool, for long life. Still, one of these 32DR6593 SPRAGUE Compulytic caps failed (resistance about 100 kOhm, virtually no capacitance, rapid self-discharge when charged to 50 V for test, framed red in the schematic below).

8663a pwr supply schematic

These were replaced by 81D series Nippon Chemi-Con (Vishay) caps. To call this a successful repair, you might wish to check the ESR specifications – the SPRAGUE had about 0.25 Ohms, the Nippon 81D (680 µF, 250 V) has about 0.198 Ohm, good enough. Note that the 600 µF screw-type terminal caps might still be available, but they are pretty expensive, so I opted to for Nippon Chemi-Con, USD 2.50 per piece, surplus, rather than USD 50 for a pair of screw-type caps. I still think it is a good compromise, because this is not about restoring old equipment, but to make this unit working again, quickly, and at lowest cost.

8663a 32dr6593 data

8663a cap vishay 81d

8663a new and old caps

Some repair is also needed on the A7A3 board – there are 22 µF caps that provide a low impedance DC input to the switching transistor, these are essential for operation (framed green in the schematic). They still work, but were hot, and stressed, possibly overstressed, by the dead main cap. Their can be replaced by any good cap, I use Shiangchen GSA T axial caps, 105 deg C rated. Note that the schematic calls for 15 µF, but 22 µF (measuring about 28 µF) were present in the circuit.

8663a a7a3 pwr supply board

With the power supply disassembled, always a good idea to take out the boards for cleaning, and for re-tightening of the screws holding the various TO-3 regulators in place. Some of these were pretty loose (no wonder, with 30+ years of thermal stress on the boards).

After the repair, add thermal compound to the heatsink/cover – this power supply has a rather critical thermal design. Then, make sure to check the insulation resistance and electrical soundness/earth leakage, which is always a good idea after repair of switchmode power supplies.

HP8568B Repair Story: 249, 275 unlock

Quick story from a contributor, no pictures:

8568B Spectrum Analyzer. When switched on – following error codes were displays:
249 unlock
275 unlock

Findings (in German; in short, there was an issue with thw 275 MHz oscillator, C10 had been replaced before, along with Q5; replacing C10 with a high-quality adjustable cap and increasing capacity a bit, this increasing feedback, the issue could be resolved; root cause: oscillator did not start oscillation reliably when powdered up, because of a lossy C10 cap).
##########################################
Der Übeltäter war auf der Platine A18
275 MHz Phase lock Oscillator..
Nach diversen Abgleichen fehlte plötzlich
das Ausgangssignal. Als ich das Modul
herausnahm, sah ich,
dass jemand vorher schon herumgelötet hat.
Das C10 war durch einen billigen Keramik-C
ersetzt, ausserdem war ein neuer Transistor
Q5 eingesetzt.
Am Werktisch liess sich zeigen, dass der
Oszillator nicht immer anschwang. Mit
Betriebsspannung ab und wieder anschalten
scwang der Oszillator dann wieder an.
Ich habe das C10 durch einen hochwertigen
Trimmer ersetzt, die Kapazität etwas höher
eingestellt (mehr Rückkopplung)
und der Fehler war beseitigt..

Es ist auch bemerkenswert, wie relativ stabil
der Osz. freischwingend läuft, trotz der
doch einfachen Schaltung.
##########################################
Thank You Bodo for sharing this.

A13 30 MHz Reference Oscillator: a reasonably quiet oscillator, and a noise cable

A nice little oscillator assembly came my way, supposed to generate about 17 dBm at 30 MHz. Nothing special at first glance, but after checking out its internals, it appeared to be worth a more careful look.

a13 ref osc

A hand-made box, and even more labor intensive assembly work inside. All build by point-to-point wiring, using only the best components available, glass trimmer caps, filters, mica caps – most of these parts are still available today – about 100 USD bom, at least.

a13 upper side

a13 lower side

After a bit of reverse engineering, here the schematic, a modified Colpitts oscillator. Note: base resistor of 2N5109 is 150 Ohms.

a13 schematic

To measure phase noise, connected it to my HP 3585A spectrum analyzer (this is really a great piece of equipment, a bit heavy, but still best of class noise performance and holding this title for the last 35 years….). Connected the oscillator via a 6 dB attenuator, to provide a clean load to the output, rather than dealing with the imperfections of cables, adapters, and the analyzer input.

30 mhz ref osc floor0

Quite shocking, all this noise. The green trace shows the analyzer noise floor. Check, and re-check, still a lot of noise. Too much to be true. After 3 hours of tests, found the issue: a defective BNC cable. Center connector was fine, but both shields were non-connected.

a13 bnc plug

A bit more examination of these cable shows their lousy construction. Not bad for 2 dollars a piece, but you get what you pay for…. the shield is not even reaching to the plug – there is a 5 mm gap from the screen end, to the actual plug. So even if all would have been connected fine, the would still be a lot of leaking, from inside out, and outside in.

a13 rg-58u cable

Notice the BNC plugs – these have a somewhat uncommon construction, the dielectric is covered at the front… not quite according to BNC standard.

a13 bnc cable assy

Clearly visible, the cold solder joint…. Turns out, both ends were open-circuit at the shield.

a13 bnc cold solde

Finally, using a good quality BNC cable (also, using LMR-195 double-screened cable). Looking much better. Noise is down -115 dBc at 10 kHz from carrier. It’s good, but not great. I think one could do better, especially, considering all the pricy parts, and high-quality construction. A good target for a Colpitts osciallator would be better than -130 dBc, at 10 kHz separation.

30 mhz ref osc recheck1

Note the pink trace – this is the bad cable, terminated with a 50 Ohm resistor (with the shield broken at both sides, it is actually a 1 meter wire antenna, with an open-circuit 50 ohm resistor at the end).