Epson RX8111CE Applications Manual page 57

Real time clock module
Hide thumbs Also See for RX8111CE:
Table of Contents

Advertisement

RX8111CE
6) Setting wake-up timer interpunction example
Wake-up timer setting
Reg-1D[h]
Reg-1E[h]
Reg-1F[h]
Reg − 1A-1C[h]
Starting count down
Next processing
7) Setting Alarm Example
Alarm setting
Reg-1F[h]
Reg − 2C[h],17[h]  19[h]
Reg-1D[h]
Reg-1E[h]
Reg − 1F[h]
Next Processing
• Clear TE bit to "0" to inactivate wake-up timer interruption.
• Set TSEL1, TSEL0 bit combination to count down period (source clock).
• Clear the TF-bit by zero.
• Set TIE to "1", for interruption output from INT-pin.
• write initial data to the Down counter.
• Set TE bit to "1" to start wake-up timer counter.
Be aware that initial data should be pre-set to counter before starting.
• While TSTP is "1", timer countdown doesn't occur.
When TSTP clears by 0, The Countdown timer works again.
TSTP is useful for working time counter of machine, etc.
Figure 43 Example flow (Setting wake-up timer interrupt function)
• Reset AIE bit to "0" to inactivate alarm interruption.
• Setup Alarm data.
• Specify week alarm or day alarm, by WADA bit.
• Clear AF-bit by "0".
• Set AIE bit to "1", for outputs Alarm interruption from INT-pin.
Figure 44 Example flow (Setting alarm interrupt function)
Page − 53
ETM61E-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx8111ce aRx8111ce b

Table of Contents