Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 31st October 2009, 02:25 PM   #1
Default A little confusion with 0s & 1s

Hello I've been studying this, and I understood it but by accepting something that got me confused, is not a big thing to understand, but i need somebody to help me disipate the fog from my sight.

There's a 8-bit ring counter with 7 1s and a 0 preset and it shifts that 0 around the counter and applies it to every row at 5kHz, and theres the priority encoder to represent that state. When there's a key closure, a column is connected to a row, and when the 0 is applied to that row the column is also taken low, so the otherpriority encoder represents that state.

But my confusion is: when the key closure connects a row and a column because of the diode the input of the column encoder will be at 0, because no current will flow from the row to the column, it doesn't matter is the row is high or low, but it will from V+ to the row, and when the 0 is applied to the row connected there's always a 1 put in it from +V, right?.

So, I'm seeing something different than what says there, and that is, when there's a key closure and the 0 is applied to that row the cloumn is taken low too, and that way the encoders will represent that state, but what i see, is that always that there's a closure the column will be taken low independently on the state of the row (explained above), and when the 0 is applied to the row it will be taken high because of the connection to +V.

Thanks.
Attached Thumbnails
A little confusion with 0s & 1s-64.bit-keyboard-encoder.jpg  
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein
Karkas is offline  
Old 31st October 2009, 02:40 PM   #2
Default

hi,
The switches are normally open.

The '0' bit circulating in the 8 s/r takes each row low sequentially, whether or not a switch is pressed, also the corresponding switch Y plane line is taken low at the same time.

With no switches pushed the column inputs remain high, if a switch is pushed then when that Y plane line goes low the column line will go low.

OK.?
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 31st October 2009 at 02:41 PM.
ericgibbs is offline  
Old 31st October 2009, 03:03 PM   #3
Default

Thanks for the answer, I understand what you say the column inputs remain high when no swithc are pushed and the 0 is sequentially circulating for each row, but my confusion is, why if the 0 is put to some row it is not taken high by the connection to +V when the key is cloed? i mean ok it's low, but what happens with that closure? it is conected by the key to +V, right?

And why is it necessary to pull Low the row too when the key is closed to put the column low? I don't understand that, I mean if the key is closeed no current is flowing by the column, it flows throught the row, or the fact that there's a 1 in the row makes it not to flow there but to flow throgh the cloumn, if that's the answer for that question, the new question is why? what is the diode doing there?

I mean i can accept that and move on, but just accept it 'cause I'm not understanding.

Excuse me for the lot of questions, but I'm confused and I don't like leaving something without understanding.
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein

Last edited by Karkas; 31st October 2009 at 03:05 PM.
Karkas is offline  
Old 31st October 2009, 03:21 PM   #4
Default

Quote:
Originally Posted by Karkas View Post
Thanks for the answer, I understand what you say the column inputs remain high when no swithc are pushed and the 0 is sequentially circulating for each row, but my confusion is, why if the 0 is put to some row it is not taken high by the connection to +V when the key is cloed?
Because its columns are connected to +V via a resistors, not directly.

i mean ok it's low, but what happens with that closure? it is conected by the key to +V, right?

And why is it necessary to pull Low the row too when the key is closed to put the column low?
Because you need 6 bits to give 64 switch combinations and without the row going low how would closing switch pull the column low.?


I don't understand that, I mean if the key is closeed no current is flowing by the column, it flows throught the row, or the fact that there's a 1 in the row makes it not to flow there but to flow throgh the cloumn, if that's the answer for that question, the new question is why? what is the diode doing there?
If the diode wasnt there every time a row line was pulled low, [when a switch is pushed] all the other rows would be pulled low, you dont want that to happen,,, so the diode blocks that path.

I mean i can accept that and move on, but just accept it 'cause I'm not understanding.

Excuse me for the lot of questions, but I'm confused and I don't like leaving something without understanding.
hi,
Its ok to ask.
Attached Thumbnails
A little confusion with 0s & 1s-64.bit-keyboard-encoder.jpg  
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 31st October 2009 at 03:24 PM.
ericgibbs is offline  
Old 31st October 2009, 04:01 PM   #5
Default

Quote:
Originally Posted by ericgibbs View Post
Thanks for the answer, I understand what you say the column inputs remain high when no swithc are pushed and the 0 is sequentially circulating for each row, but my confusion is, why if the 0 is put to some row it is not taken high by the connection to +V when the key is cloed?
Because its columns are connected to +V via a resistors, not directly.
Ok I can see that, but then where goes the current? I mean the row is low and the column is connected to +V via a resistor, not directly. but that makes current not to flow to the row, and what makes the current not to flow to the column either? because taking the row low when the key is closed takes the column low too, haven't understand that

i mean ok it's low, but what happens with that closure? it is conected by the key to +V, right?

And why is it necessary to pull Low the row too when the key is closed to put the column low?
Because you need 6 bits to give 64 switch combinations and without the row going low how would closing switch pull the column low.?
My question is not that, it is How pulling the row low also puts the column low to? it's related to the first red question, where goes the current? why do I convert that 1 provenient from +V and nulle it puting row and column low?


I don't understand that, I mean if the key is closeed no current is flowing by the column, it flows throught the row, or the fact that there's a 1 in the row makes it not to flow there but to flow throgh the cloumn, if that's the answer for that question, the new question is why? what is the diode doing there?
If the diode wasnt there every time a row line was pulled low, [when a switch is pushed] all the other rows would be pulled low, you dont want that to happen,,, so the diode blocks that path.
I'm sorry but I don't see that, the why would the other rows be pulled low? where is the connection? the only path I see related to the diode is the one that connects it to the columns.
I mean i can accept that and move on, but just accept it 'cause I'm not understanding.

