欢迎访问ic37.com |
会员登录 免费注册
发布采购

SI1002 参数 Datasheet PDF下载

SI1002图片预览
型号: SI1002
PDF下载: 下载PDF文件 查看货源
内容描述: 超低功耗, 64/32 KB , 10位ADC, MCU ,集成了240-960兆赫的EZRadioPRO收发器 [Ultra Low Power, 64/32 kB, 10-Bit ADC MCU with Integrated 240-960 MHz EZRadioPRO Transceiver]
分类和应用:
文件页数/大小: 376 页 / 2369 K
品牌: SILICON [ SILICON ]
 浏览型号SI1002的Datasheet PDF文件第197页浏览型号SI1002的Datasheet PDF文件第198页浏览型号SI1002的Datasheet PDF文件第199页浏览型号SI1002的Datasheet PDF文件第200页浏览型号SI1002的Datasheet PDF文件第202页浏览型号SI1002的Datasheet PDF文件第203页浏览型号SI1002的Datasheet PDF文件第204页浏览型号SI1002的Datasheet PDF文件第205页  
Si1000/1/2/3/4/5  
20.3. SmaRTClock Timer and Alarm Function  
The SmaRTClock timer is a 32-bit counter that, when running (RTC0TR = 1), is incremented every  
SmaRTClock oscillator cycle. The timer has an alarm function that can be set to generate an interrupt,  
wake the device from a low power mode, or reset the device at a specific time. See Section “12. Interrupt  
Handler” on page 129, Section “14. Power Management” on page 151, and Section “18. Reset Sources”  
on page 175 for more information.  
The SmaRTClock timer includes an Auto Reset feature, which automatically resets the timer to zero one  
SmaRTClock cycle after the alarm signal is deasserted. When using Auto Reset, the Alarm match value  
should always be set to 2 counts less than the desired match value. Auto Reset can be enabled by writing  
a 1 to ALRM (RTC0CN.2).  
20.3.1. Setting and Reading the SmaRTClock Timer Value  
The 32-bit SmaRTClock timer can be set or read using the six CAPTUREn internal registers. Note that the  
timer does not need to be stopped before reading or setting its value. The following steps can be used to  
set the timer value:  
1. Write the desired 32-bit set value to the CAPTUREn registers.  
2. Write 1 to RTC0SET. This will transfer the contents of the CAPTUREn registers to the SmaRTClock  
timer.  
3. Operation is complete when RTC0SET is cleared to 0 by hardware.  
The following steps can be used to read the current timer value:  
1. Write 1 to RTC0CAP. This will transfer the contents of the timer to the CAPTUREn registers.  
2. Poll RTC0CAP until it is cleared to 0 by hardware.  
3. A snapshot of the timer value can be read from the CAPTUREn registers  
20.3.2. Setting a SmaRTClock Alarm  
The SmaRTClock alarm function compares the 32-bit value of SmaRTClock Timer to the value of the  
ALARMn registers. An alarm event is triggered if the SmaRTClock timer is equal to the ALARMn registers.  
If Auto Reset is enabled, the 32-bit timer will be cleared to zero one SmaRTClock cycle after the alarm  
event.  
The SmaRTClock alarm event can be configured to reset the MCU, wake it up from a low power mode, or  
generate an interrupt. See Section “12. Interrupt Handler” on page 129, Section “14. Power Management”  
on page 151, and Section “18. Reset Sources” on page 175 for more information.  
The following steps can be used to set up a SmaRTClock Alarm:  
1. Disable SmaRTClock Alarm Events (RTC0AEN = 0).  
2. Set the ALARMn registers to the desired value.  
3. Enable SmaRTClock Alarm Events (RTC0AEN = 1).  
Notes:  
The ALRM bit, which is used as the SmaRTClock Alarm Event flag, is cleared by disabling  
SmaRTClock Alarm Events (RTC0AEN = 0).  
If AutoReset is disabled, disabling (RTC0AEN = 0) then Re-enabling Alarm Events (RTC0AEN = 1)  
after a SmaRTClock Alarm without modifying ALARMn registers will automatically schedule the next  
alarm after 2^32 SmaRTClock cycles (approximately 36 hours using a 32.768 kHz crystal).  
The SmaRTClock Alarm Event flag will remain asserted for a maximum of one SmaRTClock cycle. See  
Section “14. Power Management” on page 151 for information on how to capture a SmaRTClock Alarm  
event using a flag which is not automatically cleared by hardware.  
Rev. 1.0  
201  
 复制成功!