
ARPI600 User Manual
Figure 17:
The device address of PCF8563 connected to Raspberry Pi
4)
Enter LXTerminal, and input:
modprobei2c-dev
echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-1/new_device
hwclock –r (Read out the time of the connected RTC based on I2C)
LXTerminal will display the time clocked by PCF8563 which may be different from
the Raspbian)
5)
Enter LXTerminal, and input:
hwclock -w (Write the time of the Raspbian into PCF8563)
hwclock -r (Synchronize the time of Raspbian to PCF8563)
hwclock -s (Synchronize the time of Raspbian with hardware RCT)
6
AD conversion (ARPI600 on-board chip TLC1543)
6.1
Configuring Pin A0 to Pin AD
1)
Please make sure you have installed relative libraries (refer to the Section 2.2:
Installing relative libraries).
2)
Set the jumpers to select reference voltage:
Connect REF to 5V, which means the AD conversion reference voltage is 5V
(connecting to 5V is a default setting).
Connect REF to 3V3, which means the AD conversion reference voltage is
3.3V.
Notices: REF can only be connected to one reference voltage at a time.
Figure 18: Setting AD reference voltage
3)
Copy the file program/AD_TLC1543 in to Raspbian. Then, enter the folder
AD_TLC1543, and execute the following code under the terminal:
sudo make
sudo ./tlc1543
4)
Terminal will display relative AD conversion value. By default, the displayed
w w w . e k t
2
. c o m
Electronics
Katrangi
Trading