Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/30/09 15:10
Read: times


 
Msg Score: 0
 -1 Offensive/Flame
 +1 Good Answer/Helpful
#172033 - Oh dear...
Responding to: ???'s previous message
Sherif said:
anyway that code a circuit worked well with me if it is not right it is the OP to use it or not

No, this code never worked, because it's just wrong! And it's your responsibility to publish something that works properly, if you want to be taken seriously in the future.

Sherif said:
i think the 75165 start sending when the clock pulse ends so you must set the first clock to get the first bit that is why i set the clock first because without the clock it won't send the first bit

You shouldn't give "help", if your understanding of shift registers is such miserable.

Sherif said:
BUT it should be

1-set clock to hi
2-set clock to low
3-Read data
that is why he miss the first bit !

Wrong, wrong, wrong! Qh is already at the output immediately after the parallel loading. There's no shift needed to bring Qh to the Qh output! It's already there. A shifting before reading Qh makes that Qg will appear at the Qh output now. So, if you clock the shift register before reading Qh, Qh is lost and what you read is Qg.

Is it so difficult to read a datasheet??

Kai Klaas

List of 31 messages in thread
TopicAuthorDate
74HC165            01/01/70 00:00      
   Document your code            01/01/70 00:00      
      pen and paper            01/01/70 00:00      
         It's still illegible!            01/01/70 00:00      
            code arranged            01/01/70 00:00      
         Why not format your code?            01/01/70 00:00      
            formatted code            01/01/70 00:00      
   Indentation is very Important            01/01/70 00:00      
      "Insert Program Code" Button            01/01/70 00:00      
   what are the expectations...            01/01/70 00:00      
      and the problem is...            01/01/70 00:00      
         your code is ambiguous            01/01/70 00:00      
            succes...            01/01/70 00:00      
               Pen and paper really is a good method            01/01/70 00:00      
                  Thanks & a weird point...            01/01/70 00:00      
                     Not Weird At All            01/01/70 00:00      
                        load pulse timing            01/01/70 00:00      
                           There's a reason why it doesn't say that ...            01/01/70 00:00      
                           Load Not Triggering a Shift Cycle            01/01/70 00:00      
            Working new code part            01/01/70 00:00      
   I think this may help            01/01/70 00:00      
      Same Problem OP First Had            01/01/70 00:00      
         Responding to: Michael            01/01/70 00:00      
            look at a logic diagram of the '165            01/01/70 00:00      
            Oh dear...            01/01/70 00:00      
               To Kai            01/01/70 00:00      
                  No, it never worked!            01/01/70 00:00      
                     try it            01/01/70 00:00      
                        No, the code will destroy the chips...            01/01/70 00:00      
                           Responding to: Kai Klaas's previous message            01/01/70 00:00      
            Responding to: Sherif            01/01/70 00:00      

Back to Subject List