Hay
I have interfaced LPC2106 with 74HC164 (serial to parallel converter): P0.11 (Data In), P0.12 (CLK) How to send byte serially on to the 74HC164, I am confusing with C(keil ARM) code, how to send data serially
Regards Chandu
By definition, "serial" means that you just send one bit after another in sequence.
You probably also need to manipulate a clock line.
So the scheme is something like this:
REPEAT set clock high; send a bit; shift byte; set clock low; UNTIL all bits sent.
Whether you send the most-significant or least-significant bit and, therefore, whether you shift to the right or the left will - of course - depend upon your particular requirement.
You will also, of course, need to take care of the timing requirements...
The precise points at which you toggle the clock line will also depend upon your particular requirement.