srj0408:
I think i figured out the problem, but i am not sure though. I think its due to some registers settingsI my header file for DS1337, i am using these settings
#define DS1337_SP 0x0E
#define DS1337_SP_EOSC B00000000
#define DS1337_SP_RS2 B00010000
#define DS1337_SP_RS1 B00001000
#define DS1337_SP_INTCN B00000000
#define DS1337_SP_A2IE B00000010
#define DS1337_SP_A1IE B00000001
I dont know your header file, nor your library, but I think it should be something like this (I did not check the datasheet for corresponding bits, just an example derrived from what you provided)
#define DS1337_SP B00011011
Anyway, dump the whole code above to see if you could get it working, on startup, the DS1337 should load default values on startup with oscillator == ON.