Two quick things that you may or may not have considered: The 1302 has a maximum capacitance spec for the 32K clock crystal. Exceeding this will prevent it from running. I've also had boards with the most minute amount of flux & wash muck around the crystal and chip that wouldn't run. Extra cleaning is called for. Next, I haven't checked your code, but a common eror is to ignore the fact that the 1302's SCLK must be low when /RST is brought high to start a sequence. Sorry I have used this chip a good number of times, but not with PICs. This is all I can offer, and I hope it is of some help. This is a super timekeeping chip which gives good bang for the buck, but I've spent countless hours the fist time I used one on a project. It was worth sweating it out though.....hang in there... Chris > > > I am trying to hook a Dallas 1302 Timekeeping chip up to a > > > 16f877. I am using PortD 4-6 for the 3-wire interface, and the > > > read/write routines available from Dontronic's rtc1302.asm file > > > (appropriately modified to work on the pins I have selected). Is > > > there any problems with using these routines on a 877? Are there > > > better ones? > > > > > > My main problem is that I can't seem to get it going, which is > > > always annoying! I was wondering if anyone has any ideas? I have > > > confirmed that the chip is correctly wired to the correct pins > > > :-) and as far as I can tell it is all wired up correctly. > > > > > > I am using a RomZap III Bootloader and hardware kit. My code is > > > listed below with all of the RomZap bits removed (I don't think > > > I've left any important bits out): -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu