DS3231 Get Date

<< Click to Display Table of Contents >>

Navigation:  Hardware Modules > aMG High Precision RTC >

DS3231 Get Date

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

ds3231_getdate_block

Requirement

This block need I2C Setup block for selected I2C port.

What can be configured?

Configuration item

Selectable option/ Value

Description

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 Day, reading value of Day.

3. Port Date, reading value of Date.

4. Port Month, reading value of Month.

5. Port Year,  reading value of Year.

When to use this block?

Use this block to read Date from DS3231 device.

Demo

Date/ Time configure demo

Read temperature demo