Author Topic: NAND only freq. counter  (Read 18998 times)

0 Members and 1 Guest are viewing this topic.

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
NAND only freq. counter
« on: April 04, 2015, 02:55:42 am »
I'm vegetating a bit here at my electronics bench ATM as I wait for parts on back-order and project funds are on hold for home maint. stuff. This is what I knocked up yesterday afternoon as a diversion from my major projects.

I'm going to need a frequency counter to monitor the synth for my 630m TX in my exciter rack. I have a bunch of these old ZM1050 neon display/indicator tubes, which I figured would make for a nice visual readout. These rare indicator tubes were originally designed as a nixie substitute as when nixie tubes first appeared there was a dearth of economical H.V. switching transistors available to drive them. The ZM1050 has a trigger electrode for each neon light and can be driven from logic-level signals as low as 5V - no expensive HV transistors required. Unfortunately for Phillips/Mullard, shortly after they put the ZM1050 to market affordable H.V. transistors arrived and their unique little neon indicator device went instantly obsolete.

So I wired up a B.C.D. counter and a decimal decoder to test the tubes out, but with a twist. A uC would be the most practical way to implement a freq. counter, but that is pretty BORING. So I did it entirely in  NAND gates - 74HC00 to be precise. It's pretty basic. There are just four pure-edge-triggered slave/master DFF's configured as a ripple counter, that resets to 0 on count 10(bin). The B.C.D. to decimal decoder is of the weighted "pyramid" configuration, which is the most economical on NAND gates that I am aware of.

Note that a counter and display decoder for a freq. counter would require a latch between the B.C.D. counter and the decoder. I didn't prototype the latches as that would have required an additional four 74HC00's and I only had one.

Unfortunately most of my ZM1050 are stuffed. They were originally salvaged from a seismic chronograph and ran for years 24/7. Most of them no longer trigger properly. So to implement my freq. counter I have decided to use jumbo 7-segment LED displays instead, which means that now I am going to have to embark on the comatose task of wiring a B.C.D. to 7-segment decoder, which unfortunately will take a fair few additional NAND gates.

I intend to build the counter 100% entirely with NAND gates. Even the high-gain signal input amplifier and be implemented with NAND gates forced to operate in analogue mode. This will be a 6-digit counter with a fixed gate period of 1s (the 630m band is 500 kHz). After this is spun off I'll do an other counter for my H.F. band(s) exciter entirely in NOR gates.







« Last Edit: April 04, 2015, 05:53:42 am by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #1 on: April 04, 2015, 06:19:59 am »
Quote
...which means that now I am going to have to embark on the comatose task of wiring a B.C.D. to 7-segment decoder, which unfortunately will take a fair few additional NAND gates.


Done. Now I just need to implement leading digit supression I/O. LED-segment drive capacity will be implemented by putting gates in parallel if necessary.

« Last Edit: April 04, 2015, 06:21:55 am by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #2 on: April 04, 2015, 09:49:54 am »
OK, I've completed the logic design for a complete single digit counter card and have it 95% drafted. These cards are just cascaded for how many number of digits the counter needs to have. There will be a second circuit board for the counters clock/timebase, signal amplifier input and control.

I managed to fit it into 33 74HC00 packages. Two gates are unused for 130 NAND gates in total. The 7-segement outputs are active low, for common anode displays. This is just a rough view of the complete circuit logic diagram, I still have to finish drafting it and then thoroughly check it over before starting the PCB layout.
 


EDIT: there is a wiring error in the diagram above for the display decoding of the "e" segment.
« Last Edit: April 06, 2015, 01:31:42 pm by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline Thor-Arne

  • Supporter
  • ****
  • Posts: 500
  • Country: no
  • tinker - tinker, little noob.....
Re: NAND only freq. counter
« Reply #3 on: April 04, 2015, 01:08:42 pm »
Nice  :-+

Hope you post a image the pcb  ;)
 

Offline Vgkid

  • Super Contributor
  • ***
  • Posts: 2710
  • Country: us
Re: NAND only freq. counter
« Reply #4 on: April 04, 2015, 04:59:11 pm »
That will be impressive when finished.
If you own any North Hills Electronics gear, message me. L&N Fan
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #5 on: April 06, 2015, 05:04:56 am »
Hope you post a image the pcb  ;)


I stuffed it onto a super home-brew friendly single-sided layout with a 100 thou grid and 50 thou tracks. The etch tank is heating up. It's a pretty big board though. This counter is going to require a 4U rack case.

Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline Thor-Arne

  • Supporter
  • ****
  • Posts: 500
  • Country: no
  • tinker - tinker, little noob.....
Re: NAND only freq. counter
« Reply #6 on: April 06, 2015, 07:05:34 am »
Impressive that you got to fit all that onto a single sided board.  :-+
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #7 on: April 06, 2015, 09:03:02 am »
There may be a wire link or two  ;)
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: NAND only freq. counter
« Reply #8 on: April 06, 2015, 09:09:29 am »
There may be a wire link or two  ;)

1 or 2 means 12 or 21 ? :D btw... really nice project  :-+ :-+ :-+
 

