TEP DOWNLOAD CENTER

Project Files of DS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino

Libraries Code Projects Simulation
tep://download-terminal ds3231-rtc-module-tep-v1-0-0b8983a181684a0fa0127cb09599c4ca.zip ZIP archiveV1.0Verified109 downloadsFree
DS3231 RTC Module Library for Proteus V1.0: the ZS-042 module with its STATUS panel while an alarm fires
Proteus library · File 1 of 1

DS3231 RTC Module Library for Proteus V1.0

DS3231 RTC Module Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • HEXHEX firmware

Description

Looking for the files of DS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino? DS3231 RTC Module Library for Proteus V1.0 is the ZIP package (1.2 MB) you need. It holds the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. Below are the file structure, the README and the installation steps, so you can go from download to a working Proteus simulation in a few minutes.

What this library is

DS3231-RTC-Module-Library-for-Proteus-v1.0.zip with the ZS-042 DS3231 RTC module (the time and date in BCD, two alarms on INT / SQW, the square wave, the temperature, OSF and the CR2032 coin cell, the AT24C32 EEPROM), Simple and Advance (TEPDS3231.LIB and TEPDS3231.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO simulation with its HEX file, the RTClib demo sketch and a README.

This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.

What is inside the ZIP file

  • ArduinoV4TEP.LIB – Proteus library, 201.9 KB
  • TEPDS3231.LIB – Proteus library, 68.9 KB
  • TEPARDUINO.DLL – Simulation model, 883.5 KB
  • TEPDS3231.DLL – Simulation model, 321.5 KB
  • DS3231-RTC-ArduinoUnoV4.pdsprj – Proteus simulation, 24.1 KB
  • DS3231_Demo.ino – Arduino sketch, 7.5 KB
  • and 4 more, all listed in the File Structure tab

The archive unpacks to 2.7 MB and carries its own README (README.txt), shown in the README tab above.

How to download

Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.

How to install

  • Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
  • Step 2: Close Proteus and copy ArduinoV4TEP.LIB and TEPDS3231.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPARDUINO.DLL and TEPDS3231.DLL into the MODELS folder next to it, so the part simulates.
  • Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
  • Step 5: Open DS3231_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
  • Step 6: In Proteus set the controller's Program File to DS3231_Demo.hex; on hardware, flash the same file.
  • Step 7: Open DS3231-RTC-ArduinoUnoV4.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, DS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino, explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.

Read DS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino

File Structure

ds3231-rtc-module-tep-v1-0-0b8983a181684a0fa0127cb09599c4ca.zip10 files · 5 folders · 2.7 MB unpacked
DS3231-RTC-TEP-v1.0/10 files · 2.7 MB
Arduino Code/1 file · 7.5 KB
DS3231_Demo/1 file · 7.5 KB
INO DS3231_Demo.inoArduino sketch 7.5 KB
Proteus Library Files/2 files · 270.8 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPDS3231.LIBProteus library 68.9 KB
Proteus Model Files/2 files · 1.2 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPDS3231.DLLSimulation model 321.5 KB
Proteus Simulation/4 files · 1.3 MB
DSN DS3231-RTC-ArduinoUnoV4.pdsprjProteus simulation 24.1 KB
HEX DS3231_Demo.hexCompiled HEX file 51.2 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPDS3231.DLLSimulation model 321.5 KB
TXT README.txtText file 20.6 KB

README

README.txt 349 lines
DS3231 RTC MODULE LIBRARY FOR PROTEUS - V1.0 (ZS-042: DS3231 REAL-TIME CLOCK + AT24C32 EEPROM)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/10/ds3231-rtc-module-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/ds3231-rtc-module-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
The built-in monitor is our TEP Serial Monitor Advance - its own article:
  https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
The demo sketch uses one Arduino library (not included - install it with the
Library Manager of the Arduino IDE; it brings Adafruit BusIO with it):
  RTClib 2.1.4 (MIT), by Adafruit:
    https://github.com/adafruit/RTClib
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
DS3231-RTC-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO), to LIBRARY
|   |-- TEPDS3231.LIB                                  68.9 KB   the ZS-042 DS3231 module (2 parts), to LIBRARY
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model, to MODELS
|   |-- TEPDS3231.DLL                                 321.5 KB   the DS3231 model, to MODELS
|-- Proteus Simulation/
|   |-- DS3231_Demo.hex                                51.2 KB   both UNOs (the demo sketch V1.0)
|   |-- DS3231-RTC-ArduinoUnoV4.pdsprj                 24.1 KB   demo: 2 UNOs, 2 DS3231 modules
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPDS3231.DLL                                 321.5 KB   copy of the model
|-- Arduino Code/
|   |-- DS3231_Demo/DS3231_Demo.ino                     7.5 KB   the demo sketch (RTClib)
|-- README.txt                                        ~21.6 KB   this file
Total: 2.72 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the ZS-042 module of the Arduino shops: the DS3231
real-time clock and the AT24C32 EEPROM on one blue board, with a CR2032 coin
cell under it. Our own model, written from the two datasheets:
  * The DS3231 at I2C 0x68: the time and date in BCD (registers 00 - 06:
    seconds, minutes, hours in 12- or 24-hour mode, the day 1 - 7, the date,
    the month with the century bit, the year), counted by its own
    temperature-compensated 32.768 kHz oscillator (inside the chip - no
    crystal on the board). The 7 time registers are latched at the START of a
    read, so a read is always consistent; writing the seconds restarts the
    second.
  * Two alarms (07 - 0A and 0B - 0D) with their mask bits: every second /
    minute, at given seconds, minutes, hours, on a date or a day of the week.
    A match sets A1F / A2F; with INTCN = 1 and A1IE / A2IE the INT / SQW pin
    goes LOW until the sketch clears the flag.
  * INT / SQW (open drain, the board's 4.7 kohm pull-up): the alarm interrupt
    (INTCN = 1) or a square wave of 1 Hz, 1.024, 4.096 or 8.192 kHz
    (INTCN = 0); 32K: the 32.768 kHz output (EN32kHz).
  * The temperature (11 / 12, 0.25 C steps), converted every 64 s and when
    the sketch sets CONV (BSY meanwhile).
  * Power: VCC runs the I2C bus; the coin cell keeps the clock running
    without it (EOSC = 1 stops the oscillator on the cell, BBSQW keeps the
    square wave on it). With neither the chip stops: the next power-up clears
    the registers (2000-01-01 00:00:00) and sets OSF (the oscillator stop
    flag) - lostPower() in RTClib.
  * The AT24C32 at I2C 0x57 (A0 - A2 open): 4096 bytes, a 12-bit address in
    two bytes, 32-byte pages (a write that crosses the page end wraps to the
    page start), 5 ms to write after the STOP (no ACK meanwhile - the sketch
    can poll for it), current, random and sequential reads.
The module is drawn at about its real size next to the Arduino UNO V4.0
(the real ZS-042 is 38 x 22 mm), seen from above: the DS3231SN, the AT24C32,
the 472 resistor network (the pull-ups of SCL, SDA, SQW and 32K), the
charging diode and its 201 resistor, the A0 - A2 pads, the 6-pin header
32K SQW SCL SDA VCC GND and the 4-pin pass-through header.
TEP additions: the SIMPLE / ADVANCE badge, the PWR, I2C and SQW LEDs, the
panel button, and the coin cell drawn beside the chips (it sits under a real
board) - click it while the simulation runs to take it out, once more to put
it back.

TWO DEVICES IN ONE LIBRARY (search "DS3231" in Pick Devices):
  Simple    DS3231TEP     "DS3231 RTC Module ZS-042 V1.0 - Simple"
  Advance   DS3231ADVTEP  (the same, "- Advance")
            (category Modules > RTC)
  Simple    On-Sheet Panel: the STATUS panel under the module - the banner
            (green while it runs, blue when the sketch sets the time, amber
            for OSF, an alarm, no coin cell or VCC off, red for no power),
            TEMPERATURE - / +, COIN CELL, the presets COLD 0 C, ROOM 25 C and
            HOT 50 C, the clock as the chip counts it, ten readouts and the
            last four events. The red X closes the panel; the PANEL button
            opens it again.
  Advance   Pop-Up Panel: only the module on the schematic; at Run a TEP
            pop-up window opens - the look of the TEP Serial Monitor. Tabs
            Clock, Event log and Tests; gear and ? icons for Settings and
            Help; the palette icon switches the theme:
              Clock      the time, the date and the day, the banner, four
                         tiles (the temperature, power, OSF, the INT / SQW
                         pin), the registers 00 - 12 as the sketch reads
                         them, the two alarms, the last I2C transactions
                         decoded; the coin cell and the temperature on the
                         toolbar
              Event log  the time set and read, alarms, temperature, EEPROM,
                         power, warnings (filters, pause, clear)
              Tests      Time, Alarms, EEPROM, Power (THE TEST TOOLS)
              Settings   theme, text size, open at Run, window size
              Help       report a bug, suggest a feature, article, updates,
                         donate, forum; Copy diagnostics for a bug report
            The OPEN PANEL button opens the window again.
Both devices use one model, TEPDS3231.DLL.

TEST STATUS
V1.0: verified in Proteus 8.5 on 18 Oct 2026 (the demo project as shipped:
two Arduino UNO V4.0 boards with their built-in monitors; node 1 the
Simple part with TIME = LOST, node 2 the Advance part with TIME = PC).
What the run showed:
  * Node 1: "the RTC lost power (OSF): the time is set from the sketch's
    compile time" - adjust() wrote the compile time, OSF cleared; node 2
    started at the PC's time with OSF 0.
  * ALARM 5: alarm 1 set for 5 s later (control 1C to 1D), fired on the
    second, SQW LOW, the sketch printed it and cleared A1F 2 s later.
  * SAVE / LOAD: one 15-byte page write; the sketch's ACK polling saw 38
    refused addresses and measured the write cycle at 5.5 ms; the note
    read back.
  * SQW: the 1 Hz square wave (control 01) counted on interrupt 0.
  * The coin cell out (the pop-up): "RUNNING ON VCC, NO COIN CELL"; back in.
  * MINUTE: alarm 2 fired at the next 00 seconds.
  * HOT 50 C: the chip still showed 25.00 C until its conversion at 64 s,
    then 50.00 C (register 11 = 32).
  * Node 1 with the guarded real mouse: a click on the coin cell took it out
    (RUNNING ON VCC, NO COIN CELL), COIN CELL on the panel put it back,
    + and HOT 50 C changed the air, ALARM 3 fired with the SQW LED lit -
    every click read back from the model on the first try.
  * 71.6 s of simulation took 246 s with the pop-up and both monitors open
    (about 0.29 x real time).

INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPDS3231.LIB with the two
   parts, and our Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO
   UNO V4.0 used by the demo) to the LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
   LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPDS3231.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS).
   ArduinoV4TEP.LIB and TEPARDUINO.DLL are the files of our Arduino Library
   V4.0 - if you have it, they are the same.
4. Delete TEPDS3231.IDX from the LIBRARY folder if it is there (Proteus makes
   a new index).
5. Start Proteus. In Pick Devices (P) search "DS3231".

RUN THE DEMO
"Proteus Simulation\DS3231-RTC-ArduinoUnoV4.pdsprj" - keep the .hex file and
the two DLLs beside the project.
  ARD1: Arduino UNO V4.0 + U1 = the DS3231 module (Simple), TIME = LOST - a
        new module: the sketch finds OSF set and sets the time.
  ARD2: Arduino UNO V4.0 + U2 = the DS3231 module (Advance), TIME = PC - the
        coin cell kept the time (the PC's clock at Run).
  Both UNOs run DS3231_Demo.hex: SDA on A4, SCL on A5 (the SDA / SCL header
  pins), SQW on D2 (interrupt 0); VCC and GND go to the rails, 32K stays
  open. Each UNO has its serial monitor built in ("TEP Arduino UNO - ARD1" /
  "- ARD2").
  1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does the
     pop-up of U2 (move it aside - it opens over the schematic). ARD1 prints
     that the RTC lost power and sets the time from the sketch's compile
     time; both print the time and the temperature every 5 seconds.
  2. Type ALARM 5 in ARD2's monitor: 5 seconds later alarm 1 fires, SQW goes
     LOW (the SQW LED), the sketch prints it and clears the flag 2 s later.
  3. SQW: the 1 Hz square wave on SQW (the LED blinks, the sketch counts the
     ticks); SAVE text / LOAD: a note in the EEPROM; MINUTE: alarm 2 at the
     next full minute.
  4. Click the coin cell (or COIN CELL on the panel / toolbar) to take it out;
     HOT on the panel: the chip shows 50 C after its next conversion.
Closed a monitor window? Click the UNO's USB port.

WIRING
  Module pin    Arduino UNO (the demo)
  VCC           5V (the DS3231 runs from 2.3 to 5.5 V)
  GND           GND
  SDA           A4 (or the SDA header pin)
  SCL           A5 (or the SCL header pin)
  SQW           D2 (interrupt 0; D3 = interrupt 1) - open drain
  32K           open (the 32.768 kHz output)
In the demo VCC and GND go to power terminals and SDA, SCL and SQW to labels
(SDA_1, SCL_1, SQW_1 ...) at the UNO's header. The serial monitors need no
wires: they are built into the Arduino UNO V4.0.
REAL HARDWARE:
 * The ZS-042 has its own 4.7 kohm pull-ups on SDA, SCL, SQW and 32K.
 * It charges the coin cell from VCC through a diode and a 200 ohm resistor
   (201): fine for a rechargeable LIR2032, not for a CR2032 - remove the
   resistor (or the diode) when you use a CR2032.
 * A fresh module (or one whose cell was out) starts with OSF set: check
   lostPower() and set the time once with adjust().
 * The DS3231 keeps +-2 ppm from 0 to 40 C (about a minute a year).

THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the model during the running simulation; each shows one
"Good for:" line and, where it judges, a verdict per row (green = fine, amber
= check, red = wrong, grey = only an explanation).
  Time    Good for: a clock that shows 2000-01-01, a time that does not move,
          a wrong hour (12 / 24 h), a wrong day. The clock, OSF, the sets and
          reads by the sketch, the last read byte by byte in BCD.
  Alarms  Good for: an alarm that never fires, one that fires every second,
          an INT pin that stays LOW. Both alarms' registers with their mask
          bits, INTCN, A1IE / A2IE, the flags.
  EEPROM  Good for: data that is not saved, a byte lost while the EEPROM
          writes, a write that wraps around its page. Writes, reads, the
          refused addresses (no ACK during the 5 ms), the page wraps and the
          memory around the last page written.
  Power   Good for: the time lost after a power cut, a missing coin cell, a
          clock that stops on the battery. VCC, the coin cell, the
          oscillator, EOSC, BBSQW, OSF.

THE DEMO SKETCH ON THE SERIAL MONITORS
DS3231_Demo (both UNOs) - RTClib 2.1.4: begin(), lostPower() and adjust()
from the compile time, then the time and the temperature every 5 seconds.
Commands:
  TIME                       the time now
  SET YYYY-MM-DD HH:MM:SS    set the time (adjust())
  ALARM n                    alarm 1 in n seconds (hours, minutes, seconds)
  MINUTE                     alarm 2 every minute (at 00 seconds)
  SQW                        the 1 Hz square wave on SQW (the ticks counted)
  OFF                        the alarms off, SQW released
  TEMP                       the temperature
  SAVE text / LOAD           a note in the AT24C32 at 000 (ACK polling)
  STATUS                     the control and status registers, the SQW pin
  HELP
An alarm pulls SQW LOW: interrupt 0 catches it, the sketch prints it and
clears the flag 2 s later. Commands are not case-sensitive; type them in the
UNO's built-in monitor and press Enter.
RTClib 2.1.4 reads the temperature's signed MSB as unsigned (-5.25 C comes
back as 250.75): the sketch subtracts 256 above 127.

PROPERTIES (double-click the part > Edit Properties)
  TIME         the time at start: PC (the PC's clock at Run - the coin cell
               kept it), LOST (2000-01-01 00:00:00 with OSF set - a new
               module) or YYYY-MM-DD HH:MM:SS
  BATTERY      the coin cell at start: IN or OUT (without it the time is lost
               at power-up)
  TEMPERATURE  the temperature around the module at start, in C (-40 to 85)
  OUT32K       OFF (32K held HIGH by the pull-up) or ON (the 32.768 kHz
               output driven - 65,536 edges a second slow the simulation)
  PANEL        Simple only: the STATUS panel at the start, OPEN or CLOSED
Every run starts again from the properties.
The demo's UNOs (ARDUINO UNO V4.0): PROGRAM DS3231_Demo.hex, MONITOR YES (the
built-in monitor), BAUD 9600, AUTOOPEN YES, BOOTLOADER YES.

LINKS.INI (OPTIONAL)
The Help page cards of the Advance device open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPDS3231.DLL with lines KEY=URL, for example:
  ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.

TROUBLESHOOTING
* "no DS3231 at 0x68": SDA / SCL swapped, VCC missing (the PWR LED), or the
  part has no model (TEPDS3231.DLL in MODELS and beside the project).
* The time shows 2000-01-01 after every Run: TIME = LOST or BATTERY = OUT -
  the sketch must set it (lostPower() + adjust()).
* An alarm never fires: INTCN is 0 (the square wave is on), A1IE is off, or
  the flag of the last alarm was never cleared - Alarms shows each bit.
* SQW stays LOW: an alarm flag is set - clearAlarm() releases it.
* The EEPROM loses bytes: the next access came during the 5 ms write cycle,
  or the write crossed a 32-byte page end and wrapped - EEPROM shows both.
* The temperature does not change: the chip converts every 64 s - wait.
* No UNO / no monitor window: TEPARDUINO.DLL is missing, or click the UNO's
  USB port.
* Advance: the pop-up does not appear - click OPEN PANEL on the board, or
  turn "Open the panel at Run" on its Settings page back on.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and (Advance) the Copy diagnostics text:
  https://www.theengineeringprojects.com/forum/category/ds3231-rtc-module-proteus-library

SUPPORT US
This library is free. If it saves you time, please support our work:
  https://www.theengineeringprojects.com/donate

WEBSITE
  https://www.theengineeringprojects.com/

LICENCES AND THIRD-PARTY NOTES
* The DS3231 model (TEPDS3231.DLL), the symbols and artwork and the Arduino
  Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP
  Serial Monitor Advance) are made by The Engineering Projects. The model is
  an independent implementation written from the DS3231 and AT24C32
  datasheets. It uses only standard Windows libraries; no Visual C++
  redistributable is needed. The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library
  V4.0 - its microcontroller is Proteus's own AVR model): The Engineering
  Projects, https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch, RTClib 2.1.4,
  Adafruit BusIO 1.17.4 and the Arduino AVR core 1.8.6.
  - RTClib: Copyright (c) Adafruit Industries and JeeLabs, MIT License;
    https://github.com/adafruit/RTClib
  - Adafruit BusIO: Copyright (c) 2017 Adafruit Industries, MIT License;
    https://github.com/adafruit/Adafruit_BusIO
    MIT License: Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation files
    (the "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to permit
    persons to whom the Software is furnished to do so, subject to the
    following conditions: The above copyright notice and this permission
    notice shall be included in all copies or substantial portions of the
    Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
  - The Arduino AVR core 1.8.6 includes LGPL-licensed code; its source code is
    available at https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
  The demo sketch is included (Arduino Code).
* Proteus is a product of Labcenter Electronics and is not included. Arduino is
  a trademark of Arduino SA. DS3231 and AT24C32 name the chips of compatible
  modules, not an endorsement. This library is not made or endorsed by Analog
  Devices / Maxim Integrated, Microchip / Atmel, Adafruit or Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit
the sketch, install "RTClib" (2.1.4 or newer, with Adafruit BusIO) with the
Library Manager, open Arduino Code\DS3231_Demo\DS3231_Demo.ino, select
Arduino Uno and use Sketch > Export Compiled Binary. Replace the
simulation's .hex with the exported HEX. DS3231_Demo needs 18,622 bytes of
flash and 637 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the DS3231's registers 00 - 12, the time counted from the
simulation clock (BCD, 12 / 24 hours, the day, the date with the month
lengths and leap years, the century), the time latched at a read's START, the
countdown chain restarted by writing the seconds, both alarms with their
masks, the flags and INT / SQW, the square wave (1 Hz - 8.192 kHz), 32K,
the temperature conversions (every 64 s, CONV, BSY), VCC, the coin cell,
EOSC, BBSQW, OSF and the power-on values; the AT24C32's pages, write cycle
(no ACK), reads and the page wrap; the I2C bus at the bit level.
How the parts work with the circuit: digital pins; SCL / SDA are read at every
edge, SDA driven LOW to ACK and to send; INT / SQW and 32K driven LOW or
HIGH (the board's pull-up) at their exact times; VCC and GND read as logic
levels every 20 ms.
Not modelled: the aging offset's effect and the oscillator's ppm error (the
clock is exact; the aging register is stored), the current, the coin cell's
voltage and charging, the EEPROM's A0 - A2 pads (always 0x57), the 400 kHz
timing limits.
The model's own choices: a conversion takes 0.2 s; the EEPROM's write cycle
5 ms; the 1 Hz square wave goes LOW at each new second and HIGH half a second
later; 32K is driven only with OUT32K = ON.

VERSION
TEP DS3231 RTC library V1.0 (Oct 2026). Devices DS3231TEP / DS3231ADVTEP
(TEPDS3231.LIB / TEPDS3231.DLL). Demo sketch DS3231_Demo V1.0 (SDA A4, SCL A5,
SQW D2), RTClib 2.1.4. Demo board: ARDUINO UNO V4.0 (TEP Arduino Library V4.0)
with its built-in serial monitor.
Advertisement

Development1 release

  1. V1.0DS3231 RTC Module Library for Proteus V1.0this page

    V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.

Installation8 steps

From the download to a working project, in order. The steps follow what the package contains.

You will need

  • Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
  • Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click ds3231-rtc-module-tep-v1-0-0b8983a181684a0fa0127cb09599c4ca.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (DS3231-RTC-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB and TEPDS3231.LIB and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.

  3. 3

    Add the simulation model

    Copy TEPARDUINO.DLL and TEPDS3231.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 4

    Restart Proteus and place the component

    Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.

  5. 5

    Open the sketch in the Arduino IDE

    Open DS3231_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to DS3231_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open DS3231-RTC-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    DS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download DS3231 RTC Module Library for Proteus V1.0?

Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.

What is inside the archive?

DS3231 RTC Module Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 10 files.

What should I do if the download does not start?

Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.

Is this file free?

Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.

How do I check that the file arrived complete?

Compare its SHA-256 with the one on this page, 7fa8f895276874a6e66e064b5eaddf1bf7d6a4ded904f5556e3422c55e4e86d0. In PowerShell run Get-FileHash "ds3231-rtc-module-tep-v1-0-0b8983a181684a0fa0127cb09599c4ca.zip"; on macOS or Linux run shasum -a 256 "ds3231-rtc-module-tep-v1-0-0b8983a181684a0fa0127cb09599c4ca.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.

Do I need WinRAR to open the ZIP file?

No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.

Where do I put the LIB and IDX files?

Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.

Which Proteus version does the library need?

The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.

How do I get the HEX file into the simulation?

Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.

preparing · ds3231-rtc-module-tep-v1-0-0b8983a181684a0fa0127cb09599c4ca.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 109Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 18 Oct 2026Uploaded at
Last 14 days59 downloads
SHA-256 7fa8f895276874a6e66e064b5eaddf1bf7d6a4ded904f5556e3422c55e4e86d0
DocumentationDS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.