Excuse me for the lot of questions, but I'm confused and I don't like leaving something without understanding.


hi,
Its ok to ask.
Thanks.
I think I'm about to understand. But that's jus what I think.
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein
Karkas is offline  
Old 31st October 2009, 05:02 PM   #6
Default

hi,
Do you follow this.?
Attached Thumbnails
A little confusion with 0s & 1s-aaesp01.png  
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 31st October 2009, 05:18 PM   #7
Default

I realized something, maybe the cause of my missunderstanding is an or some unanswered questions that I have, when the output os the shift register is LOW it is demanding current, right? i assume that because when I see(that's my understanding) the key closed (green, right?), the way the arrow is headed is towards the S/R output, if it's that way I'm almost sure that now I can understand. And i see that when th key is closed and the row is high, there's no demand of current and it goes through the column, and when the row is pulled low it demands current and that way the column is pulled low too.
If that's the explanation, then I understood. If it's not, then I'm not there yet.

Thanks.
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein
Karkas is offline  
Old 31st October 2009, 05:56 PM   #8
Default

Quote:
Originally Posted by Karkas View Post
I realized something, maybe the cause of my missunderstanding is an or some unanswered questions that I have, when the output os the shift register is LOW it is demanding current, right? i assume that because when I see(that's my understanding) the key closed (green, right?), the way the arrow is headed is towards the S/R output, if it's that way I'm almost sure that now I can understand. And i see that when th key is closed and the row is high, there's no demand of current and it goes through the column, and when the row is pulled low it demands current and that way the column is pulled low too.
If that's the explanation, then I understood. If it's not, then I'm not there yet.

Thanks.
hi,
The S/R acts as a 'current sink' when the pin is low, this means it will pull the pin and the switch line low.

It looks as though as you have got the idea.

The input pins of the Row and Col ic's just follow the voltage level on the row and col lines, as they are inputs.

If the diodes were not present, then say two switches are pushed on different rows you would connect 2 of the S/R output pins together which is not recommended. The diodes prevent this.

Anymore questions.?
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 31st October 2009 at 05:57 PM.
ericgibbs is offline  
Old 31st October 2009, 06:11 PM   #9
Default

Thank you very much, the diodes prevent that together with the fact that there is only one 0 moving around the counter, right? because if there were another 0 then diode wouldn't prevent anything if I pressed another key.

I had that confusion for some time, I even start a thread based on that, in this same forum.

So let me corroborate: when the output is HIGH it suplies current and when it's LOw it sinks it. I would like to ask you something that was never answered in that thread, why in the datasheets, that current in the LOW level has a plus (+) and in the HIGH level it has a minus (-), I thought that that (-) is because in the HIGH level it demands current, and the opposite happened in the LOW level, because I've read in many other sites and Digital Systems Textbooks, that the current in the LOW level was higher than in the HIGH level, (what I don't remember is if that was only with CMOS chips).

Thanks again.
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein
Karkas is offline  
Old 31st October 2009, 06:18 PM   #10
Default

Quote:
Originally Posted by Karkas View Post
Thank you very much, the diodes prevent that together with the fact that there is only one 0 moving around the counter, right? because if there were another 0 then diode wouldn't prevent anything if I pressed another key.

I had that confusion for some time, I even start a thread based on that, in this same forum.

So let me corroborate: when the output is HIGH it suplies current and when it's LOw it sinks it. I would like to ask you something that was never answered in that thread, why in the datasheets, that current in the LOW level has a plus (+) and in the HIGH level it has a minus (-), I thought that that (-) is because in the HIGH level it demands current, and the opposite happened in the LOW level, because I've read in many other sites and Digital Systems Textbooks, that the current in the LOW level was higher than in the HIGH level, (what I don't remember is if that was only with CMOS chips).

Thanks again.
hi,
In that datasheet was the statement referring to an input or an output, also was it a TTL datasheet.?
Do you have a copy of that d/s to post.??
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 31st October 2009, 06:28 PM   #11
Default

It was referring to an output, and it's a CMOS.
Here it is.
CD4013 pdf, CD4013 description, CD4013 datasheets, CD4013 view ::: ALLDATASHEET :::

I struggled with that.
Attached Thumbnails
A little confusion with 0s & 1s-struggling.jpg  
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein

Last edited by Karkas; 31st October 2009 at 06:30 PM.
Karkas is offline  
Old 1st November 2009, 08:17 AM   #12
Default

Quote:
Originally Posted by Karkas View Post
It was referring to an output, and it's a CMOS.
Here it is.
I struggled with that.
hi,
Extract from the Manufacturers Specifications:

Positive current is defined as conventional current flow into a device.
Negative current is defined as conventional current flow out of a device.
Attached Thumbnails
A little confusion with 0s & 1s-aaesp03.gif  
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 1st November 2009, 09:06 AM   #13
Default

Thank you very much, fog dissipated.

That wasn't one of the notes, right?
I'm looking it up and can't see it.
__________________
"A person who never made a mistake never tried anything new"
Albert Einstein
Karkas is offline  
Reply

Tags
confusion

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
need help...confusion in some questions samisyed General Electronics Chat 0 15th August 2009 08:28 AM
Crystal Confusion micro571 Micro Controllers 8 16th July 2009 09:39 AM
Speaker Confusion PeterDove Micro Controllers 14 25th May 2009 03:33 AM
confusion over AD620 raviram87 Electronic Projects Design/Ideas/Reviews 1 19th February 2008 03:23 PM
Inductor Confusion m1tch37 General Electronics Chat 4 24th June 2007 03:59 PM



All times are GMT. The time now is 06:19 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker