DS3231Temperture

<< Click to Display Table of Contents >>

Navigation:  Hardware Modules > aMG High Precision RTC >

DS3231Temperture

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

ds3231_temperature_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.

Input port

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

Output port

1. Port Status, this status is I2C communication status (direct from I2C block). Status  0 - Success, 1 - I2C NAK, 2 - I2C TIMEOUT.

2. Port Temp (C), temperature reading value.

When to use this block?

Use this block to read temperature sensing from DS3231 device.

Demo

Date/ Time configure demo

Read temperature demo