??? 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 |