Epson RX8010SJ Applications Manual page 35

Real time clock module
Table of Contents

Advertisement

Ex.2 This example is use only for clock functions.
START
Setting Digital offset.
30h
Setting the reserved bits
Reg − 17h, 31h
Reg − 1Dh
Reg − 1Eh
Reg − 1Fh
Setting the present time
Reg − 10h  16h
Setting the Alarm function
Reg −18h  1Ah
Setting the Timer function
Reg − 1Bh  1Ch
Stop cancellation
Reg − 1Fh
3) The setting of a clock and calendar
START
STOP  " 1 "
Write time
STOP  " 0 "
Next process
RX8010SJ
ETM37E-07
• Setup for Digital offset function.
When Digital offset function is not used, write 00h to 30h.
• Reserved bits have to write in specified fixed value in the case
of initialization by all means.
• Write 04h
• Write 00h
• Write 40h
Set STOP bit to "1" to prevent timer update in time setting.
•Set the present time.
• The alarm function stops by initialization of Reg 1Fh.
Reg - 18h to 1Ah can be used as a RAM register.
•The Timer function stops by initialization of Reg - 1Eh and Reg – 1Fh.
Reg – 1Bh to 1Ch can be used as a RAM register.
• Write 00h
Cancel STOP bit to "0" and start clock.
• Set STOP bit to "1" to prevent timer update in time setting.
• Write information of [ year / month /date [day of the week] hour:
minute: second ] which is necessary to set (or reset).
In case of initialization, please initialize all data.
• Cancel STOP bit to "0" and start (restart) timer movement.
Timer is started when clear STOP bit to "0".
 It is able to set time even if not combined use of STOP bit.
Please note that [ clock is started at the time of writing [second ] ] in
case STOP bit is not used.
Seiko Epson Corporation
14. Flow-chart
Jump to
INDEX
34

Advertisement

Table of Contents
loading

This manual is also suitable for:

X1b000242000100

Table of Contents