DS3231 Configure

<< Click to Display Table of Contents >>

Navigation:  Hardware Modules > aMG High Precision RTC >

DS3231 Configure

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

ds3231_configure_block

 

This block is made from subsystem by implement I2C block to communicate with DS3231 device.

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.

Input port

1. Port SlvAddr, i2c device slave address for DS3231 device. Slave device address for aMG High Precision RTC board is xD0.

2. Port (+)UP, button input for configuration +1 direction.

3. Port (-)DOWN, button input for configuration -1 direction.

4. Port (*)MODE, button input for configuration to select edit mode.

Output port

1. Port Status, status id for edit mode.

Status

Edit mode

0

Edit/ configuration for Date. When edit mode is enabled, press (+)Up button to increase date and (-)DOWN button to decrease date. Valid configuration value is 1 to days count of month.

1

Edit/ configuration for Month, valid configuration value is 1 to 12.

2

Edit/ configuration for Year, valid configuration value is 0 to 99.

3

Edit/ configuration for Hour, valid configuration value is  0 to 23.

4

Edit/ configuration for Minute, valid configuration value is  0 to 59.

5

Edit/ configuration for Second, valid configuration value is  0 to 59.

 

2. Port Enable

Enable/ disable status for Edit/ configuration. Press and hold (*)MODE button for 2.56 seconds to toggle enable/ disable.

When to use this block?

Use this block to configure Date/ Time for DS3231 device via I2C bus.

Demo

Date/ Time configure demo

Read temperature demo