help needed with DS1302 and SPI
Posted: Fri Oct 31, 2008 8:12 am
could anyone give me an example of running the DS1302 real time clock on SPI and printing the result on a LCD, im using the PIC16F877A, i've tried several things, but no luck. is there a simple way to do this with send char, recieve char. i've tried sending 0x81(command byte) to the chip after a chip-enable, and then trying to receive the data in a while-loop, then setting chip enabled low and then printing on LCD, but all im getting on the LCD is 255.. ive even tried to replace the DS1302, because i thought it could be the chip that had a fault, but still no luck.
any help would be appriciated..
best regards
Christian Skov
any help would be appriciated..
best regards
Christian Skov