hy,i am using DS3231SN with arduino UNO board.i want to set an alarm to wake the arduino using RTC interrupt pin which connect to the external interrupt pin of arduino.i am not able to write the code for DS3231SN. can anybody suggest me that how to write the code.i am enough clear with logic but not able to find ,how to implement the code for DS3231SN.

i mean how to write the code?how to access the address of RTC and how to write the value in it?

I just googled your chip, and found that there is an Arduino library for it.

The DS3231SN is a wide temperature range version of the DS3231. I highly recommend Jack Christensen’s library for that device. The name is DS3232, but it works with the DS3231 and is designed for both chips.