RTC Configure

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Block References > On-chip Peripherals > RTC >

RTC Configure

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

rtc_configure_block

This block is subsystem, by integrating basic Simulink block and RTC block.

Input port

Name

Description

(+) UP

Normally input from Digital Input, for +1 direction adjustment to Date/ Time.

(-) DOWN

Normally input from Digital Input, for -1 direction adjustment to Date/ Time.

(*) MODE

Normally input from Digital Input, press and hold for 2.56 seconds to toggle Enable/Disable edit state. Short press this button to change adjust mode.

Output port

Name

Description

State

Edit state (If edit is enabled).

0 - Edit Date. Press (+)UP button to increase, press (-)DOWN to decrease or (*)MODE to change to next edit state.

1 - Edit Month.

2 - Edit Year.

3 - Edit Hour.

4 - Edit Minute.

5 - Edit Second.

Enable

Enable or disable edit. Press and Hold (*)MODE button to toggle this state.

Demos

Date/ Time display

Date and Time configuration demo