counting from 10 to 0 decimal

Norfindel

Joined Mar 6, 2008
326
From the datasheet:

A logical ‘‘1’’ preset enable signal allows information at the
‘‘jam’’ inputs to preset the counter to any state asynchro-
nously with the clock. The counter is advanced one count at
the positive-going edge of the clock if the carry in and pre-
set enable inputs are at logical ‘‘0’’. Advancement is inhibit-
ed when either or both of these two inputs is at logical ‘‘1’’.​

The carry out signal is normally at logical ‘‘1’’ state and goes to logical ‘‘0’’ state when the counter reaches its maximum" count in the ‘‘up’’ mode or the minimum count in the ‘‘down’’ mode provided the carry input is at logical ‘‘0’’ state.
So, you need to get the "preset-enable" input temporarily high at power-on, and you can use the "carry out" signal to disable your clock, or if it's only one digit, maybe connecting it to the "carry in" input.

PD: you should capture the screen with the "Print Screen" button, then cut the image and attach it. That image you uploaded before cannot be read.
 
Last edited:

Reloadron

Joined Jan 15, 2015
7,892
This is your data sheet. FIGURE 13. CASCADING COUNTER PACKAGES clearly shows how to cascade two or more counters. The CD4029BMS consists of a four-stage binary or BCD-decade up/ down counter with provisions for look-ahead carry in both counting modes. The inputs consist of a single CLOCK, CARRY-IN (CLOCK ENABLE), BINARY/DECADE, UP/DOWN, PRESET ENABLE, and four individual JAM signals. Q1, Q2, Q3, Q4 and a CARRY OUT signal are provided as outputs.
The count down from a decimal 10 to 0 is 11 counts (10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0). Each counter will require a BCD to 7 Segment display driver. A single counter will only display 9 through 0 which is what you have so you add another counter and display driver. The counters allow a preset (Q1, Q2, Q3 and Q4). There is also a PRESET-ENABLE allowing you to load your preset value. The Function Table in the data sheet shows the logic levels for the function pins.

What part of this are you not understanding?

Ron
 

Thread Starter

le011

Joined Dec 28, 2018
17
hi all,Ty for your support.
this is where im standing now: in the photo this is what achieved for now.
two counters,two bcd 7 segment. they counting down but cant get the count from 1 and 0 .
its start from 99.
 

Attachments

Thread Starter

le011

Joined Dec 28, 2018
17
hi all,Ty for your support.
this is where im standing now: in the photo this is what achieved for now.
two counters,two bcd 7 segment. they counting down but cant get the count from 1 and 0 .
its start from 99.
or even from 11..
 

Reloadron

Joined Jan 15, 2015
7,892
A high PRESET ENABLE signal allows information on the JAM INPUTS to preset the counter to any state asynchronously with the clock. A low on each JAM line, when the PRESET-ENABLE signal is high, resets the counter to its zero count.

Your PE seems to be tied to Ground? So you are not loading your PE. That's what I see.

Ron
 

dl324

Joined Mar 30, 2015
18,357
Corrected image from earlier post; missed the fact that you had the A jam input tied HIGH. Also corrected wiring to CI and CLK:
upload_2018-12-29_13-51-59.png

You also have the A jam input tied HIGH on the second counter. Neater wiring might have let you see the mistake more easily.
 
Last edited:

Norfindel

Joined Mar 6, 2008
326
I don't know what is the usual way of doing this, but you can probably use an RC circuit to drive the "preset enable" pins high for an instant during power on. Some ICs don't like slowly changing inputs, so if the ICs acts funny with the RC circuit, add a schmitt trigger gate before the PE pins.
Schmitt trigger inverters coupled with RC circuits can also be used to make an oscillator for the clock signal.
You need to use the "jam inputs" to preset a "1" on the left digit and a "0" on the right digit. Probably defaults to 0, and there's no need to preload that one. Check that.
 

Thread Starter

le011

Joined Dec 28, 2018
17
So if I understand you wright, if I will put push button and tie the PE pin to Hight when powering on the circuit the preliad value s will load and then tie it to ground it will start counting the way I want?
 

Thread Starter

le011

Joined Dec 28, 2018
17
HOW TO STOP THE COUNTING IN 00?? HMMM....
WELLIF I OPEN THE SWITCH THE COUNT WILL STOP AND RESRT TO 10.
I WANT IT TO BE STOPED AT 00....
 
Last edited:

dl324

Joined Mar 30, 2015
18,357
HOW TO STOP THE COUNTING IN 00?? HMMM....
WELLIF I OPEN THE SWITCH THE COUNT WILL STOP AND RESRT TO 10.
I WANT IT TO BE STOPED AT 00....
This is your homework. Tell us what you've tried. You've already been given a big hint.
 

dl324

Joined Mar 30, 2015
18,357
WELL FINALY I DID IT....TY ALL ...
You added a gate and a switch and managed to make the schematic hard to read again. Try being neater. In the long run, it will help you and anyone who has to read your schematic.

You've implemented preset backwards and the AND gate is unnecessary.
 

Thread Starter

le011

Joined Dec 28, 2018
17
You added a gate and a switch and managed to make the schematic hard to read again. Try being neater. In the long run, it will help you and anyone who has to read your schematic.

You've implemented preset backwards and the AND gate is unnecessary.
preset backwards WHATS THAT MEANS?
 

dl324

Joined Mar 30, 2015
18,357
preset backwards WHATS THAT MEANS?
Preset is HIGH active and you connected them to a pull-up resistor. You should have connected them to a pull-down resistor and have the switch pull it HIGH when it's closed.

In other words, preset is normally not active and is activated by the switch.
 

Thread Starter

le011

Joined Dec 28, 2018
17
Preset is HIGH active and you connected them to a pull-up resistor. You should have connected them to a pull-down resistor and have the switch pull it HIGH when it's closed.

In other words, preset is normally not active and is activated by the switch.
OK..I SEE NOW.TY I WILL TRY IT.
WHAT ABOUT THE AND GATE?WHAY IT IS NOT NESSARY?
 

Thread Starter

le011

Joined Dec 28, 2018
17
but if im doing it im doing pool up ,in the begging when the system powers up it wont be in the 10 until i will activate the switch.
this way the system ready for counting from 10 and waiting for activation comand.
no good?
 
Top