Offline Thor-Arne

  • Supporter
  • ****
  • Posts: 500
  • Country: no
  • tinker - tinker, little noob.....
Re: NAND only freq. counter
« Reply #9 on: April 06, 2015, 11:11:59 am »
I expected some links, still impressive.
Sometimes I struggle to get counter circuits to fit on a two layer board, even with wire links. ;)
 

Offline ConKbot

  • Super Contributor
  • ***
  • Posts: 1384
Re: NAND only freq. counter
« Reply #10 on: April 06, 2015, 12:11:51 pm »
Nice work, lots of Karnaugh maps and boolean math? Jeeze its been a while since I could say Ive done any work like that.
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #11 on: April 06, 2015, 01:26:32 pm »
Nice work, lots of Karnaugh maps and boolean math?


Just a little of the latter.
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #12 on: April 06, 2015, 01:28:31 pm »
This evening I got the 14 IC's of the B.C.D. counter loaded. The scope shot shows the counter B.C.D. outputs cycling 0 through 9.

« Last Edit: April 08, 2015, 11:28:56 pm by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline Alex Eisenhut

  • Super Contributor
  • ***
  • Posts: 3338
  • Country: ca
  • Place text here.
Re: NAND only freq. counter
« Reply #13 on: April 06, 2015, 05:21:27 pm »
Nice scopes. What's with that gap in the 545's side panel?
Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #14 on: April 08, 2015, 02:14:00 pm »
Nice scopes. What's with that gap in the 545's side panel?

The side panel is just be***snip***...follows: 




EDIT:
Oops, just killed this post and erased almost all of the content. Wanted to quote a section of it but clicked "modify" instead.


   
« Last Edit: April 29, 2015, 01:06:29 pm by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline phenol

  • Regular Contributor
  • *
  • Posts: 146
Re: NAND only freq. counter
« Reply #15 on: April 08, 2015, 05:52:13 pm »
How about using linearized 74HCU04 in the frontend?

a year ago i too made an all discrete CMOS logic freq 8-digit counter, but it wasn't just NANDs that I used. the frontend consists of a broadband discrete transistors amp feeding a 74AC132 gate. it's all ac coupled and the lower freq limit is in the low 100s of kHz...but it's sensitivity is <8mV up to 210MHz. This is the point where the 74AHC74 divider after the '132 squarer craps out.
 

Offline Alex Eisenhut

  • Super Contributor
  • ***
  • Posts: 3338
  • Country: ca
  • Place text here.
Re: NAND only freq. counter
« Reply #16 on: April 08, 2015, 07:13:36 pm »
Nice scopes. What's with that gap in the 545's side panel?

The side panel is just bent slightly. I'll flatten it out one day.


I was hoping you'd know what this is for. I don't see it in any pictures of other scopes, and it's not on the mechanical diagram.
It looks like something hooks in there.

Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #17 on: April 09, 2015, 12:09:33 pm »
How about using linearized 74HCU04 in the frontend?


Well, I just have this weird desire to do it all in NAND gates.
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #18 on: April 09, 2015, 12:10:41 pm »
Nice scopes. What's with that gap in the 545's side panel?

The side panel is just bent slightly. I'll flatten it out one day.


I was hoping you'd know what this is for. I don't see it in any pictures of other scopes, and it's not on the mechanical diagram.
It looks like something hooks in there.


Dunno. My 545 panel doesn't have any holes in it where the bend is and none of my other 5XX series scopes have one of those.
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #19 on: April 09, 2015, 12:15:14 pm »
I love it when I solder all of the bits to the board, wire it up and it just works  :)

« Last Edit: April 09, 2015, 12:17:33 pm by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: NAND only freq. counter
« Reply #20 on: April 09, 2015, 01:46:00 pm »
Well, I just have this weird desire to do it all in NAND gates.

Real men do it with AND gates.

BTW, I like your PCB design, it has an artistic beauty.
 

Offline harrimansat

  • Regular Contributor
  • *
  • Posts: 219
Re: NAND only freq. counter
« Reply #21 on: April 09, 2015, 05:49:35 pm »
You can use pnp germanium transistors... :)






« Last Edit: April 09, 2015, 06:00:44 pm by harrimansat »
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #22 on: April 10, 2015, 02:47:11 pm »
Well, I just have this weird desire to do it all in NAND gates.

Real men do it with AND gates.


That would prove challenging.


Quote
BTW, I like your PCB design, it has an artistic beauty.


Thanks. In the rush to get the layout to PCB I missed putting a radius on a number of the 90 degree bends. That's since been fixed.
« Last Edit: April 10, 2015, 02:50:29 pm by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #23 on: April 10, 2015, 02:47:51 pm »
You can use pnp germanium transistors... :)

Nice old design!
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

Offline GKTopic starter

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: NAND only freq. counter
« Reply #24 on: April 10, 2015, 02:49:16 pm »
Here is the completed schematic for the counter board., now that it has been built and tested. I am currently laying out the PCB for the timebase.


« Last Edit: April 10, 2015, 02:51:04 pm by GK »
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf