DS3231 Get Time

<< Click to Display Table of Contents >>

Navigation:  Hardware Modules > aMG High Precision RTC >

DS3231 Get Time

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?



This block need I2C Setup block for selected I2C port.

What can be configured?

Configuration item

Selectable option/ Value


I2C module

1| 2| 3

Select I2C module to communication with DS3231 device.

Output port

1. Port Status, this status of reading time from DS3231 device. This status  is Boolean, TRUE - Success/ data valid, FALSE - Fail.

2. Port Hour, reading value of Hour.

3. Port Minute, reading value of Minute.

4. Port Second, reading value of Second.

5. Port AM/PM,  0 - AM, 1 - PM.

When to use this block?

Use this block to read Time from DS3231 device.


Date/ Time configure demo

Read temperature demo