English
Language : 

RFM31B Datasheet, PDF (42/63 Pages) List of Unclassifed Manufacturers – ISM RECEIVER
RFM31B
8.6. Wake-Up Timer and 32 kHz Clock Source
The chip contains an integrated wake-up timer which can be used to periodically wake the chip from SLEEP mode.
The wake-up timer runs from the internal 32.768 kHz RC Oscillator. The wake-up timer can be configured to run
when in SLEEP mode. If enwt = 1 in "Register 07h. Operating Mode and Function Control 1" when entering SLEEP
mode, the wake-up timer will count for a time specified defined in Registers 14–16h, "Wake Up Timer Period". At
the expiration of this period an interrupt will be generated on the nIRQ pin if this interrupt is enabled. The
microcontroller will then need to verify the interrupt by reading the Registers 03h–04h, "Interrupt Status 1 & 2". The
wake-up timer value may be read at any time by the wtv[15:0] read only registers 13h–14h.
The formula for calculating the Wake-Up Period is the following:
WUT  4  M  2 R ms
32 .768
WUT Register
wtr[3:0]
wtd[1:0]
wtm[15:0]
Description
R Value in Formula
D Value in Formula
M Value in Formula
Use of the D variable in the formula is only necessary if finer resolution is required than can be achieved by using
the R value.
Add R/W Function/Description D7
D6
D5
D4
D3
D2
D1
D0 POR Def.
14 R/W Wake-Up Timer Period 1
wtr[3] wtr[2] wtr[1] wtr[0] wtd[1] wtd[0] 00h
15 R/W Wake-Up Timer Period 2 wtm[15] wtm[14] wtm[13] wtm[12] wtm[11] wtm[10] wtm[9] wtm[8] 00h
16 R/W Wake-Up Timer Period 3 wtm[7] wtm[6] wtm[5] wtm[4] wtm[3] wtm[2] wtm[1] wtm[0] 00h
17 R Wake-Up Timer Value 1 wtv[15] wtv[14] wtv[13] wtv[12] wtv[11] wtv[10] wtv[9] wtv[8]
—
18 R Wake-Up Timer Value 2 wtv[7] wtv[6] wtv[5] wtv[4] wtv[3] wtv[2] wtv[1] wtv[0]
—
There are two different methods for utilizing the wake-up timer (WUT) depending on if the WUT interrupt is enabled
in “Register 06h. InterruptEnable 2,”. If the WUT interrupt is enabled then nIRQ pin will go low when
the timer expires. The chip will also change state so that the 30 MHz XTAL is enabled so that the microcontroller
clock output is available for the microcontroller to use to process the interrupt. The other method of use is to not
enable the WUT interrupt and use the WUT GPIO setting. In this mode of operation the chip will not change state
until commanded by the microcontroller. The different modes of operating the WUT and the current consumption
impacts are demonstrated in Figure 21.
A 32 kHz XTAL may also be used for better timing accuracy. By setting the x32 ksel bit in “Register 07h. Operating
& Function Control 1," GPIO0 is automatically reconfigured so that an external 32 kHz XTAL may be connected to
this pin. In this mode, the GPIO0 is extremely sensitive to parasitic capacitance, so only the XTAL should be
connected to this pin with the XTAL physically located as close to the pin as possible. Once the x32 ksel bit is set,
all internal functions such as WUT, micro-controller clock, and LDC mode will use the 32 kHz XTAL and not the
32 kHz RC oscillator.
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: sales@hoperf.com http://www.hoperf.com
42