I was a bit too quick to reply to your post. Shiftout will write to a device and Shiftin is used to read from a device. You will want to concentrate on Shiftout to communicate with the DS1802.