Dear friend.

I am using Shiftin e Shiftout.
But this not functioning correctly.

Shiftout Di,Ck,MSBFIRST, [1\1,addr\3,0\1]
Shiftin Do,Ck,MSBPRE,[result\12]

addr=$05 ' For channel 0

or

addr=$07 ' For channel 1

I am thankful