[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720498-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-720498-en":130,"doc-similar-720498":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","ds3231-i2c-real-time-clock-arduino-and-chipkit-library-manual","DS3231 I2C Real-Time Clock Arduino and chipKit library - Manual","","DS3231 I2C Real-Time Clock library manual explains how to interface and use the DS3231 RTC with Arduino or chipKit boards, including default I2C Fast Mode behavior and compatibility notes for DS3232. It covers reliability benefits over DS1307, hardware I2C pin-sharing limitations, and fallback to a software-style TWI/I2C-like protocol when using alternate pins. The manual documents supported time/date structures, selectable formatting options, square-wave output settings, and core library constructor and access functions.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/ds3231-i2c-real-time-clock-arduino-and-chipkit-library-manual/720498/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/ds3231-i2c-real-time-clock-arduino-and-chipkit-library-manual/720498.png","ImageObject",300,407,{"name":42,"@type":43},"Aditya","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does the DS3231 library default to for I2C speed, and does it support DS3232?","Question",{"text":63,"@type":64},"The library defaults to I2C Fast Mode (400 kHz) when using the hardware I2C interface. It also works with the DS3232, though internal SRAM cannot be used.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Can this library share pins with the Wire library?",{"text":68,"@type":64},"The manual states it has not been tested with the Wire library and does not know whether pins can be shared. If pin-sharing causes problems, DS3231/DS3232 SDA and SCL can be moved to available pins, using an exclusive-access software-based protocol.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the library recommend configuring chipKit Uno32/uC32 for hardware I2C?",{"text":72,"@type":64},"It advises setting the JP6 and JP8 jumpers to the I2C position (closest to the analog pins) when using the hardware I2C interface.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},720498,1795037624,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":101,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":143,"preview_page_count":33,"preview_urls":144},962085564549,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","DS3231  \nDS3231 I2C Real-Time Clock Arduino and chipKit library  \nManual  \n[http://www.RinkyDinkElectronics.com/](http://www.RinkyDinkElectronics.com/) (C)2014 Rinky-Dink Electronics, Henning Karlsen  \nIntroduction :  \nThis library has been made to easily interface and use the DS3231 RTC with an Arduino or chipKit . The library will also work with the DS3232 RTC chip but you will not be able to use the internal SRAM .  \nThis library will default to I2C Fast Mode (400 KHz) when using the hardware I2C interface.  \nThe library has not been tested in combination with the Wire library and I have no idea if they can share pins.  Do not send me any questions about this. If you experience problems with pin-sharing you can move the DS3231/DS3232 SDA and SCL pins to any available pins on your development board . This library will in this case fall back to a software-based, TWI-/I2C-like protocol which will require exclusive access to the pins used .  \nI highly recommend using the DS3231 (or DS3232) instead of the DS1307 . While the DS3231/DS3232 may be slightly more expensive than the DS1307 it is much more accurate due to the internal TCXO (temperature-compensated crystal oscillator) and crystal . This also means that you don’t have to use an external crystal like you have to with the DS1307 .  \nIf you are using a chipKit Uno32 or uC32 and you want to use the hardware I2C interface you must remember to set the JP6 and JP8 jumpers to the I2C position (closest to the analog pins) .  \nFrom the DS3231 datasheet:  \nThe DS3231 is a low-cost, extremely accurate I2C realtime clock (RTC) with an integrated temperaturecompensated crystal oscillator (TCXO) and crystal . The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted. The integration of the crystal resonator enhances the long-term accuracy of the device as well as reduces the piece-part count in a manufacturing line. The DS3231 is available in commercial and industrial temperature ranges, and is offered in a 16-pin, 300-mil SO package .  \nThe RTC maintains seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year . The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator. Two programmable time-of-day alarms and a programmable square-wave output are provided . Address and data are transferred serially through an I2C bidirectional bus .  \nA precision temperature-compensated voltage reference and comparator circuit monitors the status of VCC to detect power failures, to provide a reset output, and to automatically switch to the backup supply when necessary . Additionally, the RST pin is monitored as a pushbutton input for generating a μP reset .  \nPlease note that this library only makes use of the 24-hour format, and that alarms are not implemented.  \nYou can always find the latest version of the library at [http://www.RinkyDinkElectronics.com/](http://www.RinkyDinkElectronics.com/)[ ](http://www.RinkyDinkElectronics.com/)[For version information](For version information) , please refer to version .txt .  \nThis library is licensed under a CC BY-NC-SA 3.0 (Creative Commons AttributionNonCommercial-ShareAlike 3.0 Unported) License .  \nFor more information see: [http://creativecommons.org/licenses/by-nc-sa/3.0/](http://creativecommons.org/licenses/by-nc-sa/3.0/)  \nLibrary Manual: DS3231 Page 1  \nStructures :  \n\n| Time; |  |\n| --- | --- |\n| Structure to\u003Cbr>Variables:\u003Cbr>Usage: | manipulate time-and date-data .\u003Cbr>hour, min, sec: For holding time-data\u003Cbr>date, mon, year: For holding date-data\u003Cbr>dow: Day-of-the-week with Monday being the first day\u003Cbr>Time t; // Define a structure named t of the Time-class |\n\nDefined Literals :  \n\n| Weekdays |\n| --- |\n| For use with setDOW() and Time.dow\u003Cbr>MONDAY: 1\u003Cbr>TUESDAY: 2\u003Cbr>WEDNESDAY: 3\u003Cbr>THURSDAY: 4\u003Cbr>FRIDAY: 5\u003Cbr>SATURDAY: 6","cbCaii9v2Snerocy","https://ap.wps.com/l/cbCaii9v2Snerocy","pdf",114042,"English","# Introduction\n# Structures\n# Defined Literals\n# Functions\n## DS3231(SDA, SCL)\n## getTime()\n## getTimeStr([format])\n## getDateStr([slformat[, eformat[, divider]]])","[{\"question\":\"What does the DS3231 library default to for I2C speed, and does it support DS3232?\",\"answer\":\"The library defaults to I2C Fast Mode (400 kHz) when using the hardware I2C interface. It also works with the DS3232, though internal SRAM cannot be used.\"},{\"question\":\"Can this library share pins with the Wire library?\",\"answer\":\"The manual states it has not been tested with the Wire library and does not know whether pins can be shared. If pin-sharing causes problems, DS3231/DS3232 SDA and SCL can be moved to available pins, using an exclusive-access software-based protocol.\"},{\"question\":\"How does the library recommend configuring chipKit Uno32/uC32 for hardware I2C?\",\"answer\":\"It advises setting the JP6 and JP8 jumpers to the I2C position (closest to the analog pins) when using the hardware I2C interface.\"}]","DS3231 I2C Real-Time Clock Arduino and chipKit library - Manual | PDF",15,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/57cd0a7d1b225ddc2d137f7c17fd9d67.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/343c832339e6bf4a887f22a05ec33310.webp",982,1388,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5052938042aca773591705cec4960b34.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e36dbab3adc34d95d6e75c69302fea10.webp",980,1385,{"list":162,"token":11},[163,169,175,181,187,193,199,205,212,218],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":101,"category_name":29,"create_tm":168},720580,"MCP4725 12-Bit DAC Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675645/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=bAGfrNf4tG1f73%2BmjvSJOO3QwBw%3D","mcp4725-12-bit-dac-tutorial",1795038301,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":55,"category_name":29,"create_tm":174},720505,"Adafruit DS3231 Precision RTC Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023674399/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=dED6GnDX0e0CR09DDCIN2YbM2Ns%3D","adafruit-ds3231-precision-rtc-breakout-guide",1795037639,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":105,"category_name":29,"create_tm":180},720244,"Arduino Nano SKU A000005 - Hardware Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024389986/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=pz1faukMi41%2BFMAtmcBcoyau6k4%3D","arduino-nano-sku-a000005-hardware-datasheet",1795035951,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":55,"category_name":29,"create_tm":186},690039,"Adafruit MCP23017 I2C GPIO Expander Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001921785/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=7yHf0D3TSg9pf9M4j6WDUbYhNC8%3D","adafruit-mcp23017-i2c-gpio-expander-breakout",1794145753,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":55,"category_name":29,"create_tm":192},720501,"Adafruit DS3231 Precision RTC Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397560/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=VdON6Zk8IN%2Bj03Vom88WRzUF1xY%3D","adafruit-ds3231-precision-rtc-breakout-720501",1795037628,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":123,"category_name":29,"create_tm":198},690042,"MCP23017 IO Expansion Board - User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001921843/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=kXJk8KNSWF8rKg1tHoVE4wUrvvg%3D","mcp23017-io-expansion-board-user-manual",1794145755,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":55,"category_name":29,"create_tm":204},720504,"DS3231 High Accuracy RTC ( Real Time Clock) for Raspberry Pi","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397565/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=pdjcnDLtvYGVVIs13bAHSk1LcVs%3D","ds3231-high-accuracy-rtc-real-time-clock-for-raspberry-pi",1795037633,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},670889,"Arduino Uno - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=az3tp5G8FdESzS3gXpL0PXvtGgA%3D","arduino-uno-datasheet",17,1793572479,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":101,"category_name":29,"create_tm":217},689933,"Adafruit PCF8574 I2C GPIO Expander - Overview - Wiring","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002264255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=RRpgJcl0JEkt07rKnBiedizblyk%3D","adafruit-pcf8574-i2c-gpio-expander-overview-wiring",1794136907,{"doc_id":219,"doc_title":189,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":33,"category_name":29,"create_tm":80},720499,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397556/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796184719&Signature=MKu3aM5juiIlTO2SwtGcUEb3zLM%3D","adafruit-ds3231-precision-rtc-breakout"]