I need help with my school project. What I have to do is a real time clock DS1305 communication with SPI interface on Hitachi H8/3048 (C language). I am beginner and I don't really know how to start. The best way for me to learn are code examples but I cant find many of them. Can you explain how to initialize SPI and how should the read/write functions looks like? I will be very grateful for ANY help.