??? 12/30/09 11:52 Modified: 12/30/09 12:08 Read: times |
#172030 - Responding to: Michael Responding to: ???'s previous message |
Michael
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 anyway that code a circuit worked well with me if it is not right it is the OP to use it or not and i will read the datasheet again maybe i wrote a wrong code but it worked < you know that happens sometimes :D > thanks for clearing to me that i'll repeat the work with the 74165 again thanks UPDATE :: the OP didn't wait to clock to finish,he reads the data in the middle of the clock he did as: 1- set clock to hi 2- Read data 3- set clock to low 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 ! I will not repeat my work again :D but thanks anyway check the codes and tell Michael your opinion ,, it matters with me !! waiting.... Sherif Gamal |