??? 05/12/09 07:27 Read: times |
#165248 - David Responding to: ???'s previous message |
I have changed the shift right loop form "received_data = received_data>>1;" to "received_data>>=1;"
But in the read function, the for loop gets the bit then places it in the byte and then shifts the byte to the right. This is done for all the bits, starting form the LSB to the MSB. I cannot find the extra shift. as you told me to do "You just write some values to a HT1380 register and then read it back. This should at least confirm your read and write routines match". I am writing to the HT1380. but when i read, there is no output. Can you suggest any tested routine that i can put into the MCU and interface with the HT1380. Akhil . . . . |