Rtc Testing - Embest SBC8600B User Manual

Hide thumbs Also See for SBC8600B:
Table of Contents

Advertisement

Embest Technology Co., Ltd
Connect the signal that to be measured to a ADC pin (ADC_CH2 eg)
Execute the following instruction to get ADC value
root@arm:~# cat /sys/bus/iio/devices/iio:device0/in_voltage5_raw
Follow below formula to get adc input signal voltage
Voltage Input = VDDA_ADC * (value read) / 4096
here VDDA_ADC = 1.8V

3.11.6 RTC Testing

SBC8600B has a hardware clock which can store and recover system clock; please
follow the steps listed below to test RTC;
1) Execute the following instruction to set system clock to 0:10 pm, Jun. 30th, 2017;
root@arm: # date –s "2017-06-30 12:10"
The information in HyperTerminal window is shown below;
Fri Jun 30 12:10:00 UTC 2017
2) Execute the following instruction to write system clock into RTC;
root@arm: # hwclock -w
Copyright © 2017 Embest Technology
ADC Interface
Figure 3-7
Table 3-4 ADC channels
ADC Pin
ADC_CH1
in_voltage4_raw
ADC_CH2
in_voltage5_raw
ADC_CH3
in_voltage6_raw
ADC_CH4
in_voltage7_raw
Setting System Clock
System node
SBC8600B-UM-V2.0
66

Advertisement

Table of Contents
loading

Table of Contents