![MYiR MYC-C8MMQ6-8E2D-160-I Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/myir/myc-c8mmq6-8e2d-160-i/myc-c8mmq6-8e2d-160-i_linux-development-manual_1862477022.webp)
4.3 RTC
This sample demostrates how to write and read the RTC time ,as well as when the system power off for a while , the system time
whether synchronize to the RTC.
Hardware connection
Install RTC battery into J20.
Software test
RTC write and read test :
1.View the system time
# date
Wed Apr 3 12:09:40 UTC 2019
2.Update the system time to RTC
hwclock -w
3.View the time of RTC
# hwclock
Wed Apr 3 12:11:09 2019 0.000000 seconds
4.Set a system time
#date -s 20170402
Sun Apr 2 00:00:00 UTC 201
5.Update the RTC`s time to system
#hwclock -s
#date
Wed Apr 3 12:13:10 UTC 2019
Perform RTC synchronization system time test
The above process has set the time for the RTC. Now power off first for a minute, then power on , the system time will be
update by RTC .
# date
Wed Apr 3 12:14:20 UTC 2019
4.3 RTC
22
Содержание MYC-C8MMQ6-8E2D-160-I
Страница 1: ......
Страница 5: ...1 Software Resource 5 ...
Страница 23: ...4 3 RTC 23 ...
Страница 41: ...Figure 5 2 8 Kit configure 5 2 Config QtCreator 41 ...